@lvce-editor/eslint-config 18.11.0 → 18.13.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.
Files changed (3) hide show
  1. package/README.md +28 -0
  2. package/index.js +1 -0
  3. package/package.json +12 -12
package/README.md CHANGED
@@ -1,3 +1,31 @@
1
1
  # @lvce-editor/eslint-config
2
2
 
3
3
  > ESLint configuration for LVCE Editor
4
+
5
+ ## Dependency restrictions
6
+
7
+ The shared configuration and virtual DOM presets enable
8
+ `virtual-dom/no-restricted-dependencies` for `package.json`. It checks dependencies,
9
+ devDependencies, optionalDependencies, and peerDependencies. TypeScript must stay
10
+ within major version 6. ESLint is conservatively restricted to versions below
11
+ 10.10.0 following the reported unsupported upgrade. Use an exact supported version
12
+ such as `10.8.1`, or an explicitly bounded range; `^10.8.1` permits the blocked upgrade.
13
+
14
+ The entire declared range must be supported. Tags, URLs, local paths, and npm aliases
15
+ are rejected for restricted packages because they do not establish a supported
16
+ version range. Other packages are unaffected. This checks manifests during linting;
17
+ it does not prevent npm installation or repair a toolchain that already fails to load.
18
+
19
+ Override or extend the defaults with `restrictions`. A range permits only versions
20
+ inside it; `false` bans a package entirely. For example, in a package.json config block:
21
+
22
+ ```js
23
+ rules: {
24
+ 'virtual-dom/no-restricted-dependencies': ['error', {
25
+ restrictions: {
26
+ 'some-package': false,
27
+ 'another-package': '^2.0.0',
28
+ },
29
+ }],
30
+ }
31
+ ```
package/index.js CHANGED
@@ -516,6 +516,7 @@ const defaultConfig = tseslint.config(
516
516
  'e18e/ban-dependencies': 'off',
517
517
  },
518
518
  },
519
+ ...virtualDomPlugin.recommendedDependencies,
519
520
  ...e2ePlugin.default,
520
521
  ...devcontainerPlugin.default,
521
522
  ...extensionJsonPlugin.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "18.11.0",
3
+ "version": "18.13.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -35,18 +35,18 @@
35
35
  "eslint-plugin-unicorn": "71.1.0",
36
36
  "eslint-plugin-yml": "3.6.0",
37
37
  "typescript-eslint": "8.63.0",
38
- "@lvce-editor/eslint-plugin-eslint-config": "18.11.0",
39
- "@lvce-editor/eslint-plugin-tsconfig": "18.11.0",
40
- "@lvce-editor/eslint-plugin-github-actions": "18.11.0",
41
- "@lvce-editor/eslint-plugin-nvmrc": "18.11.0",
42
- "@lvce-editor/eslint-plugin-regex": "18.11.0",
43
- "@lvce-editor/eslint-plugin-virtual-dom": "18.11.0",
44
- "@lvce-editor/eslint-plugin-e2e": "18.11.0",
45
- "@lvce-editor/eslint-plugin-devcontainer": "18.11.0",
46
- "@lvce-editor/eslint-plugin-extension-json": "18.11.0",
47
- "@lvce-editor/eslint-plugin-rpc": "18.11.0"
38
+ "@lvce-editor/eslint-plugin-eslint-config": "18.13.0",
39
+ "@lvce-editor/eslint-plugin-tsconfig": "18.13.0",
40
+ "@lvce-editor/eslint-plugin-github-actions": "18.13.0",
41
+ "@lvce-editor/eslint-plugin-nvmrc": "18.13.0",
42
+ "@lvce-editor/eslint-plugin-regex": "18.13.0",
43
+ "@lvce-editor/eslint-plugin-virtual-dom": "18.13.0",
44
+ "@lvce-editor/eslint-plugin-e2e": "18.13.0",
45
+ "@lvce-editor/eslint-plugin-devcontainer": "18.13.0",
46
+ "@lvce-editor/eslint-plugin-extension-json": "18.13.0",
47
+ "@lvce-editor/eslint-plugin-rpc": "18.13.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "eslint": "^10"
50
+ "eslint": ">=10.0.0 <10.10.0-0"
51
51
  }
52
52
  }