/
.eslintrc
52 lines (52 loc) · 1.18 KB
/
.eslintrc
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
44
45
46
47
48
49
50
51
52
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-redux",
"security"
],
"env": {
"browser": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "./browsers/webpack.config.js"
}
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/typescript",
"plugin:react-redux/recommended",
"plugin:security/recommended"
],
"rules": {
"react/prop-types": "off",
"@typescript-eslint/ban-types": ["warn"],
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/ban-ts-comment": ["error", {
"ts-ignore": "allow-with-description",
"minimumDescriptionLength": 3
}]
},
"ignorePatterns": [
"node_modules",
".idea",
"assets/bundles",
"browsers/dist",
"artifacts",
"scripts/bin",
"browsers/webpack.config.js",
"scripts/webpack.scripts.js",
"src/vendors",
"src/**/*.test.ts",
"src/**/*.test.js",
"src/support.js"
]
}