@backstage/cli 0.36.4-next.0 → 0.36.4-next.1
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 +8 -0
- package/config/eslint-factory.js +14 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @backstage/cli
|
|
2
2
|
|
|
3
|
+
## 0.36.4-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 61d4881: The shared ESLint configuration now reports unused imports in `config.d.ts` configuration schema files. These declaration files are not covered by the TypeScript compiler's unused-variable checks, which previously allowed a stray import to slip through. Such an import can resolve during local development but break configuration schema loading for consumers of the published package, so it is now caught at lint time.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/cli-module-build@0.1.5-next.1
|
|
10
|
+
|
|
3
11
|
## 0.36.4-next.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/config/eslint-factory.js
CHANGED
|
@@ -183,6 +183,20 @@ function createConfig(dir, extraConfig = {}) {
|
|
|
183
183
|
],
|
|
184
184
|
},
|
|
185
185
|
},
|
|
186
|
+
{
|
|
187
|
+
// The unused variable checks above are disabled for TypeScript files
|
|
188
|
+
// and instead delegated to the TypeScript compiler. The compiler does
|
|
189
|
+
// not however report unused declarations in declaration files, leaving
|
|
190
|
+
// the published config schema declaration unchecked. A stray import in
|
|
191
|
+
// this file resolves fine within the monorepo but breaks config schema
|
|
192
|
+
// extraction in consuming apps, since only the declaration itself is
|
|
193
|
+
// published. We therefore catch unused imports here explicitly.
|
|
194
|
+
files: ['**/config.d.ts'],
|
|
195
|
+
rules: {
|
|
196
|
+
'no-unused-vars': 'off',
|
|
197
|
+
'unused-imports/no-unused-imports': 'error',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
186
200
|
...(overrides ?? []),
|
|
187
201
|
],
|
|
188
202
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli",
|
|
3
|
-
"version": "0.36.4-next.
|
|
3
|
+
"version": "0.36.4-next.1",
|
|
4
4
|
"description": "CLI for developing Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@backstage/cli-common": "0.2.2",
|
|
46
46
|
"@backstage/cli-defaults": "0.1.4-next.0",
|
|
47
|
-
"@backstage/cli-module-build": "0.1.5-next.
|
|
47
|
+
"@backstage/cli-module-build": "0.1.5-next.1",
|
|
48
48
|
"@backstage/cli-module-test-jest": "0.1.3",
|
|
49
49
|
"@backstage/cli-node": "0.3.3",
|
|
50
50
|
"@backstage/eslint-plugin": "0.3.1",
|