46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
module.exports = {
|
|
extends: [
|
|
'react-app',
|
|
'react-app/jest',
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
'prettier/prettier',
|
|
'plugin:prettier/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:json/recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['react', '@typescript-eslint', 'simple-import-sort'],
|
|
rules: {
|
|
'prettier/prettier': ['error', { singleQuote: true }],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'off',
|
|
{ argsIgnorePattern: ['^_', 'tocoServices'] },
|
|
],
|
|
'simple-import-sort/exports': 'error',
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.json'],
|
|
rules: {
|
|
'prettier/prettier': ['error', { singleQuote: false }],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.config.js', '**/setupProxy.js', 'script/**/*.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
},
|
|
},
|
|
],
|
|
globals: {
|
|
tocoRefs: true,
|
|
tocoModals: true,
|
|
},
|
|
};
|