@backstage/eslint-plugin 0.2.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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
@@ -16,7 +16,7 @@
16
16
 
17
17
  // @ts-check
18
18
 
19
- const path = require('path');
19
+ const path = require('node:path');
20
20
  const manypkg = require('@manypkg/get-packages');
21
21
 
22
22
  /**
@@ -16,7 +16,7 @@
16
16
 
17
17
  // @ts-check
18
18
 
19
- const { builtinModules } = require('module');
19
+ const { builtinModules } = require('node:module');
20
20
  const getPackages = require('./getPackages');
21
21
 
22
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/eslint-plugin",
3
- "version": "0.2.0",
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.34.5",
25
+ "@backstage/cli": "0.35.3-next.0",
26
26
  "@types/estree": "^1.0.5",
27
27
  "eslint": "^8.33.0"
28
28
  }
@@ -16,7 +16,7 @@
16
16
 
17
17
  // @ts-check
18
18
 
19
- const path = require('path');
19
+ const path = require('node:path');
20
20
  const visitImports = require('../lib/visitImports');
21
21
  const getPackageMap = require('../lib/getPackages');
22
22
 
@@ -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',
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { RuleTester } from 'eslint';
18
- import path from 'path';
18
+ import path from 'node:path';
19
19
  import rule from '../rules/no-forbidden-package-imports';
20
20
 
21
21
  const RULE = 'no-forbidden-package-imports';
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { RuleTester } from 'eslint';
18
- import path from 'path';
18
+ import path from 'node:path';
19
19
  import rule from '../rules/no-mixed-plugin-imports';
20
20
 
21
21
  const RULE = 'no-mixed-plugin-imports';
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { RuleTester } from 'eslint';
18
- import path from 'path';
18
+ import path from 'node:path';
19
19
  import rule from '../rules/no-relative-monorepo-imports';
20
20
 
21
21
  const RULE = 'no-relative-monorepo-imports';
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { RuleTester } from 'eslint';
18
- import path from 'path';
18
+ import path from 'node:path';
19
19
  import rule from '../rules/no-ui-css-imports-in-non-frontend';
20
20
 
21
21
  const RULE = 'no-ui-css-imports-in-non-frontend';
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { RuleTester } from 'eslint';
18
- import { join as joinPath } from 'path';
18
+ import { join as joinPath } from 'node:path';
19
19
  import rule from '../rules/no-undeclared-imports';
20
20
 
21
21
  jest.mock('child_process', () => ({