-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
34 lines (34 loc) · 1.13 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
parserOptions: {
project: './tsconfig.json',
},
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
env: {
browser: true,
es2021: true,
jest: true,
},
extends: ['plugin:react/recommended', 'standard-with-typescript', 'prettier'],
overrides: [],
plugins: ['react'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'react/react-in-jsx-scope': 'error',
'react/jsx-no-undef': 'error',
'react/prop-types': 'error',
'@typescript-eslint/strict-boolean-expressions': 'off',
'react/prefer-stateless-function': ['error', { 'ignorePureComponents': true }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
"react/display-name": 'off'
},
};