-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
100 lines (100 loc) · 2.33 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"env": {
"commonjs": true,
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"extends": [
"plugin:unicorn/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/unicorn"
],
"plugins": [
"@typescript-eslint",
"import",
"prettier",
"unicorn"
],
"rules": {
"@typescript-eslint/array-type": [
"error",
"array-simple"
],
"@typescript-eslint/camelcase": [
"error",
{
"ignoreDestructuring": true
}
],
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/no-angle-bracket-type-assertion": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none",
"ignoreRestSiblings": false,
"vars": "all"
}
],
"camelcase": "off",
"curly": "warn",
"eqeqeq": "error",
"import/no-amd": "warn",
"import/no-commonjs": "warn",
"import/no-cycle": "error",
"import/no-self-import": "error",
"import/no-default-export": "warn",
"import/no-extraneous-dependencies": [
"error"
],
"linebreak-style": [
"error",
"unix"
],
"no-await-in-loop": "warn",
"no-cond-assign": "error",
"no-console": "warn",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-return-assign": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-sync": "warn",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-unused-vars": "off",
"no-useless-catch": "error",
"no-useless-concat": "error",
"no-var": "error",
"no-warning-comments": "warn",
"prefer-const": "error",
"prefer-rest-params": "warn",
"prefer-spread": "error",
"prefer-template": "error",
"prettier/prettier": "warn",
"radix": "error",
"valid-typeof": "error",
"unicorn/filename-case": "off",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/catch-error-name": "off"
},
"overrides": [
{
"files": [
"*__tests__*"
],
"rules": {
"import/no-nodejs-modules": "off",
"no-console": "off"
}
}
]
}