-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
43 lines (43 loc) · 1.05 KB
/
.eslintrc.js
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
40
41
42
43
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
ignorePatterns: ['**/config/*.js', '**/scripts/*.js', '**/src/types/*'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
plugins: ['@typescript-eslint', 'react'],
rules: {
'no-unused-vars': ['off'],
'no-duplicate-imports': ['warn'],
'no-unused-private-class-members': ['error'],
'vars-on-top': ['error'],
'max-params': ['warn', 4],
'max-len': ['warn', 400],
'func-style': ['off'],
'no-magic-numbers': ['off'],
'no-nested-ternary': ['warn'],
'sort-imports': ['off'],
'react-hooks/exhaustive-deps': ['off'],
'react/self-closing-comp': ['error'],
'no-explicit-any': ['off'],
},
}