33 lines
721 B
JavaScript
33 lines
721 B
JavaScript
|
|
module.exports = {
|
||
|
|
env: {
|
||
|
|
browser: true,
|
||
|
|
es2021: true,
|
||
|
|
node: true,
|
||
|
|
},
|
||
|
|
extends: [
|
||
|
|
'eslint:recommended',
|
||
|
|
'plugin:react/recommended',
|
||
|
|
'plugin:@typescript-eslint/recommended',
|
||
|
|
],
|
||
|
|
parser: '@typescript-eslint/parser',
|
||
|
|
parserOptions: {
|
||
|
|
ecmaFeatures: {
|
||
|
|
jsx: true,
|
||
|
|
},
|
||
|
|
ecmaVersion: 12,
|
||
|
|
sourceType: 'module',
|
||
|
|
},
|
||
|
|
plugins: ['react', '@typescript-eslint'],
|
||
|
|
settings: {
|
||
|
|
react: {
|
||
|
|
version: 'detect',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'react/react-in-jsx-scope': 'off',
|
||
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||
|
|
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||
|
|
},
|
||
|
|
};
|