39 lines
969 B
JavaScript
39 lines
969 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'react-app',
|
|
'react-app/jest',
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:json/recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['react', '@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'off',
|
|
{ argsIgnorePattern: ['^_', 'tocoServices'] },
|
|
],
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
"@typescript-eslint/ban-types": 'off',
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react/prop-types': 'off',
|
|
'react/no-children-prop': 'off',
|
|
'import/no-anonymous-default-export': 'off',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.config.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
},
|
|
},
|
|
],
|
|
globals: {
|
|
tocoRefs: true,
|
|
tocoOverlays: true,
|
|
},
|
|
};
|