-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
68 lines (68 loc) · 1.78 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"react-app",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"import",
"jest",
"jsx-a11y",
"mysticatea",
"prefer-object-spread",
"prettier",
"react",
"@typescript-eslint",
"risxss"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"jest/globals": true,
"mocha": true,
"node": true
},
"globals": {
"alert": true,
"document": true,
"localStorage": true,
"navigator": true,
"window": true,
"HTMLElement": true
},
"rules": {
"prettier/prettier": "error",
"import/extensions": 0,
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": true, "optionalDependencies": false, "peerDependencies": false }
],
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"mysticatea/no-useless-rest-spread": "error",
"prefer-object-spread/prefer-object-spread": 2,
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"react/no-array-index-key": 2,
"react/prefer-stateless-function": 0,
"react/prop-types": 0,
"react/require-default-props": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/strict-boolean-expressions": 0,
"complexity": ["error", 8],
"max-lines": ["error", 200],
"max-depth": ["error", 3],
"max-params": ["error", 4],
"risxss/catch-potential-xss-react": "error"
}
}