@backstage/eslint-plugin 0.2.2-next.0 → 0.2.3-next.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/CHANGELOG.md +12 -0
- package/package.json +2 -2
- package/rules/no-mixed-plugin-imports.js +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/eslint-plugin
|
|
2
2
|
|
|
3
|
+
## 0.2.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- df43b0e: Fixed `no-mixed-plugin-imports` rule to return `null` from non-fixable suggestion handlers and added an explicit `SuggestionReportDescriptor[]` type annotation, matching the stricter type checking in TypeScript 6.0.
|
|
8
|
+
|
|
9
|
+
## 0.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6738cf0: build(deps): bump `minimatch` from 9.0.5 to 10.2.1
|
|
14
|
+
|
|
3
15
|
## 0.2.2-next.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/eslint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3-next.0",
|
|
4
4
|
"description": "Backstage ESLint plugin",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"minimatch": "^10.2.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@backstage/cli": "0.
|
|
25
|
+
"@backstage/cli": "0.36.1-next.1",
|
|
26
26
|
"@types/estree": "^1.0.5",
|
|
27
27
|
"eslint": "^8.33.0"
|
|
28
28
|
}
|
|
@@ -173,6 +173,7 @@ module.exports = {
|
|
|
173
173
|
!ignoreTargetPackages.includes(targetName),
|
|
174
174
|
)
|
|
175
175
|
) {
|
|
176
|
+
/** @type {import('eslint').Rule.SuggestionReportDescriptor[]} */
|
|
176
177
|
const suggest = [];
|
|
177
178
|
|
|
178
179
|
if (
|
|
@@ -187,9 +188,9 @@ module.exports = {
|
|
|
187
188
|
sourcePackage: sourceName,
|
|
188
189
|
sourceRole: sourceRole,
|
|
189
190
|
},
|
|
190
|
-
|
|
191
|
-
fix(_fixer) {
|
|
191
|
+
fix() {
|
|
192
192
|
// Not a fixable case, just give a suggestion to change plugin id
|
|
193
|
+
return null;
|
|
193
194
|
},
|
|
194
195
|
});
|
|
195
196
|
suggest.push({
|
|
@@ -197,7 +198,6 @@ module.exports = {
|
|
|
197
198
|
data: {
|
|
198
199
|
targetPackage: targetName,
|
|
199
200
|
},
|
|
200
|
-
/** @param {import('eslint').Rule.RuleFixer} fixer */
|
|
201
201
|
fix(fixer) {
|
|
202
202
|
const source = context.sourceCode;
|
|
203
203
|
const nodeSource = source.getText(imp.node);
|
|
@@ -210,7 +210,6 @@ module.exports = {
|
|
|
210
210
|
data: {
|
|
211
211
|
targetPackage: targetName,
|
|
212
212
|
},
|
|
213
|
-
/** @param {import('eslint').Rule.RuleFixer} fixer */
|
|
214
213
|
fix(fixer) {
|
|
215
214
|
const source = context.sourceCode;
|
|
216
215
|
const nodeSource = source.getText(imp.node);
|
|
@@ -228,7 +227,6 @@ module.exports = {
|
|
|
228
227
|
data: {
|
|
229
228
|
targetPackage: targetName,
|
|
230
229
|
},
|
|
231
|
-
/** @param {import('eslint').Rule.RuleFixer} fixer */
|
|
232
230
|
fix(fixer) {
|
|
233
231
|
const source = context.sourceCode;
|
|
234
232
|
const nodeSource = source.getText(imp.node);
|
|
@@ -241,7 +239,6 @@ module.exports = {
|
|
|
241
239
|
data: {
|
|
242
240
|
targetPackage: targetName,
|
|
243
241
|
},
|
|
244
|
-
/** @param {import('eslint').Rule.RuleFixer} fixer */
|
|
245
242
|
fix(fixer) {
|
|
246
243
|
const source = context.sourceCode;
|
|
247
244
|
const nodeSource = source.getText(imp.node);
|
|
@@ -252,9 +249,9 @@ module.exports = {
|
|
|
252
249
|
} else {
|
|
253
250
|
suggest.push({
|
|
254
251
|
messageId: 'removeImport',
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
252
|
+
fix() {
|
|
253
|
+
// Not a fixable case, just give a suggestion to change plugin id
|
|
254
|
+
return null;
|
|
258
255
|
},
|
|
259
256
|
});
|
|
260
257
|
}
|