-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
113 lines (113 loc) · 2.34 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
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./",
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": false
}
},
"env": {
"es2017": true
},
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"noInlineConfig": false,
"reportUnusedDisableDirectives": true,
"rules": {
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": "off",
"camelcase": "off",
"eqeqeq": ["error", "always"],
"import/extensions": ["error", "ignorePackages"],
"no-console": ["warn", { "allow": ["info", "error"] }],
"no-fallthrough": "off",
"no-restricted-globals": [
"error",
"addEventListener",
"blur",
"close",
"closed",
"confirm",
"defaultStatus",
"defaultstatus",
"event",
"external",
"find",
"focus",
"frameElement",
"frames",
"history",
"innerHeight",
"innerWidth",
"length",
"location",
"locationbar",
"menubar",
"moveBy",
"moveTo",
"name",
"onblur",
"onerror",
"onfocus",
"onload",
"onresize",
"onunload",
"open",
"opener",
"opera",
"outerHeight",
"outerWidth",
"pageXOffset",
"pageYOffset",
"parent",
"print",
"removeEventListener",
"resizeBy",
"resizeTo",
"screen",
"screenLeft",
"screenTop",
"screenX",
"screenY",
"scroll",
"scrollBy",
"scrollTo",
"scrollX",
"scrollY",
"scrollbars",
"self",
"status",
"statusbar",
"stop",
"toolbar",
"top",
"globalThis"
],
"no-unused-vars": "off",
"no-shadow": "off"
},
"overrides": [
{
"files": ["./src/**/*.test.ts"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
}
},
{
"files": ["./src/**/Float/*.ts", "./src/**/Integer/*.ts"],
"rules": {
"@typescript-eslint/restrict-plus-operands": "off"
}
}
]
}