wikilint 2.21.2 → 2.22.0
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 +15 -11
- package/config/enwiki.json +1 -1
- package/config/jawiki.json +1 -1
- package/config/minimum.json +2 -3
- package/config/moegirl.json +152 -15
- package/config/zhwiki.json +1 -1
- package/dist/base.d.mts +16 -9
- package/dist/base.d.ts +16 -9
- package/dist/bin/config.js +23 -11
- package/dist/index.d.ts +11 -2
- package/dist/index.js +25 -2
- package/dist/lib/element.d.ts +3 -3
- package/dist/lib/element.js +3 -3
- package/dist/lib/lintConfig.d.ts +13 -0
- package/dist/lib/lintConfig.js +274 -0
- package/dist/lib/lsp.d.ts +7 -7
- package/dist/lib/lsp.js +18 -20
- package/dist/lib/node.js +233 -193
- package/dist/lib/text.js +72 -62
- package/dist/mixin/attributesParent.d.ts +7 -0
- package/dist/mixin/attributesParent.js +4 -0
- package/dist/mixin/cached.d.ts +5 -0
- package/dist/mixin/cached.js +18 -0
- package/dist/parser/commentAndExt.js +6 -4
- package/dist/parser/converter.js +1 -1
- package/dist/parser/html.js +3 -3
- package/dist/parser/table.js +2 -2
- package/dist/src/arg.js +12 -7
- package/dist/src/attribute.js +53 -21
- package/dist/src/attributes.d.ts +7 -0
- package/dist/src/attributes.js +19 -8
- package/dist/src/commented.js +1 -1
- package/dist/src/converterFlags.js +20 -13
- package/dist/src/converterRule.js +1 -1
- package/dist/src/extLink.js +10 -6
- package/dist/src/gallery.js +26 -19
- package/dist/src/heading.js +32 -27
- package/dist/src/html.js +63 -44
- package/dist/src/imageParameter.js +13 -6
- package/dist/src/imagemap.js +18 -16
- package/dist/src/index.js +54 -47
- package/dist/src/link/base.js +22 -11
- package/dist/src/link/file.js +22 -14
- package/dist/src/link/galleryImage.js +9 -5
- package/dist/src/link/index.js +7 -3
- package/dist/src/link/redirectTarget.js +7 -3
- package/dist/src/magicLink.js +16 -12
- package/dist/src/nested.js +6 -2
- package/dist/src/nowiki/comment.js +5 -1
- package/dist/src/nowiki/index.js +4 -4
- package/dist/src/nowiki/quote.js +19 -38
- package/dist/src/paramTag/index.js +6 -2
- package/dist/src/parameter.js +23 -13
- package/dist/src/table/index.js +173 -124
- package/dist/src/table/td.js +171 -118
- package/dist/src/table/trBase.js +11 -8
- package/dist/src/tagPair/ext.js +6 -5
- package/dist/src/tagPair/include.js +5 -5
- package/dist/src/transclude.js +24 -11
- package/dist/util/lint.js +5 -6
- package/dist/util/sharable.js +1 -1
- package/dist/util/sharable.mjs +2 -2
- package/dist/util/string.js +1 -5
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +20 -15
package/config/default.json
CHANGED
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
"templatestyles",
|
|
16
16
|
"dynamicpagelist",
|
|
17
17
|
"poll",
|
|
18
|
-
"modernsoundmanager",
|
|
19
|
-
"flashmp3",
|
|
20
|
-
"sm2",
|
|
21
18
|
"score",
|
|
22
19
|
"seo",
|
|
23
20
|
"tab",
|
|
@@ -43,7 +40,8 @@
|
|
|
43
40
|
"syntaxhighlight",
|
|
44
41
|
"templatedata",
|
|
45
42
|
"timeline",
|
|
46
|
-
"page-collection"
|
|
43
|
+
"page-collection",
|
|
44
|
+
"img"
|
|
47
45
|
],
|
|
48
46
|
"html": [
|
|
49
47
|
[
|
|
@@ -111,8 +109,7 @@
|
|
|
111
109
|
"wbr",
|
|
112
110
|
"hr",
|
|
113
111
|
"meta",
|
|
114
|
-
"link"
|
|
115
|
-
"img"
|
|
112
|
+
"link"
|
|
116
113
|
]
|
|
117
114
|
],
|
|
118
115
|
"namespaces": {
|
|
@@ -220,6 +217,8 @@
|
|
|
220
217
|
"萌娘百科 talk": 5,
|
|
221
218
|
"萌娘百科讨论": 5,
|
|
222
219
|
"萌娘百科討論": 5,
|
|
220
|
+
"萌娘百科对话": 5,
|
|
221
|
+
"萌娘百科對話": 5,
|
|
223
222
|
"moegirlpedia talk": 5,
|
|
224
223
|
"萌えっ娘百科事典‐ノート": 5,
|
|
225
224
|
"萌えっ娘百科事典・トーク": 5,
|
|
@@ -385,12 +384,16 @@
|
|
|
385
384
|
"timedtext talk": 711,
|
|
386
385
|
"widget": 274,
|
|
387
386
|
"小元件": 274,
|
|
387
|
+
"小組件": 274,
|
|
388
388
|
"小组件": 274,
|
|
389
389
|
"小部件": 274,
|
|
390
390
|
"微件": 274,
|
|
391
391
|
"widget talk": 275,
|
|
392
|
+
"小元件討論": 275,
|
|
392
393
|
"小元件讨论": 275,
|
|
394
|
+
"小組件討論": 275,
|
|
393
395
|
"小组件讨论": 275,
|
|
396
|
+
"小部件討論": 275,
|
|
394
397
|
"小部件讨论": 275,
|
|
395
398
|
"微件讨论": 275,
|
|
396
399
|
"微件討論": 275,
|
|
@@ -539,7 +542,6 @@
|
|
|
539
542
|
"seo",
|
|
540
543
|
"categorytree",
|
|
541
544
|
"related",
|
|
542
|
-
"cscore",
|
|
543
545
|
"formal",
|
|
544
546
|
"bcp47",
|
|
545
547
|
"dir",
|
|
@@ -564,6 +566,7 @@
|
|
|
564
566
|
"lqtpagelimit",
|
|
565
567
|
"translation",
|
|
566
568
|
"chart",
|
|
569
|
+
"avatar",
|
|
567
570
|
"mentor"
|
|
568
571
|
],
|
|
569
572
|
"variable": [
|
|
@@ -672,7 +675,6 @@
|
|
|
672
675
|
"urlエンコード": "urlencode",
|
|
673
676
|
"urlエンコード:": "urlencode",
|
|
674
677
|
"urlencode": "urlencode",
|
|
675
|
-
"#urlencode": "urlencode",
|
|
676
678
|
"小写首字": "lcfirst",
|
|
677
679
|
"先頭小文字": "lcfirst",
|
|
678
680
|
"lcfirst": "lcfirst",
|
|
@@ -841,8 +843,8 @@
|
|
|
841
843
|
"#vardefine": "vardefine",
|
|
842
844
|
"#vardefineecho": "vardefineecho",
|
|
843
845
|
"#widget": "widget",
|
|
844
|
-
"#小工具": "widget",
|
|
845
846
|
"#小元件": "widget",
|
|
847
|
+
"#小組件": "widget",
|
|
846
848
|
"#小组件": "widget",
|
|
847
849
|
"#小部件": "widget",
|
|
848
850
|
"#微件": "widget",
|
|
@@ -870,7 +872,6 @@
|
|
|
870
872
|
"ウィキ無効メッセージ": "msgnw",
|
|
871
873
|
"msgnw": "msgnw",
|
|
872
874
|
"#related": "related",
|
|
873
|
-
"#cscore": "cscore",
|
|
874
875
|
"#regex": "regex",
|
|
875
876
|
"#regex_var": "regex_var",
|
|
876
877
|
"#regexquote": "regexquote",
|
|
@@ -932,6 +933,9 @@
|
|
|
932
933
|
"#lqtpagelimit": "lqtpagelimit",
|
|
933
934
|
"#chart": "chart",
|
|
934
935
|
"numberofwikis": "numberofwikis",
|
|
936
|
+
"#头像": "avatar",
|
|
937
|
+
"#頭像": "avatar",
|
|
938
|
+
"#avatar": "avatar",
|
|
935
939
|
"wb報表名稱": "wbreponame",
|
|
936
940
|
"wb报告名": "wbreponame",
|
|
937
941
|
"wbreponame": "wbreponame"
|
|
@@ -1438,7 +1442,7 @@
|
|
|
1438
1442
|
"EXPECTUNUSEDTEMPLATE": "EXPECTUNUSEDTEMPLATE"
|
|
1439
1443
|
}
|
|
1440
1444
|
],
|
|
1441
|
-
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
|
|
1445
|
+
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|wikipedia://|worldwind://|xmpp:",
|
|
1442
1446
|
"interwiki": [],
|
|
1443
1447
|
"img": {
|
|
1444
1448
|
"thumbnail": "thumbnail",
|
package/config/enwiki.json
CHANGED
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
"EXPECTED_UNCONNECTED_PAGE": "EXPECTEDUNCONNECTEDPAGE"
|
|
585
585
|
}
|
|
586
586
|
],
|
|
587
|
-
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
|
|
587
|
+
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|wikipedia://|worldwind://|xmpp:",
|
|
588
588
|
"interwiki": [],
|
|
589
589
|
"img": {
|
|
590
590
|
"alt=$1": "alt",
|
package/config/jawiki.json
CHANGED
|
@@ -885,7 +885,7 @@
|
|
|
885
885
|
"EXPECTED_UNCONNECTED_PAGE": "EXPECTEDUNCONNECTEDPAGE"
|
|
886
886
|
}
|
|
887
887
|
],
|
|
888
|
-
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
|
|
888
|
+
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|wikipedia://|worldwind://|xmpp:",
|
|
889
889
|
"interwiki": [],
|
|
890
890
|
"img": {
|
|
891
891
|
"代替文=$1": "alt",
|
package/config/minimum.json
CHANGED
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
"servername": "servername",
|
|
106
106
|
"scriptpath": "scriptpath",
|
|
107
107
|
"stylepath": "stylepath",
|
|
108
|
-
"#urlencode": "urlencode",
|
|
109
108
|
"#language": "language",
|
|
110
109
|
"#special": "special",
|
|
111
110
|
"#speciale": "speciale",
|
|
@@ -139,7 +138,6 @@
|
|
|
139
138
|
"#vardefineecho": "vardefineecho",
|
|
140
139
|
"#widget": "widget",
|
|
141
140
|
"#related": "related",
|
|
142
|
-
"#cscore": "cscore",
|
|
143
141
|
"#regex": "regex",
|
|
144
142
|
"#regex_var": "regex_var",
|
|
145
143
|
"#regexquote": "regexquote",
|
|
@@ -173,6 +171,7 @@
|
|
|
173
171
|
"#statements": "statements",
|
|
174
172
|
"#useliquidthreads": "useliquidthreads",
|
|
175
173
|
"#lqtpagelimit": "lqtpagelimit",
|
|
174
|
+
"#avatar": "avatar",
|
|
176
175
|
"#chart": "chart"
|
|
177
176
|
},
|
|
178
177
|
{
|
|
@@ -199,7 +198,7 @@
|
|
|
199
198
|
[],
|
|
200
199
|
[]
|
|
201
200
|
],
|
|
202
|
-
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
|
|
201
|
+
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|wikipedia://|worldwind://|xmpp:",
|
|
203
202
|
"interwiki": [],
|
|
204
203
|
"img": {},
|
|
205
204
|
"redirection": [
|