-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
.eslintrc.json
68 lines (68 loc) · 1.54 KB
/
.eslintrc.json
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
{
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"requireConfigFile": false
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"no-console": 2,
"curly": 2,
"dot-notation": 1,
"eqeqeq": 2,
"no-alert": 2,
"no-caller": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-multi-spaces": 2,
"no-with": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"brace-style": ["error", "1tbs"],
"camelcase": 2,
"comma-style": ["error", "last"],
"eol-last": 2,
"key-spacing": 2,
"new-cap": 1,
"no-array-constructor": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"semi-spacing": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"space-before-blocks": 2,
"spaced-comment": 1,
"no-var": 2
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"]
},
{
"files": ["test/**/*.{js,ts}", "*.spec.{js,ts}", "*.stories.{js,ts}"],
"plugins": [
"jest",
"testing-library",
"jest-dom"
],
"extends": ["plugin:jest-dom/recommended"],
"env": {
"jest/globals": true
},
"rules": {
"no-console": 0,
"no-shadow": 0,
"@typescript-eslint/no-explicit-any": 0
}
}
]
}