-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
66 lines (54 loc) · 1.92 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"node": true,
"browser": false
},
"extends": [
"plugin:@typescript-eslint/recommended",
"wikimedia/common",
"wikimedia/jquery"
],
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"impliedStrict": true
}
},
"rules": {
"compat/compat": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-returns": "off",
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/no-unresolved": "off",
"max-len": ["warn", { "code": 100, "ignoreRegExpLiterals": true }],
"no-unused-vars": "off",
"no-dupe-class-members": "off",
"no-undef": "off",
"no-underscore-dangle": "off",
"eqeqeq": [ "warn", "smart" ],
"@typescript-eslint/no-shadow": "error",
"no-shadow": "off",
"@typescript-eslint/no-loop-func": "error",
"no-loop-func": "off",
"@typescript-eslint/no-redeclare": "error",
"no-redeclare": "off",
"@typescript-eslint/no-use-before-define": "error",
"no-use-before-define": "off",
"no-return-assign": "off",
"no-console": "off",
"mediawiki/no-nodelist-unsupported-methods": "off",
"semi": "off",
"@typescript-eslint/semi": "error",
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }]
},
"ignorePatterns": [ "*.d.ts", "node_modules/", "dist/" ]
}