-
Notifications
You must be signed in to change notification settings - Fork 63
/
.eslintrc.json
85 lines (85 loc) · 1.75 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
{
"root": true,
"extends": [
"eslint:recommended",
"prettier"
],
"plugins": [
"prettier",
"@typescript-eslint"
],
"env": {
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "script",
"ecmaVersion": 2020
},
"overrides": [
{
"files": ["js/**/*"],
"env": {
"node": false,
"browser": true,
"es6": true
},
"rules": {
"no-use-before-define": "off",
"no-redeclare": "off",
"no-unused-vars": "error"
},
"globals": {
"multipageMap": "readonly",
"usesMultipage": "readonly",
"idToSection": "readonly",
"sdoMap": "readonly",
"biblio": "readonly",
"debounce": "writable",
"menu": "writable",
"referencePane": "writable",
"sdoBox": "writable",
"Toolbox": "writable"
}
},
{
"files": ["test/**/*"],
"env": {
"mocha": true
}
}
],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"prettier/prettier": "error",
"arrow-body-style": "error",
"prefer-arrow-callback": "error",
"object-shorthand": "error",
"no-inner-declarations": "off",
"no-loss-of-precision": "off",
"consistent-return": "off",
"no-floating-decimal": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-void": "error",
"strict": [
"error",
"global"
],
"no-underscore-dangle": "off",
"no-constant-condition": "off",
"camelcase": [
"error",
{
"properties": "never"
}
],
"no-empty": "error",
"curly": [
"error",
"multi-line"
],
"no-var": "error"
}
}