@angular-eslint/schematics 18.4.2 → 18.4.3-alpha.1

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 +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;AAc/E,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAkL3D,MAAM,CAAC,OAAO,cAAc,IAAI,CAa/B"}
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;AAc/E,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAChD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAiM3D,MAAM,CAAC,OAAO,cAAc,IAAI,CAa/B"}
@@ -21,6 +21,19 @@ function addAngularESLintPackages(json, useFlatConfig) {
21
21
  json.scripts['lint'] = json.scripts['lint'] || 'ng lint';
22
22
  if (useFlatConfig) {
23
23
  applyDevDependenciesForFlatConfig(json);
24
+ // Check if yarn PnP is used https://yarnpkg.com/advanced/pnpapi#processversionspnp and install extra explicit packages to make it happy
25
+ if (process.versions.pnp) {
26
+ // An explicit reference to the builder is needed for running `ng lint` in PnP
27
+ json.devDependencies['@angular-eslint/builder'] = packageJSON.version;
28
+ // The linting cannot complete without these explicitly in the root package.json in PnP
29
+ json.devDependencies['@eslint/js'] =
30
+ `^${packageJSON.devDependencies['eslint']}`;
31
+ const typescriptESLintVersion = packageJSON.devDependencies['@typescript-eslint/utils'];
32
+ json.devDependencies['@typescript-eslint/types'] =
33
+ typescriptESLintVersion;
34
+ json.devDependencies['@typescript-eslint/utils'] =
35
+ typescriptESLintVersion;
36
+ }
24
37
  }
25
38
  else {
26
39
  applyDevDependenciesForESLintRC(json);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/schematics",
3
- "version": "18.4.2",
3
+ "version": "18.4.3-alpha.1",
4
4
  "description": "Angular Schematics for angular-eslint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -36,19 +36,17 @@
36
36
  "save": "devDependencies"
37
37
  },
38
38
  "dependencies": {
39
+ "@angular-devkit/core": ">= 18.0.0 < 19.0.0",
40
+ "@angular-devkit/schematics": ">= 18.0.0 < 19.0.0",
39
41
  "ignore": "6.0.2",
40
42
  "semver": "7.6.3",
41
43
  "strip-json-comments": "3.1.1",
42
- "@angular-eslint/eslint-plugin-template": "18.4.2",
43
- "@angular-eslint/eslint-plugin": "18.4.2"
44
+ "@angular-eslint/eslint-plugin-template": "18.4.3-alpha.1",
45
+ "@angular-eslint/eslint-plugin": "18.4.3-alpha.1"
44
46
  },
45
47
  "devDependencies": {
46
48
  "@typescript-eslint/utils": "8.15.0",
47
49
  "eslint": "9.15.0"
48
50
  },
49
- "peerDependencies": {
50
- "@angular-devkit/core": ">= 18.0.0 < 19.0.0",
51
- "@angular-devkit/schematics": ">= 18.0.0 < 19.0.0"
52
- },
53
51
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
54
52
  }