-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
74 lines (65 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"node": false,
"browser": true
},
"plugins": [
"jsdoc"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:compat/recommended",
"plugin:jsdoc/recommended",
"wikimedia/common",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true
}
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-jsdoc": [
"error",
{
"contexts":
[
"ClassDeclaration",
"ClassProperty",
"FunctionDeclaration",
"MethodDefinition"
]
}
],
"compat/compat": ["error", ">0.05% and supports fetch and not dead"],
"max-len": ["warn", { "code": 100, "ignoreRegExpLiterals": true }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"varsIgnorePattern": "h"
}],
"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"
},
"ignorePatterns": [ "*.d.ts", "node_modules/" ]
}