wikiplus-highlight 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json ADDED
@@ -0,0 +1,228 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true
5
+ },
6
+ "extends": "eslint:recommended",
7
+ "parserOptions": {
8
+ "ecmaVersion": 9,
9
+ "ecmaFeatures": {
10
+ "impliedStrict": true
11
+ }
12
+ },
13
+ "globals": {
14
+ "mw": "readonly",
15
+ "$": "readonly",
16
+ "CodeMirror": "readonly",
17
+ "Wikiplus": "readonly",
18
+ "OO": "readonly"
19
+ },
20
+ "rules": {
21
+ "array-callback-return": [
22
+ 2,
23
+ {
24
+ "checkForEach": true
25
+ }
26
+ ],
27
+ "no-await-in-loop": 2,
28
+ "no-constructor-return": 2,
29
+ "no-fallthrough": 1,
30
+ "no-promise-executor-return": 2,
31
+ "no-self-compare": 2,
32
+ "no-template-curly-in-string": 2,
33
+ "no-unmodified-loop-condition": 2,
34
+ "no-unreachable-loop": 2,
35
+ "no-use-before-define": [
36
+ 2,
37
+ {
38
+ "functions": false,
39
+ "variables": false
40
+ }
41
+ ],
42
+ "require-atomic-updates": 2,
43
+ "block-scoped-var": 2,
44
+ "class-methods-use-this": 2,
45
+ "consistent-this": 2,
46
+ "curly": 2,
47
+ "default-case": 2,
48
+ "default-case-last": 2,
49
+ "default-param-last": 2,
50
+ "dot-notation":2,
51
+ "eqeqeq": 2,
52
+ "func-names": [
53
+ 2,
54
+ "never"
55
+ ],
56
+ "multiline-comment-style": 2,
57
+ "new-cap": [
58
+ 1,
59
+ {
60
+ "capIsNew": false
61
+ }
62
+ ],
63
+ "no-alert": 2,
64
+ "no-array-constructor": 2,
65
+ "no-bitwise": 2,
66
+ "no-else-return": 2,
67
+ "no-empty": [
68
+ 2,
69
+ {
70
+ "allowEmptyCatch": true
71
+ }
72
+ ],
73
+ "no-eval": 2,
74
+ "no-extend-native": 2,
75
+ "no-floating-decimal": 2,
76
+ "no-implied-eval": 2,
77
+ "no-lone-blocks": 2,
78
+ "no-lonely-if": 2,
79
+ "no-loop-func": 2,
80
+ "no-multi-assign": 2,
81
+ "no-multi-str": 2,
82
+ "no-nested-ternary": 1,
83
+ "no-new": 2,
84
+ "no-new-func": 2,
85
+ "no-new-object": 2,
86
+ "no-new-wrappers": 2,
87
+ "no-octal-escape": 2,
88
+ "no-param-reassign": 1,
89
+ "no-return-assign": 2,
90
+ "no-return-await": 2,
91
+ "no-script-url": 2,
92
+ "no-sequences": 2,
93
+ "no-shadow": 2,
94
+ "no-undef-init": 2,
95
+ "no-unneeded-ternary": [
96
+ 2,
97
+ {
98
+ "defaultAssignment": false
99
+ }
100
+ ],
101
+ "no-unused-expressions": 2,
102
+ "no-useless-computed-key": [
103
+ 2,
104
+ {
105
+ "enforceForClassMembers": true
106
+ }
107
+ ],
108
+ "no-useless-concat": 2,
109
+ "no-useless-constructor": 2,
110
+ "no-useless-rename": 2,
111
+ "no-useless-return": 2,
112
+ "no-var": 2,
113
+ "no-void": 2,
114
+ "object-shorthand": 2,
115
+ "one-var-declaration-per-line": 2,
116
+ "operator-assignment": 2,
117
+ "prefer-arrow-callback": 2,
118
+ "prefer-const": 2,
119
+ "prefer-destructuring": 2,
120
+ "prefer-exponentiation-operator": 2,
121
+ "prefer-object-spread": 2,
122
+ "prefer-regex-literals": [
123
+ 2,
124
+ {
125
+ "disallowRedundantWrapping": true
126
+ }
127
+ ],
128
+ "prefer-rest-params": 2,
129
+ "prefer-spread": 2,
130
+ "prefer-template": 1,
131
+ "quote-props": [
132
+ 2,
133
+ "as-needed"
134
+ ],
135
+ "radix": [
136
+ 2,
137
+ "as-needed"
138
+ ],
139
+ "require-await": 2,
140
+ "spaced-comment": 2,
141
+ "symbol-description": 2,
142
+ "yoda": 2,
143
+ "array-bracket-spacing": 2,
144
+ "arrow-parens": [
145
+ 2,
146
+ "as-needed"
147
+ ],
148
+ "arrow-spacing": 2,
149
+ "block-spacing": 2,
150
+ "brace-style": 2,
151
+ "comma-dangle": [
152
+ 2,
153
+ "always-multiline"
154
+ ],
155
+ "comma-spacing": 2,
156
+ "comma-style": 2,
157
+ "computed-property-spacing": 2,
158
+ "dot-location": [
159
+ 2,
160
+ "property"
161
+ ],
162
+ "eol-last": 2,
163
+ "func-call-spacing": 2,
164
+ "indent": [
165
+ 2,
166
+ "tab",
167
+ {
168
+ "SwitchCase": 1
169
+ }
170
+ ],
171
+ "key-spacing": 2,
172
+ "keyword-spacing": 2,
173
+ "linebreak-style": 2,
174
+ "multiline-ternary": [
175
+ 2,
176
+ "always-multiline"
177
+ ],
178
+ "new-parens": 2,
179
+ "no-extra-parens": 2,
180
+ "no-multi-spaces": 2,
181
+ "no-multiple-empty-lines": [
182
+ 2,
183
+ {
184
+ "max": 1
185
+ }
186
+ ],
187
+ "no-trailing-spaces": 2,
188
+ "no-whitespace-before-property": 2,
189
+ "operator-linebreak": [
190
+ 2,
191
+ "before"
192
+ ],
193
+ "padded-blocks": [
194
+ 2,
195
+ "never"
196
+ ],
197
+ "quotes": [
198
+ 2,
199
+ "single",
200
+ {
201
+ "avoidEscape": true,
202
+ "allowTemplateLiterals": true
203
+ }
204
+ ],
205
+ "rest-spread-spacing": 2,
206
+ "semi": 2,
207
+ "semi-spacing": 2,
208
+ "semi-style": 2,
209
+ "space-before-blocks": 2,
210
+ "space-before-function-paren": [
211
+ 2,
212
+ {
213
+ "anonymous": "never",
214
+ "named": "never",
215
+ "asyncArrow": "always"
216
+ }
217
+ ],
218
+ "space-in-parens": 2,
219
+ "space-infix-ops": 2,
220
+ "space-unary-ops": 2,
221
+ "switch-colon-spacing": 2,
222
+ "template-curly-spacing": 2,
223
+ "wrap-iife": [
224
+ 2,
225
+ "inside"
226
+ ]
227
+ }
228
+ }