You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
module.exports = { |
|
env: { |
|
browser: true, |
|
es2021: true, |
|
}, |
|
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'plugin:@next/next/recommended'], |
|
parser: '@typescript-eslint/parser', |
|
parserOptions: { |
|
ecmaFeatures: { |
|
jsx: true, |
|
}, |
|
ecmaVersion: 12, |
|
sourceType: 'module', |
|
}, |
|
plugins: ['react', 'prettier', '@typescript-eslint'], |
|
rules: { |
|
'prettier/prettier': 'error', |
|
'react/react-in-jsx-scope': 'off', |
|
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }], |
|
'react/jsx-props-no-spreading': 'off', |
|
'react/jsx-no-bind': 'off', |
|
'react/function-component-definition': 'off', |
|
|
|
'@next/next/no-img-element': 'off', |
|
|
|
'no-unused-vars': 'off', |
|
'@typescript-eslint/no-unused-vars': 'error', |
|
'no-console': 'off', |
|
|
|
'no-use-before-define': [0], |
|
'@typescript-eslint/no-use-before-define': [1], |
|
|
|
'react/jsx-no-target-blank': [1, { allowReferrer: false, enforceDynamicLinks: 'always' }], |
|
'import/extensions': [ |
|
'error', |
|
'ignorePackages', |
|
{ |
|
js: 'never', |
|
jsx: 'never', |
|
ts: 'never', |
|
tsx: 'never', |
|
}, |
|
], |
|
}, |
|
settings: { |
|
'import/resolver': { |
|
node: { |
|
extensions: ['.js', '.jsx', '.ts', '.tsx'], |
|
}, |
|
}, |
|
}, |
|
};
|
|
|