Files
toco-react-template/.eslintrc.js

39 lines
967 B
JavaScript
Raw Normal View History

2024-10-14 18:51:44 +08:00
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'],
2024-10-14 18:51:44 +08:00
rules: {
'@typescript-eslint/no-unused-vars': [
'off',
{ argsIgnorePattern: ['^_', 'tocoServices'] },
],
'@typescript-eslint/no-non-null-assertion': 'off',
"@typescript-eslint/ban-types": 'off',
2024-10-14 18:51:44 +08:00
'react-hooks/exhaustive-deps': 'error',
'react/react-in-jsx-scope': 'off',
2024-12-24 14:25:06 +08:00
'react/prop-types': 'off',
'react/no-children-prop': 'off',
'import/no-anonymous-default-export': 'off',
2024-10-14 18:51:44 +08:00
},
overrides: [
{
files: ['**/*.config.js'],
2024-10-14 18:51:44 +08:00
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
globals: {
tocoRefs: true,
2024-10-15 16:45:23 +08:00
tocoModals: true,
2024-10-14 18:51:44 +08:00
},
};