@tsslint/config 1.5.4 → 1.5.6
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/lib/plugins/ignore.js +12 -17
- package/package.json +3 -3
package/lib/plugins/ignore.js
CHANGED
|
@@ -169,26 +169,21 @@ function create(cmdOption, reportsUnusedComments) {
|
|
|
169
169
|
reportedRules.push([error.code, line]);
|
|
170
170
|
for (const code of [undefined, error.code]) {
|
|
171
171
|
const states = comments.get(code);
|
|
172
|
-
if (states) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
}
|
|
172
|
+
if (!states) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
if (mode === 'singleLine') {
|
|
176
|
+
for (const state of states) {
|
|
177
|
+
if (state.startLine === line) {
|
|
178
|
+
state.used = true;
|
|
181
179
|
return false;
|
|
182
180
|
}
|
|
183
181
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
for (const state of states) {
|
|
185
|
+
if (line >= state.startLine && line <= (state.endLine ?? Number.MAX_VALUE)) {
|
|
186
|
+
state.used = true;
|
|
192
187
|
return false;
|
|
193
188
|
}
|
|
194
189
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"directory": "packages/config"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tsslint/types": "1.5.
|
|
15
|
+
"@tsslint/types": "1.5.6",
|
|
16
16
|
"ts-api-utils": "^2.0.0"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "3d0dfb208e94cfafa4bccfa75a2d98ffbd67d8e1"
|
|
19
19
|
}
|