This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
82 lines (82 loc) · 1.73 KB
/
.eslintrc
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
80
81
82
{
"root": true,
"plugins": ["@typescript-eslint"],
"extends": [
"wikimedia/client-common",
"wikimedia/language/es2022",
"wikimedia/mediawiki",
"wikimedia/jquery",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"ignorePatterns": ["scripts/", "src/select2/", "dist/", "*.json"],
"globals": {
"wgULS": "readonly",
"$": "readonly",
"jQuery": "readonly",
"mw": "readonly",
"mediaWiki": "readonly",
"Map": "readonly",
"Twinkle": "readonly"
},
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": ["arrowFunctions"]
}
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": false,
"allowedNames": ["self"]
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_"
}
],
"jsdoc/check-tag-names": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-param": "off",
"no-jquery/no-class-state": "off",
"no-jquery/no-fade": "off",
"no-jquery/no-global-selector": "off",
"no-jquery/no-slide": "off",
"no-jquery/variable-pattern": "off",
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"camelcase": "off",
"dot-notation": "off",
"no-alert": "off",
"no-console": "off",
"no-new": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"quote-props": [
"error",
"as-needed",
{
"keywords": true,
"unnecessary": true,
"numbers": false
}
]
}
}