-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.json
More file actions
79 lines (79 loc) · 1.74 KB
/
Copy path.eslintrc.json
File metadata and controls
79 lines (79 loc) · 1.74 KB
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
{
"root": true,
"extends": [
"wikimedia/client",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"globals": {
"mediaWiki": false,
"jQuery": false
},
"rules": {
"camelcase": 0,
"comma-spacing": 0,
"indent": 0,
"max-len": 0,
"no-alert": 0,
"no-jquery/no-animate-toggle": 0,
"no-jquery/no-each-util": 0,
"no-jquery/no-event-shorthand": 0,
"no-jquery/no-global-selector": 0,
"no-jquery/no-map-util": 0,
"no-jquery/no-slide": 0,
"no-jquery/no-trim": 0,
"no-multi-spaces": 0,
"no-unused-vars": 0,
"no-use-before-define": 0,
"no-useless-escape": 0,
"spaced-comment": 0,
"valid-jsdoc": 0,
"wrap-iife": 0,
"vue/no-v-html": 0,
"no-console": "warn",
"no-jquery/no-constructor-attributes": "warn",
"no-jquery/no-parse-html-literal": "warn",
"no-jquery/no-sizzle": "warn",
"no-redeclare": "warn",
"no-shadow": "warn",
"prefer-regex-literals": "warn",
"mediawiki/msg-doc": "warn",
"no-var": "warn",
"prefer-const": "warn",
"no-jquery/no-done-fail": "warn",
"mediawiki/no-cookie": "warn"
},
"settings": {
"es-x": { "allowTestedProperty": true }
},
"overrides": [
{
"files": [
"modules/ext.donationInterface.comboWiki/**/*.{js,vue}",
"modules/ext.donationInterface.donorPortal/**/*.{js,vue}"
],
"rules": {
"no-unused-vars": "warn",
"no-console": 0,
"indent": [ "error", "tab" ],
"vue/script-indent": [ "error", "tab" ],
"vue/html-indent": [ "error", "tab" ]
}
},
{
"files": [ "**/*.vue" ],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": 2021
},
"extends": [
"plugin:vue/vue3-strongly-recommended"
],
"rules": {
"vue/no-undef-components": [ "error", {
"ignorePatterns": [ "apple-pay-button" ]
} ]
}
}
]
}