wikilint 2.14.0 → 2.15.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/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  [![npm version](https://badge.fury.io/js/wikilint.svg)](https://www.npmjs.com/package/wikilint)
2
2
  [![CodeQL](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/codeql.yml/badge.svg)](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/codeql.yml)
3
3
  [![CI](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/node.js.yml/badge.svg)](https://github.com/bhsd-harry/wikiparser-node/actions/workflows/node.js.yml)
4
+ [![codebeat badge](https://codebeat.co/badges/7cdd51e6-2c5d-4a22-aae1-f5e352047d54)](https://codebeat.co/projects/github-com-bhsd-harry-wikiparser-node-main)
4
5
 
5
6
  # WikiLint
6
7
 
@@ -39,8 +39,18 @@
39
39
  "file",
40
40
  "category"
41
41
  ],
42
- "additionalProperties": {
43
- "type": "integer"
42
+ "patternProperties": {
43
+ "^[^A-Z]*$": {
44
+ "type": "integer"
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ },
49
+ "variable": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "pattern": "^[^#A-Z]+$"
44
54
  }
45
55
  },
46
56
  "parserFunction": {
@@ -49,41 +59,44 @@
49
59
  {
50
60
  "description": "case-insensitive parser functions",
51
61
  "type": "object",
52
- "additionalProperties": {
53
- "type": "string"
54
- }
62
+ "patternProperties": {
63
+ "^[^A-Z]+$": {
64
+ "type": "string",
65
+ "pattern": "^[^#A-Z]+$"
66
+ }
67
+ },
68
+ "additionalProperties": false
55
69
  },
56
70
  {
57
71
  "description": "case-sensitive parser functions",
58
- "type": "array",
59
- "allOf": [
60
- {
61
- "contains": {
62
- "const": "!"
63
- }
72
+ "type": "object",
73
+ "properties": {
74
+ "!": {
75
+ "const": "!"
64
76
  },
65
- {
66
- "contains": {
67
- "const": "="
68
- }
77
+ "=": {
78
+ "const": "="
69
79
  }
70
- ],
71
- "items": {
72
- "type": "string"
80
+ },
81
+ "additionalProperties": {
82
+ "type": "string",
83
+ "pattern": "^[^#A-Z]+$"
73
84
  }
74
85
  },
75
86
  {
76
87
  "description": "msg and raw",
77
88
  "type": "array",
78
89
  "items": {
79
- "type": "string"
90
+ "type": "string",
91
+ "pattern": "^[^A-Z]+$"
80
92
  }
81
93
  },
82
94
  {
83
95
  "description": "subst and safesubst",
84
96
  "type": "array",
85
97
  "items": {
86
- "type": "string"
98
+ "type": "string",
99
+ "pattern": "^[^A-Z]+$"
87
100
  }
88
101
  }
89
102
  ],
@@ -98,7 +111,8 @@
98
111
  "description": "case-insensitive behavior switches",
99
112
  "type": "array",
100
113
  "items": {
101
- "type": "string"
114
+ "type": "string",
115
+ "pattern": "^[^A-Z]+$"
102
116
  }
103
117
  },
104
118
  {
@@ -111,13 +125,24 @@
111
125
  {
112
126
  "description": "case-insensitive behavior switches",
113
127
  "type": "object",
128
+ "patternProperties": {
129
+ "^[^A-Z]+$": {
130
+ "type": "string",
131
+ "pattern": "^[^A-Z]+$"
132
+ }
133
+ },
134
+ "additionalProperties": false
135
+ },
136
+ {
137
+ "description": "case-sensitive behavior switches",
138
+ "type": "object",
114
139
  "additionalProperties": {
115
140
  "type": "string"
116
141
  }
117
142
  }
118
143
  ],
119
144
  "minItems": 2,
120
- "maxItems": 3
145
+ "maxItems": 4
121
146
  },
122
147
  "protocol": {
123
148
  "description": "external link protocols",
@@ -127,23 +152,27 @@
127
152
  "interwiki": {
128
153
  "type": "array",
129
154
  "items": {
130
- "type": "string"
155
+ "type": "string",
156
+ "pattern": "^[^A-Z]+$"
131
157
  }
132
158
  },
133
159
  "img": {
134
160
  "description": "image-related magic words",
135
161
  "type": "object",
136
- "additionalProperties": {
137
- "type": "string",
138
- "pattern": "^[-a-z]+$"
139
- }
162
+ "patternProperties": {
163
+ "^[^A-Z]+$": {
164
+ "type": "string",
165
+ "pattern": "^[-a-z]+$"
166
+ }
167
+ },
168
+ "additionalProperties": false
140
169
  },
141
170
  "redirection": {
142
171
  "description": "magic words for redirection",
143
172
  "type": "array",
144
173
  "items": {
145
174
  "type": "string",
146
- "pattern": "^#.+$"
175
+ "pattern": "^#[^A-Z]+$"
147
176
  }
148
177
  },
149
178
  "variants": {
@@ -191,6 +220,7 @@
191
220
  "html",
192
221
  "namespaces",
193
222
  "nsid",
223
+ "variable",
194
224
  "parserFunction",
195
225
  "doubleUnderscore",
196
226
  "protocol",