2023-02-04 00:36:31 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'plugin:react-hooks/recommended',
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
'plugin:react/jsx-runtime',
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
plugins: ['react', '@typescript-eslint', 'eslint-plugin-react-hooks'],
|
|
|
|
root: true,
|
|
|
|
rules: {
|
|
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
|
|
'no-var': 'error',
|
|
|
|
'brace-style': 'error',
|
|
|
|
'prefer-template': 'error',
|
|
|
|
radix: 'error',
|
|
|
|
'space-before-blocks': 'error',
|
|
|
|
'import/prefer-default-export': 'off',
|
2023-03-06 09:02:40 +00:00
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'warn',
|
|
|
|
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
|
|
|
|
],
|
2023-02-09 09:35:12 +00:00
|
|
|
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
2023-03-06 13:23:16 +00:00
|
|
|
'@typescript-eslint/ban-ts-comment': 'warn',
|
2023-07-13 20:31:10 +00:00
|
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
2023-07-03 14:09:18 +00:00
|
|
|
'@typescript-eslint/no-empty-interface': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
allowSingleExtends: true,
|
|
|
|
},
|
|
|
|
],
|
2023-02-04 00:36:31 +00:00
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: 'detect',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|