@tsslint/core 1.0.6 → 1.0.8
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/index.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -164,10 +164,10 @@ function createLinter(ctx, config, withStack) {
|
|
|
164
164
|
getCodeFixes(fileName, start, end, diagnostics) {
|
|
165
165
|
const fixesMap = getFileFixes(fileName);
|
|
166
166
|
let result = [];
|
|
167
|
-
for (const [
|
|
167
|
+
for (const [ruleId, fixes] of fixesMap) {
|
|
168
168
|
for (let i = 0; i < fixes.length; i++) {
|
|
169
169
|
const fix = fixes[i];
|
|
170
|
-
if (diagnostics && !diagnostics.includes(fix.diagnostic)) {
|
|
170
|
+
if (diagnostics?.length && !diagnostics.includes(fix.diagnostic)) {
|
|
171
171
|
continue;
|
|
172
172
|
}
|
|
173
173
|
if ((fix.start >= start && fix.start <= end) ||
|
|
@@ -175,7 +175,7 @@ function createLinter(ctx, config, withStack) {
|
|
|
175
175
|
(start >= fix.start && start <= fix.end) ||
|
|
176
176
|
(end >= fix.start && end <= fix.end)) {
|
|
177
177
|
result.push({
|
|
178
|
-
fixName: `tsslint
|
|
178
|
+
fixName: `tsslint:${ruleId}`,
|
|
179
179
|
description: fix.title,
|
|
180
180
|
changes: fix.getEdits(),
|
|
181
181
|
fixId: 'tsslint',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"source-map-support": "^0.5.21"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tsslint/config": "1.0.
|
|
19
|
+
"@tsslint/config": "1.0.8"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "6c82c071492a6f5a53b8554d87e09ad29278890d"
|
|
22
22
|
}
|