wikiparser-node 0.4.0 → 0.6.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/config/default.json +129 -66
- package/config/zhwiki.json +4 -4
- package/index.js +97 -65
- package/lib/element.js +159 -302
- package/lib/node.js +384 -198
- package/lib/ranges.js +3 -4
- package/lib/text.js +65 -36
- package/lib/title.js +9 -8
- package/mixin/fixedToken.js +4 -4
- package/mixin/hidden.js +2 -0
- package/mixin/sol.js +16 -7
- package/package.json +14 -3
- package/parser/brackets.js +8 -2
- package/parser/commentAndExt.js +1 -1
- package/parser/converter.js +1 -1
- package/parser/externalLinks.js +2 -2
- package/parser/hrAndDoubleUnderscore.js +8 -7
- package/parser/links.js +8 -9
- package/parser/magicLinks.js +1 -1
- package/parser/selector.js +5 -5
- package/parser/table.js +18 -16
- package/src/arg.js +71 -42
- package/src/atom/index.js +7 -5
- package/src/attribute.js +102 -64
- package/src/charinsert.js +91 -0
- package/src/converter.js +34 -15
- package/src/converterFlags.js +87 -40
- package/src/converterRule.js +59 -53
- package/src/extLink.js +45 -37
- package/src/gallery.js +71 -16
- package/src/hasNowiki/index.js +42 -0
- package/src/hasNowiki/pre.js +40 -0
- package/src/heading.js +41 -18
- package/src/html.js +76 -48
- package/src/imageParameter.js +73 -51
- package/src/imagemap.js +205 -0
- package/src/imagemapLink.js +43 -0
- package/src/index.js +243 -138
- package/src/link/category.js +10 -14
- package/src/link/file.js +112 -56
- package/src/link/galleryImage.js +74 -10
- package/src/link/index.js +86 -61
- package/src/magicLink.js +48 -21
- package/src/nested/choose.js +24 -0
- package/src/nested/combobox.js +23 -0
- package/src/nested/index.js +88 -0
- package/src/nested/references.js +23 -0
- package/src/nowiki/comment.js +18 -4
- package/src/nowiki/dd.js +2 -2
- package/src/nowiki/doubleUnderscore.js +16 -11
- package/src/nowiki/index.js +12 -0
- package/src/nowiki/quote.js +28 -1
- package/src/onlyinclude.js +15 -8
- package/src/paramTag/index.js +83 -0
- package/src/paramTag/inputbox.js +42 -0
- package/src/parameter.js +73 -46
- package/src/syntax.js +9 -1
- package/src/table/index.js +58 -44
- package/src/table/td.js +63 -63
- package/src/table/tr.js +52 -35
- package/src/tagPair/ext.js +60 -43
- package/src/tagPair/include.js +11 -1
- package/src/tagPair/index.js +29 -20
- package/src/transclude.js +214 -166
- package/tool/index.js +720 -439
- package/util/base.js +17 -0
- package/util/debug.js +1 -1
- package/{test/util.js → util/diff.js} +15 -19
- package/util/lint.js +40 -0
- package/util/string.js +37 -20
- package/.eslintrc.json +0 -714
- package/errors/README +0 -1
- package/jsconfig.json +0 -7
- package/printed/README +0 -1
- package/printed/example.json +0 -120
- package/test/api.js +0 -83
- package/test/real.js +0 -133
- package/test/test.js +0 -28
- package/typings/api.d.ts +0 -13
- package/typings/array.d.ts +0 -28
- package/typings/event.d.ts +0 -24
- package/typings/index.d.ts +0 -94
- package/typings/node.d.ts +0 -29
- package/typings/parser.d.ts +0 -16
- package/typings/table.d.ts +0 -14
- package/typings/token.d.ts +0 -22
- package/typings/tool.d.ts +0 -11
package/.eslintrc.json
DELETED
|
@@ -1,714 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"es2022": true
|
|
5
|
-
},
|
|
6
|
-
"plugins": [
|
|
7
|
-
"regexp",
|
|
8
|
-
"unicorn",
|
|
9
|
-
"jsdoc"
|
|
10
|
-
],
|
|
11
|
-
"extends": [
|
|
12
|
-
"eslint:recommended",
|
|
13
|
-
"plugin:n/recommended-script",
|
|
14
|
-
"plugin:regexp/recommended",
|
|
15
|
-
"plugin:unicorn/recommended"
|
|
16
|
-
],
|
|
17
|
-
"parserOptions": {
|
|
18
|
-
"ecmaVersion": 13,
|
|
19
|
-
"sourceType": "script"
|
|
20
|
-
},
|
|
21
|
-
"ignorePatterns": [
|
|
22
|
-
"tool/*.js"
|
|
23
|
-
],
|
|
24
|
-
"rules": {
|
|
25
|
-
"array-callback-return": 2,
|
|
26
|
-
"no-cond-assign": [
|
|
27
|
-
2,
|
|
28
|
-
"always"
|
|
29
|
-
],
|
|
30
|
-
"no-constant-binary-expression": 2,
|
|
31
|
-
"no-constructor-return": 2,
|
|
32
|
-
"no-control-regex": 0,
|
|
33
|
-
"no-empty-character-class": 0,
|
|
34
|
-
"no-fallthrough": 2,
|
|
35
|
-
"no-import-assign": 0,
|
|
36
|
-
"no-inner-declarations": [
|
|
37
|
-
2,
|
|
38
|
-
"both"
|
|
39
|
-
],
|
|
40
|
-
"no-irregular-whitespace": [
|
|
41
|
-
2,
|
|
42
|
-
{
|
|
43
|
-
"skipStrings": false
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"no-self-compare": 2,
|
|
47
|
-
"no-template-curly-in-string": 2,
|
|
48
|
-
"no-undef": [
|
|
49
|
-
2,
|
|
50
|
-
{
|
|
51
|
-
"typeof": true
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"no-unmodified-loop-condition": 2,
|
|
55
|
-
"no-unreachable-loop": 2,
|
|
56
|
-
"no-unsafe-negation": [
|
|
57
|
-
2,
|
|
58
|
-
{
|
|
59
|
-
"enforceForOrderingRelations": true
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"no-unsafe-optional-chaining": [
|
|
63
|
-
2,
|
|
64
|
-
{
|
|
65
|
-
"disallowArithmeticOperators": true
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"no-unused-private-class-members": 2,
|
|
69
|
-
"no-unused-vars": [
|
|
70
|
-
2,
|
|
71
|
-
{
|
|
72
|
-
"varsIgnorePattern": "^(?:Ast\\w*|\\w*Token|Title)$",
|
|
73
|
-
"caughtErrors": "all",
|
|
74
|
-
"ignoreRestSiblings": true
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"no-use-before-define": [
|
|
78
|
-
2,
|
|
79
|
-
{
|
|
80
|
-
"functions": false,
|
|
81
|
-
"variables": false
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"require-atomic-updates": [
|
|
85
|
-
2,
|
|
86
|
-
{
|
|
87
|
-
"allowProperties": true
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"use-isnan": [
|
|
91
|
-
2,
|
|
92
|
-
{
|
|
93
|
-
"enforceForIndexOf": true
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"valid-typeof": [
|
|
97
|
-
2,
|
|
98
|
-
{
|
|
99
|
-
"requireStringLiterals": true
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"accessor-pairs": 2,
|
|
103
|
-
"arrow-body-style": 2,
|
|
104
|
-
"block-scoped-var": 2,
|
|
105
|
-
"camelcase": 2,
|
|
106
|
-
"class-methods-use-this": [
|
|
107
|
-
2,
|
|
108
|
-
{
|
|
109
|
-
"exceptMethods": [
|
|
110
|
-
"getPadding",
|
|
111
|
-
"getGaps",
|
|
112
|
-
"isPlain"
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
"consistent-return": 2,
|
|
117
|
-
"consistent-this": 2,
|
|
118
|
-
"curly": 2,
|
|
119
|
-
"default-case": 2,
|
|
120
|
-
"default-case-last": 2,
|
|
121
|
-
"default-param-last": 2,
|
|
122
|
-
"dot-notation":2,
|
|
123
|
-
"eqeqeq": 2,
|
|
124
|
-
"func-name-matching": [
|
|
125
|
-
2,
|
|
126
|
-
{
|
|
127
|
-
"considerPropertyDescriptor": true
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"func-names": [
|
|
131
|
-
2,
|
|
132
|
-
"never"
|
|
133
|
-
],
|
|
134
|
-
"func-style": 2,
|
|
135
|
-
"grouped-accessor-pairs": [
|
|
136
|
-
2,
|
|
137
|
-
"getBeforeSet"
|
|
138
|
-
],
|
|
139
|
-
"guard-for-in": 2,
|
|
140
|
-
"logical-assignment-operators": [
|
|
141
|
-
2,
|
|
142
|
-
"always",
|
|
143
|
-
{
|
|
144
|
-
"enforceForIfStatements": true
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"multiline-comment-style": 2,
|
|
148
|
-
"new-cap": [
|
|
149
|
-
2,
|
|
150
|
-
{
|
|
151
|
-
"newIsCap": false
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
"no-array-constructor": 2,
|
|
155
|
-
"no-bitwise": 2,
|
|
156
|
-
"no-caller": 2,
|
|
157
|
-
"no-else-return": 2,
|
|
158
|
-
"no-empty": [
|
|
159
|
-
2,
|
|
160
|
-
{
|
|
161
|
-
"allowEmptyCatch": true
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"no-empty-function": [
|
|
165
|
-
2,
|
|
166
|
-
{
|
|
167
|
-
"allow": [
|
|
168
|
-
"arrowFunctions"
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"no-empty-static-block": 2,
|
|
173
|
-
"no-eval": 2,
|
|
174
|
-
"no-extend-native": 2,
|
|
175
|
-
"no-extra-bind": 2,
|
|
176
|
-
"no-extra-boolean-cast": [
|
|
177
|
-
2,
|
|
178
|
-
{
|
|
179
|
-
"enforceForLogicalOperands": true
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"no-floating-decimal": 2,
|
|
183
|
-
"no-implicit-coercion": 2,
|
|
184
|
-
"no-implicit-globals": 2,
|
|
185
|
-
"no-implied-eval": 2,
|
|
186
|
-
"no-invalid-this": [
|
|
187
|
-
2,
|
|
188
|
-
{
|
|
189
|
-
"capIsConstructor": false
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"no-lone-blocks": 2,
|
|
193
|
-
"no-lonely-if": 2,
|
|
194
|
-
"no-loop-func": 2,
|
|
195
|
-
"no-multi-assign": 2,
|
|
196
|
-
"no-multi-str": 2,
|
|
197
|
-
"no-nested-ternary": 2,
|
|
198
|
-
"no-new": 0,
|
|
199
|
-
"no-new-func": 2,
|
|
200
|
-
"no-new-object": 2,
|
|
201
|
-
"no-new-wrappers": 2,
|
|
202
|
-
"no-octal-escape": 2,
|
|
203
|
-
"no-return-assign": [
|
|
204
|
-
2,
|
|
205
|
-
"always"
|
|
206
|
-
],
|
|
207
|
-
"no-return-await": 0,
|
|
208
|
-
"no-sequences": [
|
|
209
|
-
2,
|
|
210
|
-
{
|
|
211
|
-
"allowInParentheses": false
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"no-shadow": 2,
|
|
215
|
-
"no-throw-literal": 2,
|
|
216
|
-
"no-undef-init": 2,
|
|
217
|
-
"no-underscore-dangle": [
|
|
218
|
-
2,
|
|
219
|
-
{
|
|
220
|
-
"allow": [
|
|
221
|
-
"_",
|
|
222
|
-
"__"
|
|
223
|
-
],
|
|
224
|
-
"enforceInMethodNames": true,
|
|
225
|
-
"enforceInClassFields": true,
|
|
226
|
-
"allowFunctionParams": false
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
"no-unneeded-ternary": [
|
|
230
|
-
2,
|
|
231
|
-
{
|
|
232
|
-
"defaultAssignment": false
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"no-unused-expressions": 2,
|
|
236
|
-
"no-useless-call": 2,
|
|
237
|
-
"no-useless-computed-key": [
|
|
238
|
-
2,
|
|
239
|
-
{
|
|
240
|
-
"enforceForClassMembers": true
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"no-useless-concat": 2,
|
|
244
|
-
"no-useless-constructor": 2,
|
|
245
|
-
"no-useless-return": 2,
|
|
246
|
-
"no-var": 2,
|
|
247
|
-
"no-void": 2,
|
|
248
|
-
"object-shorthand": 2,
|
|
249
|
-
"one-var-declaration-per-line": 2,
|
|
250
|
-
"operator-assignment": 2,
|
|
251
|
-
"prefer-arrow-callback": 2,
|
|
252
|
-
"prefer-const": 2,
|
|
253
|
-
"prefer-destructuring": [
|
|
254
|
-
2,
|
|
255
|
-
{
|
|
256
|
-
"VariableDeclarator": {
|
|
257
|
-
"array": true,
|
|
258
|
-
"object": true,
|
|
259
|
-
"enforceForRenamedProperties": "literal"
|
|
260
|
-
},
|
|
261
|
-
"AssignmentExpression": {
|
|
262
|
-
"array": true,
|
|
263
|
-
"object": true
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"prefer-exponentiation-operator": 2,
|
|
268
|
-
"prefer-numeric-literals": 2,
|
|
269
|
-
"prefer-object-has-own": 2,
|
|
270
|
-
"prefer-object-spread": 2,
|
|
271
|
-
"prefer-regex-literals": [
|
|
272
|
-
2,
|
|
273
|
-
{
|
|
274
|
-
"disallowRedundantWrapping": true
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"prefer-rest-params": 2,
|
|
278
|
-
"prefer-spread": 2,
|
|
279
|
-
"prefer-template": 2,
|
|
280
|
-
"quote-props": [
|
|
281
|
-
2,
|
|
282
|
-
"as-needed"
|
|
283
|
-
],
|
|
284
|
-
"radix": [
|
|
285
|
-
2,
|
|
286
|
-
"as-needed"
|
|
287
|
-
],
|
|
288
|
-
"require-await": 0,
|
|
289
|
-
"require-unicode-regexp": 2,
|
|
290
|
-
"spaced-comment": 2,
|
|
291
|
-
"strict": 2,
|
|
292
|
-
"symbol-description": 2,
|
|
293
|
-
"vars-on-top": 2,
|
|
294
|
-
"yoda": 2,
|
|
295
|
-
"array-bracket-newline": [
|
|
296
|
-
2,
|
|
297
|
-
{
|
|
298
|
-
"multiline": true
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"array-bracket-spacing": 2,
|
|
302
|
-
"array-element-newline": [
|
|
303
|
-
2,
|
|
304
|
-
"consistent"
|
|
305
|
-
],
|
|
306
|
-
"arrow-parens": [
|
|
307
|
-
2,
|
|
308
|
-
"as-needed"
|
|
309
|
-
],
|
|
310
|
-
"arrow-spacing": 2,
|
|
311
|
-
"brace-style": 2,
|
|
312
|
-
"block-spacing": 2,
|
|
313
|
-
"comma-dangle": [
|
|
314
|
-
2,
|
|
315
|
-
"always-multiline"
|
|
316
|
-
],
|
|
317
|
-
"comma-spacing": 2,
|
|
318
|
-
"comma-style": 2,
|
|
319
|
-
"computed-property-spacing": 2,
|
|
320
|
-
"dot-location": [
|
|
321
|
-
2,
|
|
322
|
-
"property"
|
|
323
|
-
],
|
|
324
|
-
"eol-last": 2,
|
|
325
|
-
"func-call-spacing": 2,
|
|
326
|
-
"function-call-argument-newline": [
|
|
327
|
-
2,
|
|
328
|
-
"consistent"
|
|
329
|
-
],
|
|
330
|
-
"function-paren-newline": [
|
|
331
|
-
2,
|
|
332
|
-
"consistent"
|
|
333
|
-
],
|
|
334
|
-
"indent": [
|
|
335
|
-
2,
|
|
336
|
-
"tab",
|
|
337
|
-
{
|
|
338
|
-
"SwitchCase": 1
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
"key-spacing": 2,
|
|
342
|
-
"keyword-spacing": 2,
|
|
343
|
-
"linebreak-style": 2,
|
|
344
|
-
"lines-around-comment": [
|
|
345
|
-
2,
|
|
346
|
-
{
|
|
347
|
-
"allowBlockStart": true,
|
|
348
|
-
"ignorePattern": "^\\* @"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"lines-between-class-members": [
|
|
352
|
-
2,
|
|
353
|
-
"always",
|
|
354
|
-
{
|
|
355
|
-
"exceptAfterSingleLine": true
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
"multiline-ternary": [
|
|
359
|
-
2,
|
|
360
|
-
"always-multiline"
|
|
361
|
-
],
|
|
362
|
-
"new-parens": 2,
|
|
363
|
-
"newline-per-chained-call": [
|
|
364
|
-
2,
|
|
365
|
-
{
|
|
366
|
-
"ignoreChainWithDepth": 3
|
|
367
|
-
}
|
|
368
|
-
],
|
|
369
|
-
"no-extra-parens": 2,
|
|
370
|
-
"no-multi-spaces": [
|
|
371
|
-
2,
|
|
372
|
-
{
|
|
373
|
-
"exceptions": {}
|
|
374
|
-
}
|
|
375
|
-
],
|
|
376
|
-
"no-multiple-empty-lines": [
|
|
377
|
-
2,
|
|
378
|
-
{
|
|
379
|
-
"max": 1,
|
|
380
|
-
"maxBOF": 0
|
|
381
|
-
}
|
|
382
|
-
],
|
|
383
|
-
"no-trailing-spaces": 2,
|
|
384
|
-
"no-whitespace-before-property": 2,
|
|
385
|
-
"object-curly-newline": [
|
|
386
|
-
2,
|
|
387
|
-
{
|
|
388
|
-
"consistent": true
|
|
389
|
-
}
|
|
390
|
-
],
|
|
391
|
-
"object-curly-spacing": 2,
|
|
392
|
-
"object-property-newline": [
|
|
393
|
-
2,
|
|
394
|
-
{
|
|
395
|
-
"allowAllPropertiesOnSameLine": true
|
|
396
|
-
}
|
|
397
|
-
],
|
|
398
|
-
"operator-linebreak": [
|
|
399
|
-
2,
|
|
400
|
-
"before"
|
|
401
|
-
],
|
|
402
|
-
"padded-blocks": [
|
|
403
|
-
2,
|
|
404
|
-
"never"
|
|
405
|
-
],
|
|
406
|
-
"quotes": [
|
|
407
|
-
2,
|
|
408
|
-
"single",
|
|
409
|
-
{
|
|
410
|
-
"avoidEscape": true,
|
|
411
|
-
"allowTemplateLiterals": true
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"rest-spread-spacing": 2,
|
|
415
|
-
"semi": 2,
|
|
416
|
-
"semi-spacing": 2,
|
|
417
|
-
"semi-style": 2,
|
|
418
|
-
"space-before-blocks": 2,
|
|
419
|
-
"space-before-function-paren": [
|
|
420
|
-
2,
|
|
421
|
-
{
|
|
422
|
-
"anonymous": "never",
|
|
423
|
-
"named": "never",
|
|
424
|
-
"asyncArrow": "always"
|
|
425
|
-
}
|
|
426
|
-
],
|
|
427
|
-
"space-in-parens": 2,
|
|
428
|
-
"space-infix-ops": 2,
|
|
429
|
-
"space-unary-ops": 2,
|
|
430
|
-
"switch-colon-spacing": 2,
|
|
431
|
-
"template-curly-spacing": 2,
|
|
432
|
-
"wrap-iife": [
|
|
433
|
-
2,
|
|
434
|
-
"inside"
|
|
435
|
-
],
|
|
436
|
-
"n/no-extraneous-import": 0,
|
|
437
|
-
"n/no-missing-import": 0,
|
|
438
|
-
"n/no-new-require": 2,
|
|
439
|
-
"n/no-path-concat": 2,
|
|
440
|
-
"n/no-unpublished-bin": 0,
|
|
441
|
-
"n/no-unpublished-import": 0,
|
|
442
|
-
"n/no-unpublished-require": 0,
|
|
443
|
-
"n/shebang": 0,
|
|
444
|
-
"n/exports-style": [
|
|
445
|
-
2,
|
|
446
|
-
"module.exports"
|
|
447
|
-
],
|
|
448
|
-
"n/no-mixed-requires": 2,
|
|
449
|
-
"regexp/no-contradiction-with-assertion": 2,
|
|
450
|
-
"regexp/no-dupe-disjunctions": [
|
|
451
|
-
2,
|
|
452
|
-
{
|
|
453
|
-
"report": "interesting"
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
"regexp/no-empty-character-class": 2,
|
|
457
|
-
"regexp/no-misleading-unicode-character": 2,
|
|
458
|
-
"regexp/no-missing-g-flag": 2,
|
|
459
|
-
"regexp/no-super-linear-backtracking": 2,
|
|
460
|
-
"regexp/no-super-linear-move": 2,
|
|
461
|
-
"regexp/no-extra-lookaround-assertions": 2,
|
|
462
|
-
"regexp/no-octal": 2,
|
|
463
|
-
"regexp/no-standalone-backslash": 2,
|
|
464
|
-
"regexp/no-useless-character-class": [
|
|
465
|
-
2,
|
|
466
|
-
{
|
|
467
|
-
"ignores": []
|
|
468
|
-
}
|
|
469
|
-
],
|
|
470
|
-
"regexp/prefer-escape-replacement-dollar-char": 2,
|
|
471
|
-
"regexp/prefer-quantifier": 2,
|
|
472
|
-
"regexp/prefer-regexp-test": 2,
|
|
473
|
-
"regexp/use-ignore-case": 2,
|
|
474
|
-
"regexp/hexadecimal-escape": 2,
|
|
475
|
-
"regexp/letter-case": [
|
|
476
|
-
2,
|
|
477
|
-
{
|
|
478
|
-
"unicodeEscape": "uppercase",
|
|
479
|
-
"hexadecimalEscape": "uppercase",
|
|
480
|
-
"controlEscape": "uppercase"
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
"regexp/prefer-character-class": [
|
|
484
|
-
2,
|
|
485
|
-
{
|
|
486
|
-
"minAlternatives": 2
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"regexp/prefer-lookaround": 2,
|
|
490
|
-
"unicorn/better-regex": 0,
|
|
491
|
-
"unicorn/catch-error-name": [
|
|
492
|
-
2,
|
|
493
|
-
{
|
|
494
|
-
"name": "e"
|
|
495
|
-
}
|
|
496
|
-
],
|
|
497
|
-
"unicorn/consistent-destructuring": [
|
|
498
|
-
2,
|
|
499
|
-
{
|
|
500
|
-
"exceptions": [
|
|
501
|
-
"Parser.running",
|
|
502
|
-
"Parser.debugging",
|
|
503
|
-
"Parser.warning",
|
|
504
|
-
"Parser.classes"
|
|
505
|
-
]
|
|
506
|
-
}
|
|
507
|
-
],
|
|
508
|
-
"unicorn/escape-case": 0,
|
|
509
|
-
"unicorn/expiring-todo-comments": 0,
|
|
510
|
-
"unicorn/filename-case": [
|
|
511
|
-
2,
|
|
512
|
-
{
|
|
513
|
-
"case": "camelCase"
|
|
514
|
-
}
|
|
515
|
-
],
|
|
516
|
-
"unicorn/import-style": 0,
|
|
517
|
-
"unicorn/no-array-callback-reference": 0,
|
|
518
|
-
"unicorn/no-await-expression-member": 0,
|
|
519
|
-
"unicorn/no-document-cookie": 0,
|
|
520
|
-
"unicorn/no-empty-file": 0,
|
|
521
|
-
"unicorn/no-for-loop": 0,
|
|
522
|
-
"unicorn/no-hex-escape": 0,
|
|
523
|
-
"unicorn/no-invalid-remove-event-listener": 0,
|
|
524
|
-
"unicorn/no-nested-ternary": 0,
|
|
525
|
-
"unicorn/no-new-array": 0,
|
|
526
|
-
"unicorn/no-null": 0,
|
|
527
|
-
"unicorn/no-process-exit": 0,
|
|
528
|
-
"unicorn/no-thenable": 0,
|
|
529
|
-
"unicorn/no-typeof-undefined": [
|
|
530
|
-
2,
|
|
531
|
-
{
|
|
532
|
-
"checkGlobalVariables": true
|
|
533
|
-
}
|
|
534
|
-
],
|
|
535
|
-
"unicorn/no-unreadable-array-destructuring": 0,
|
|
536
|
-
"unicorn/no-unused-properties": 2,
|
|
537
|
-
"unicorn/no-useless-undefined": 0,
|
|
538
|
-
"unicorn/prefer-add-event-listener": 0,
|
|
539
|
-
"unicorn/prefer-array-find": [
|
|
540
|
-
2,
|
|
541
|
-
{
|
|
542
|
-
"checkFromLast": true
|
|
543
|
-
}
|
|
544
|
-
],
|
|
545
|
-
"unicorn/prefer-at": 2,
|
|
546
|
-
"unicorn/prefer-dom-node-append": 0,
|
|
547
|
-
"unicorn/prefer-dom-node-dataset": 0,
|
|
548
|
-
"unicorn/prefer-dom-node-remove": 0,
|
|
549
|
-
"unicorn/prefer-dom-node-text-content": 0,
|
|
550
|
-
"unicorn/prefer-export-from": 0,
|
|
551
|
-
"unicorn/prefer-keyboard-event-key": 0,
|
|
552
|
-
"unicorn/prefer-math-trunc": 0,
|
|
553
|
-
"unicorn/prefer-modern-dom-apis": 0,
|
|
554
|
-
"unicorn/prefer-modern-math-apis": 0,
|
|
555
|
-
"unicorn/prefer-module": 0,
|
|
556
|
-
"unicorn/prefer-node-protocol": 0,
|
|
557
|
-
"unicorn/prefer-number-properties": 0,
|
|
558
|
-
"unicorn/prefer-object-from-entries": 0,
|
|
559
|
-
"unicorn/prefer-query-selector": 0,
|
|
560
|
-
"unicorn/prefer-regexp-test": 0,
|
|
561
|
-
"unicorn/prefer-set-has": 0,
|
|
562
|
-
"unicorn/prefer-set-size": 0,
|
|
563
|
-
"unicorn/prefer-spread": [
|
|
564
|
-
2,
|
|
565
|
-
{
|
|
566
|
-
"concat": "certain"
|
|
567
|
-
}
|
|
568
|
-
],
|
|
569
|
-
"unicorn/prefer-string-replace-all": 2,
|
|
570
|
-
"unicorn/prefer-string-slice": 0,
|
|
571
|
-
"unicorn/prefer-string-trim-start-end": 0,
|
|
572
|
-
"unicorn/prefer-top-level-await": 0,
|
|
573
|
-
"unicorn/prefer-type-error": 0,
|
|
574
|
-
"unicorn/prevent-abbreviations": 0,
|
|
575
|
-
"unicorn/relative-url-style": 0,
|
|
576
|
-
"unicorn/require-array-join-separator": 0,
|
|
577
|
-
"unicorn/require-number-to-fixed-digits-argument": 0,
|
|
578
|
-
"unicorn/switch-case-braces": [
|
|
579
|
-
2,
|
|
580
|
-
"avoid"
|
|
581
|
-
],
|
|
582
|
-
"unicorn/template-indent": 0,
|
|
583
|
-
"jsdoc/check-alignment": 1,
|
|
584
|
-
"jsdoc/check-indentation": 1,
|
|
585
|
-
"jsdoc/check-tag-names": [
|
|
586
|
-
1,
|
|
587
|
-
{
|
|
588
|
-
"definedTags": [
|
|
589
|
-
"template",
|
|
590
|
-
"complexity"
|
|
591
|
-
]
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
"jsdoc/check-types": 1,
|
|
595
|
-
"jsdoc/multiline-blocks": 1,
|
|
596
|
-
"jsdoc/newline-after-description": [
|
|
597
|
-
1,
|
|
598
|
-
"never"
|
|
599
|
-
],
|
|
600
|
-
"jsdoc/no-bad-blocks": [
|
|
601
|
-
1,
|
|
602
|
-
{
|
|
603
|
-
"preventAllMultiAsteriskBlocks": true
|
|
604
|
-
}
|
|
605
|
-
],
|
|
606
|
-
"jsdoc/no-multi-asterisks": 1,
|
|
607
|
-
"jsdoc/require-asterisk-prefix": 1,
|
|
608
|
-
"jsdoc/require-description": [
|
|
609
|
-
1,
|
|
610
|
-
{
|
|
611
|
-
"contexts": [
|
|
612
|
-
"FunctionDeclaration",
|
|
613
|
-
"VariableDeclarator > FunctionExpression",
|
|
614
|
-
"MethodDefinition > FunctionExpression",
|
|
615
|
-
"VariableDeclarator > ArrowFunctionExpression"
|
|
616
|
-
],
|
|
617
|
-
"exemptedBy": [
|
|
618
|
-
"type"
|
|
619
|
-
],
|
|
620
|
-
"checkConstructors": false,
|
|
621
|
-
"checkSetters": false
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"jsdoc/require-hyphen-before-param-description": [
|
|
625
|
-
1,
|
|
626
|
-
"never"
|
|
627
|
-
],
|
|
628
|
-
"jsdoc/require-jsdoc": [
|
|
629
|
-
1,
|
|
630
|
-
{
|
|
631
|
-
"require": {
|
|
632
|
-
"ArrowFunctionExpression": true,
|
|
633
|
-
"ClassDeclaration": true,
|
|
634
|
-
"FunctionDeclaration": true,
|
|
635
|
-
"FunctionExpression": true,
|
|
636
|
-
"MethodDefinition": true
|
|
637
|
-
},
|
|
638
|
-
"exemptEmptyConstructors": true,
|
|
639
|
-
"checkGetters": true,
|
|
640
|
-
"checkSetters": "no-getter"
|
|
641
|
-
}
|
|
642
|
-
],
|
|
643
|
-
"jsdoc/require-param-description": [
|
|
644
|
-
1,
|
|
645
|
-
{
|
|
646
|
-
"exceptions": [
|
|
647
|
-
"accum",
|
|
648
|
-
"selector",
|
|
649
|
-
"callback"
|
|
650
|
-
],
|
|
651
|
-
"contexts": [
|
|
652
|
-
"FunctionDeclaration",
|
|
653
|
-
"VariableDeclarator > FunctionExpression",
|
|
654
|
-
"MethodDefinition > FunctionExpression",
|
|
655
|
-
"VariableDeclarator > ArrowFunctionExpression"
|
|
656
|
-
]
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
"jsdoc/require-param-name": [
|
|
660
|
-
1,
|
|
661
|
-
{
|
|
662
|
-
"contexts": [
|
|
663
|
-
"FunctionDeclaration",
|
|
664
|
-
"VariableDeclarator > FunctionExpression",
|
|
665
|
-
"MethodDefinition > FunctionExpression",
|
|
666
|
-
"VariableDeclarator > ArrowFunctionExpression"
|
|
667
|
-
]
|
|
668
|
-
}
|
|
669
|
-
],
|
|
670
|
-
"jsdoc/require-param-type": 1,
|
|
671
|
-
"jsdoc/require-param": [
|
|
672
|
-
1,
|
|
673
|
-
{
|
|
674
|
-
"exceptions": [
|
|
675
|
-
"_",
|
|
676
|
-
"config",
|
|
677
|
-
"halfParsed"
|
|
678
|
-
],
|
|
679
|
-
"contexts": [
|
|
680
|
-
"FunctionDeclaration",
|
|
681
|
-
"VariableDeclarator > FunctionExpression",
|
|
682
|
-
"MethodDefinition > FunctionExpression",
|
|
683
|
-
"VariableDeclarator > ArrowFunctionExpression"
|
|
684
|
-
]
|
|
685
|
-
}
|
|
686
|
-
],
|
|
687
|
-
"jsdoc/require-returns-check": [
|
|
688
|
-
1,
|
|
689
|
-
{
|
|
690
|
-
"exemptAsync": false
|
|
691
|
-
}
|
|
692
|
-
],
|
|
693
|
-
"jsdoc/require-returns-type": 1,
|
|
694
|
-
"jsdoc/require-throws": 1
|
|
695
|
-
},
|
|
696
|
-
"overrides": [
|
|
697
|
-
{
|
|
698
|
-
"files": "./index.js",
|
|
699
|
-
"rules": {
|
|
700
|
-
"jsdoc/require-jsdoc": 0
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
],
|
|
704
|
-
"settings": {
|
|
705
|
-
"jsdoc": {
|
|
706
|
-
"tagNamePreference": {
|
|
707
|
-
"augments": "extends"
|
|
708
|
-
},
|
|
709
|
-
"overrideReplacesDocs": [
|
|
710
|
-
"require-description"
|
|
711
|
-
]
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
package/errors/README
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
这里记录解析失败时处于半解析状态的维基文本以及错误信息。
|
package/jsconfig.json
DELETED
package/printed/README
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
这里存放以 JSON 格式打印的 AST。
|