@backstage/eslint-plugin 0.2.0-next.0 → 0.2.1-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/lib/getPackages.js +1 -1
- package/lib/visitImports.js +1 -1
- package/package.json +2 -2
- package/rules/no-relative-monorepo-imports.js +1 -1
- package/rules/no-undeclared-imports.js +2 -2
- package/src/no-forbidden-package-imports.test.ts +1 -1
- package/src/no-mixed-plugin-imports.test.ts +1 -1
- package/src/no-relative-monorepo-imports.test.ts +1 -1
- package/src/no-ui-css-imports-in-non-frontend.test.ts +1 -1
- package/src/no-undeclared-imports.test.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/eslint-plugin
|
|
2
2
|
|
|
3
|
+
## 0.2.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7455dae: Use node prefix on native imports
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 926389b: Added `@backstage/no-ui-css-imports-in-non-frontend` rule, which ensures that CSS from `@backstage/ui` is not imported outside of the frontend app.
|
|
14
|
+
|
|
3
15
|
## 0.2.0-next.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/lib/getPackages.js
CHANGED
package/lib/visitImports.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/eslint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-next.0",
|
|
4
4
|
"description": "Backstage ESLint plugin",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"minimatch": "^9.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@backstage/cli": "0.
|
|
25
|
+
"@backstage/cli": "0.35.3-next.0",
|
|
26
26
|
"@types/estree": "^1.0.5",
|
|
27
27
|
"eslint": "^8.33.0"
|
|
28
28
|
}
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
// @ts-check
|
|
18
18
|
|
|
19
|
-
const path = require('path');
|
|
19
|
+
const path = require('node:path');
|
|
20
20
|
const getPackageMap = require('../lib/getPackages');
|
|
21
21
|
const visitImports = require('../lib/visitImports');
|
|
22
22
|
const minimatch = require('minimatch');
|
|
23
|
-
const { execFileSync } = require('child_process');
|
|
23
|
+
const { execFileSync } = require('node:child_process');
|
|
24
24
|
|
|
25
25
|
const depFields = /** @type {const} */ ({
|
|
26
26
|
dep: 'dependencies',
|