-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
49 lines (49 loc) · 1.53 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
{
"env": {
"es2021": true
},
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"prettier"
],
"parser": "@typescript-eslint/parser",
"overrides": [{
"files": ["*.ts", "*.tsx", "*.json"]
}],
"parserOptions": {
"ecmaVersion": 12,
"project": ["./tsconfig.json"],
"sourceType": "module",
"extraFileExtensions": [".json"]
},
"plugins": [
"prettier",
"@typescript-eslint"
],
"rules": {
"prettier/prettier": "error",
"camelcase": ["error", {"allow": ["((bj_)\\w+[A-Z]$)"]}], //exclude bj_CAPITAL_LETTER
"eqeqeq": ["error", "always", {"null": "never"}],
"@typescript-eslint/no-implicit-any-catch": "error",
"@typescript-eslint/strict-boolean-expressions": ["warn"],
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allowAfterSuper": true }],
"no-throw-literal": 0, //Maybe one day if wc3 gets a polyfill for the debug library
"no-cond-assign": 0,
"no-restricted-globals": 0,
"no-extra-parens": 0,
"no-undef": 0,
"no-unused-vars": 0,
"no-var-requires": 0,
"no-bitwise": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"no-plusplus": 0,
"no-shadow": 0,
"no-use-before-define": 0,
"no-param-reassign": 0,
"max-classes-per-file": 0
}
}