-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
65 lines (64 loc) · 1.77 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
{
"root": true,
"plugins": [
"eslint-comments",
"jest",
"jest-formatting",
"jquery",
"no-only-tests",
"optimize-regex",
"prefer-arrow",
"prefer-object-spread",
"prettier",
"promise",
"simple-import-sort",
"unicorn",
"you-dont-need-lodash-underscore"
],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:jest/recommended",
"plugin:jest-formatting/recommended",
"plugin:jquery/deprecated",
"plugin:optimize-regex/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"plugin:you-dont-need-lodash-underscore/compatible"
],
"rules": {
"no-console": "error",
"no-alert": "error",
"no-var": "error",
"no-use-before-define": "error",
"prefer-rest-params": "error",
"prefer-const": "error",
"prefer-spread": "error",
"no-only-tests/no-only-tests": "error",
"prefer-arrow/prefer-arrow-functions": "error",
"prefer-object-spread/prefer-object-spread": "error",
"simple-import-sort/imports": "error",
"prettier/prettier": "error",
"unicorn/filename-case": "off",
"unicorn/no-null": "off"
},
"overrides": [
{
"files": "*.js",
"parser": "espree",
"env": { "node": true }
},
{
"files": "**/*.ts",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["tsconfig.json", "tests/tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
]
}
]
}