@angular-eslint/schematics 20.0.0-alpha.1 → 20.0.0-alpha.2

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.
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from '@angular-devkit/schematics';
2
2
  import type { Schema } from './schema';
3
- export declare const FIXED_ESLINT_V8_VERSION = "8.57.0";
3
+ export declare const FIXED_ESLINT_V8_VERSION = "8.57.1";
4
4
  export declare const FIXED_TYPESCRIPT_ESLINT_V7_VERSION = "7.11.0";
5
5
  /**
6
6
  * Entry point for the ng-add schematic.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAG/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AA+M3D;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,MAAM,GAAG,IAAI,CAa9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAG/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAwN3D;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,MAAM,GAAG,IAAI,CAa9C"}
@@ -5,7 +5,7 @@ exports.default = default_1;
5
5
  const schematics_1 = require("@angular-devkit/schematics");
6
6
  const tasks_1 = require("@angular-devkit/schematics/tasks");
7
7
  const utils_1 = require("../utils");
8
- exports.FIXED_ESLINT_V8_VERSION = '8.57.0';
8
+ exports.FIXED_ESLINT_V8_VERSION = '8.57.1';
9
9
  exports.FIXED_TYPESCRIPT_ESLINT_V7_VERSION = '7.11.0';
10
10
  const packageJSON = require('../../package.json');
11
11
  function addAngularESLintPackages(json, useFlatConfig, options) {
@@ -33,6 +33,16 @@ function addAngularESLintPackages(json, useFlatConfig, options) {
33
33
  json.devDependencies['@typescript-eslint/utils'] =
34
34
  typescriptESLintVersion;
35
35
  }
36
+ else {
37
+ const isNpm = host.exists('package-lock.json');
38
+ if (!isNpm) {
39
+ // Prevent TS IDE errors in the eslint config file for non-npm installations by explicitly including @eslint/js (even though linting seems to still work without it)
40
+ json.devDependencies['@eslint/js'] =
41
+ `^${packageJSON.devDependencies['eslint']}`;
42
+ // Ensure @angular-eslint/builder is always resolvable in non-npm installations (https://github.com/angular-eslint/angular-eslint/issues/2241)
43
+ json.devDependencies['@angular-eslint/builder'] = packageJSON.version;
44
+ }
45
+ }
36
46
  }
37
47
  else {
38
48
  applyDevDependenciesForESLintRC(json);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/schematics",
3
- "version": "20.0.0-alpha.1",
3
+ "version": "20.0.0-alpha.2",
4
4
  "description": "Angular Schematics for angular-eslint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -38,15 +38,15 @@
38
38
  "dependencies": {
39
39
  "@angular-devkit/core": ">= 20.0.0 < 21.0.0",
40
40
  "@angular-devkit/schematics": ">= 20.0.0 < 21.0.0",
41
- "ignore": "7.0.4",
41
+ "ignore": "7.0.5",
42
42
  "semver": "7.7.2",
43
43
  "strip-json-comments": "3.1.1",
44
- "@angular-eslint/eslint-plugin": "20.0.0-alpha.1",
45
- "@angular-eslint/eslint-plugin-template": "20.0.0-alpha.1"
44
+ "@angular-eslint/eslint-plugin": "20.0.0-alpha.2",
45
+ "@angular-eslint/eslint-plugin-template": "20.0.0-alpha.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@typescript-eslint/utils": "8.33.0",
49
- "eslint": "9.27.0"
49
+ "eslint": "9.28.0"
50
50
  },
51
51
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
52
52
  }