-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (54 loc) · 1.21 KB
/
.eslintrc.js
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
module.exports = {
parser: "@typescript-eslint/parser",
plugins: [
"no-unsafe-regex",
"prefer-object-spread",
"security",
"simple-import-sort",
"babel",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
],
rules: {
// stuff that's on
"semi": [2, "never"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"babel/no-unused-expressions": 2,
"new-cap": [
2,
{
newIsCap: true,
capIsNew: false,
},
],
"no-unsafe-regex/no-unsafe-regex": 2,
"quotes": [2, "double", { "avoidEscape": true }],
"eol-last": [2, "always"],
// stuff that gives warnings
"array-callback-return": 1,
camelcase: 1,
"consistent-return": 1,
"no-param-reassign": 1,
"no-return-assign": 1,
"prefer-const": 1,
"prefer-template": 1,
"no-lonely-if": 1,
"no-restricted-properties": 1,
"no-useless-escape": 1,
"prefer-object-spread/prefer-object-spread": 1,
"valid-jsdoc": [
1,
{
requireReturn: false,
requireReturnType: false,
requireParamDescription: true,
requireReturnDescription: false,
},
],
}
}