@angular-eslint/schematics 20.0.0-beta.0 → 20.0.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-20-0-0.d.ts","sourceRoot":"","sources":["../../../src/migrations/update-20-0-0/update-20-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAOvD,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,IAAI,CAkDxC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migration;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const dependencies_1 = require("../utils/dependencies");
|
|
6
|
+
const updatedTypeScriptESLintVersion = '8.33.1';
|
|
7
|
+
const updatedESLintVersion = '9.28.0';
|
|
8
|
+
function migration() {
|
|
9
|
+
return (0, schematics_1.chain)([
|
|
10
|
+
(host) => {
|
|
11
|
+
const packageJson = JSON.parse(host.read('package.json').toString());
|
|
12
|
+
if (packageJson.devDependencies['typescript-eslint'] ||
|
|
13
|
+
packageJson.devDependencies['@typescript-eslint/parser'].startsWith('8.') ||
|
|
14
|
+
packageJson.devDependencies['@typescript-eslint/parser'].startsWith('^8.') ||
|
|
15
|
+
packageJson.devDependencies['@typescript-eslint/parser'].startsWith('~8.')) {
|
|
16
|
+
return (0, dependencies_1.updateDependencies)([
|
|
17
|
+
{
|
|
18
|
+
packageName: '@typescript-eslint/eslint-plugin',
|
|
19
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
packageName: '@typescript-eslint/utils',
|
|
23
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
packageName: '@typescript-eslint/type-utils',
|
|
27
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
packageName: '@typescript-eslint/parser',
|
|
31
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
packageName: '@typescript-eslint/rule-tester',
|
|
35
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
packageName: 'typescript-eslint',
|
|
39
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
packageName: 'eslint',
|
|
43
|
+
version: `^${updatedESLintVersion}`,
|
|
44
|
+
},
|
|
45
|
+
]);
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
},
|
|
49
|
+
]);
|
|
50
|
+
}
|
package/dist/migrations.json
CHANGED
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
"version": "18.1.1-alpha.0",
|
|
56
56
|
"description": "Updates @angular-eslint to v18.2",
|
|
57
57
|
"factory": "./migrations/update-18-2-0/update-18-2-0"
|
|
58
|
+
},
|
|
59
|
+
"update-20-0-0": {
|
|
60
|
+
"version": "20.0.0-alpha.0",
|
|
61
|
+
"description": "Updates @angular-eslint to v20",
|
|
62
|
+
"factory": "./migrations/update-20-0-0/update-20-0-0"
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/schematics",
|
|
3
|
-
"version": "20.0.0
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "Angular Schematics for angular-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
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
|
|
45
|
-
"@angular-eslint/eslint-plugin
|
|
44
|
+
"@angular-eslint/eslint-plugin-template": "20.0.0",
|
|
45
|
+
"@angular-eslint/eslint-plugin": "20.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@typescript-eslint/utils": "8.33.
|
|
48
|
+
"@typescript-eslint/utils": "8.33.1",
|
|
49
49
|
"eslint": "9.28.0"
|
|
50
50
|
},
|
|
51
51
|
"gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
|