forked from wasabee-project/Wasabee-IITC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 1.95 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
{
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["eslint-plugin-local-rules"],
"env": {
"browser": true,
"jest": false,
"es6": true,
"node": true,
"jquery": true,
"greasemonkey": true,
"commonjs": true,
"es2020": true
},
"ignorePatterns": ["*.d.ts"],
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"no-console": "off",
"lines-between-class-members": ["error", "always"],
"no-template-curly-in-string": 1,
"block-scoped-var": 1,
"class-methods-use-this": "off",
"consistent-return": 1,
"default-case": 1,
"no-lone-blocks": 1,
"no-magic-numbers": "off",
"no-new": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-return-assign": 1,
"no-return-await": 1,
"no-useless-concat": 1,
"require-await": 1,
"no-caller": 1,
"no-extend-native": 1,
"no-implicit-globals": 1,
"no-iterator": 1,
"no-labels": 1,
"no-new-func": 1,
"no-new-wrappers": 1,
"no-self-compare": 1,
"no-throw-literal": 1,
"no-unused-expressions": 1,
"no-void": 1,
"no-sequences": 1,
"radix": 1,
"local-rules/wx-keys": 2
},
"globals": {
"L": "readonly",
"PLAYER": "readonly",
"android": "readonly"
},
"overrides": [
{
"files": ["src/**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"prettier/prettier": 0,
"lines-between-class-members": 0,
"@typescript-eslint/no-array-constructor": 1,
"@typescript-eslint/no-empty-function": 1,
"@typescript-eslint/no-inferrable-types": 1
}
}
]
}