-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
39 lines (39 loc) · 1.3 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
35
36
37
38
39
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: 'tsconfig.json',
},
ignorePatterns: ['vite.config.ts'],
plugins: ['react', '@typescript-eslint'],
rules: {
'react/react-in-jsx-scope': 0,
'no-console': 0,
'no-param-reassign': 0,
'functional/no-conditional-statement': 0,
'functional/no-conditional-statements': 0,
'functional/no-expression-statements': 0,
"@typescript-eslint/no-explicit-any": 0,
'functional/functional-parameters': 0,
'functional/no-try-statement': 0,
'functional/no-throw-statement': 0,
'@typescript-eslint/default-param-last': 'off',
'react/jsx-props-no-spreading': 0,
'no-underscore-dangle': [2, { "allow": ["__filename", "__dirname", "__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"] }],
'react/function-component-definition': [2, { "namedComponents": "arrow-function" }],
},
};