2022-10-24 17:27:31 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'standard-with-typescript',
|
2022-10-31 01:23:27 +00:00
|
|
|
'prettier',
|
2022-10-24 17:27:31 +00:00
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 8,
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
sourceType: 'module',
|
|
|
|
project: './tsconfig.json',
|
|
|
|
},
|
|
|
|
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'],
|
|
|
|
rules: {
|
|
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
|
|
'react-hooks/exhaustive-deps': 'off',
|
|
|
|
'react/prop-types': 'off',
|
|
|
|
'react/react-in-jsx-scope': 'off',
|
|
|
|
'@typescript-eslint/strict-boolean-expressions': 'off',
|
2023-02-03 18:10:43 +00:00
|
|
|
'@typescript-eslint/no-confusing-void-expression': 'off',
|
2022-10-24 17:27:31 +00:00
|
|
|
'@typescript-eslint/no-dynamic-delete': 'off',
|
|
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
|
|
'@typescript-eslint/no-misused-promises': 'off',
|
2022-10-30 15:31:01 +00:00
|
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
2022-11-01 01:41:54 +00:00
|
|
|
'@typescript-eslint/restrict-plus-operands': 'off',
|
2023-03-10 18:27:20 +00:00
|
|
|
'@typescript-eslint/key-spacing': 'off',
|
2022-10-24 17:27:31 +00:00
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
typescript: {},
|
|
|
|
},
|
|
|
|
react: {
|
|
|
|
version: 'detect',
|
|
|
|
},
|
|
|
|
},
|
2022-10-31 01:23:27 +00:00
|
|
|
}
|