-
Notifications
You must be signed in to change notification settings - Fork 45
/
.eslintrc.yaml
91 lines (90 loc) · 2.18 KB
/
.eslintrc.yaml
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
83
84
85
86
87
88
89
90
91
# eslint-disable
{
root: true,
extends: [
wikimedia/client,
wikimedia/jquery,
wikimedia/mediawiki
],
globals: {
QUnit: readonly,
jQuery: readonly,
sinon: readonly
},
plugins: [
promise,
compat
],
rules: {
# compat/compat: error,
no-jquery/no-global-selector: off,
no-underscore-dangle: off,
# no-use-before-define: [
# error,
# nofunc
# ],
max-len: off,
one-var: off,
operator-linebreak: off,
promise/no-native: error,
valid-jsdoc: off,
vars-on-top: off,
wrap-iife: off,
# rules deactivated because they conflict with the current code
block-scoped-var: off,
computed-property-spacing: off,
mediawiki/class-doc: off,
no-empty-character-class: off,
no-implicit-globals: off,
no-multi-str: off,
no-new: off,
no-redeclare: off,
no-shadow: off,
no-tabs: off,
no-undef: off,
no-unreachable-loop: off,
no-useless-concat: off,
no-useless-escape: off,
no-unused-vars: off,
quote-props: off,
compat/compat: off,
es-x/no-array-prototype-includes: off,
es-x/no-array-prototype-keys: off,
es-x/no-array-prototype-values: off,
es-x/no-math-trunc: off,
es-x/no-string-prototype-endswith: off,
es-x/no-string-prototype-includes: off,
es-x/no-string-prototype-startswith: off,
es-x/no-symbol-prototype-description: off,
jsdoc/require-param: off,
jsdoc/require-returns: off,
jsdoc/check-types: off,
jsdoc/no-undefined-types: off,
jsdoc/newline-after-description: off,
jsdoc/check-tag-names: off,
jsdoc/valid-types: off,
no-jquery/no-proxy: off,
no-jquery/no-each-util: off,
no-jquery/no-event-shorthand: off,
no-jquery/no-parse-html-literal: off,
no-jquery/variable-pattern: off,
no-jquery/no-error: off,
no-jquery/no-unique: off,
no-jquery/no-sizzle: off,
no-jquery/no-bind: off,
no-jquery/no-now: off,
no-jquery/no-fade: off,
no-jquery/no-map-util: off,
no-jquery/no-class-state: off,
unicorn/prefer-date-now: off,
unicorn/prefer-string-slice: off,
},
overrides: [
{
files: "*.json",
rules: {
indent: off
}
}
]
}