-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.json
36 lines (36 loc) · 1.21 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
{
"env": {
"browser": true,
"commonjs": false,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import"
],
"rules": {
"no-unused-vars": "off", //would throw on imports just for setting the type and not being used otherwise
"@typescript-eslint/no-unused-vars": "off", //see no-unused-vars
"no-case-declarations": "off",
"no-constant-condition": "off",
"no-useless-escape": "off", //also checks normal strings
"no-fallthrough": "off", //fails on switch fallthroughs
"no-prototype-builtins": "off", //should be fixed!
"no-empty": ["error", { "allowEmptyCatch": true }], //maybe this should be fixed
"require-atomic-updates": "off" // this is the test suite purpose to check that a code works as expected, not the purpose of code quality check
}
}