@backstage/eslint-plugin 0.1.5-next.0 → 0.1.5
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
CHANGED
package/knip-report.md
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/eslint-plugin",
|
|
3
3
|
"description": "Backstage ESLint plugin",
|
|
4
|
-
"version": "0.1.5
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"minimatch": "^5.1.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@backstage/cli": "^0.25.2
|
|
25
|
+
"@backstage/cli": "^0.25.2",
|
|
26
26
|
"eslint": "^8.33.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -25,6 +25,11 @@ const ERR = (name: string, path: string) => ({
|
|
|
25
25
|
message: `${name} does not export ${path}`,
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
// cwd must be restored
|
|
29
|
+
const origDir = process.cwd();
|
|
30
|
+
afterAll(() => {
|
|
31
|
+
process.chdir(origDir);
|
|
32
|
+
});
|
|
28
33
|
process.chdir(FIXTURE);
|
|
29
34
|
|
|
30
35
|
const ruleTester = new RuleTester({
|
|
@@ -28,6 +28,11 @@ const ERR_FORBIDDEN = (newImp: string) => ({
|
|
|
28
28
|
message: `Relative imports of monorepo packages are forbidden, use '${newImp}' instead`,
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
+
// cwd must be restored
|
|
32
|
+
const origDir = process.cwd();
|
|
33
|
+
afterAll(() => {
|
|
34
|
+
process.chdir(origDir);
|
|
35
|
+
});
|
|
31
36
|
process.chdir(FIXTURE);
|
|
32
37
|
|
|
33
38
|
const ruleTester = new RuleTester({
|
|
@@ -53,6 +53,11 @@ const ERR_SWITCH_BACK = () => ({
|
|
|
53
53
|
message: 'Switch back to import declaration',
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
// cwd must be restored
|
|
57
|
+
const origDir = process.cwd();
|
|
58
|
+
afterAll(() => {
|
|
59
|
+
process.chdir(origDir);
|
|
60
|
+
});
|
|
56
61
|
process.chdir(FIXTURE);
|
|
57
62
|
|
|
58
63
|
const ruleTester = new RuleTester({
|