@angular-eslint/schematics 15.0.0-alpha.1 → 15.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.
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
const dependencies_1 = require("../utils/dependencies");
|
|
6
|
+
const updatedTypeScriptESLintVersion = '5.43.0';
|
|
7
|
+
const updatedESLintVersion = '8.28.0';
|
|
8
|
+
function migration() {
|
|
9
|
+
return (0, schematics_1.chain)([
|
|
10
|
+
(0, dependencies_1.updateDependencies)([
|
|
11
|
+
{
|
|
12
|
+
packageName: '@typescript-eslint/eslint-plugin',
|
|
13
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
packageName: '@typescript-eslint/utils',
|
|
17
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
packageName: '@typescript-eslint/parser',
|
|
21
|
+
version: `^${updatedTypeScriptESLintVersion}`,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
packageName: 'eslint',
|
|
25
|
+
version: `^${updatedESLintVersion}`,
|
|
26
|
+
},
|
|
27
|
+
]),
|
|
28
|
+
(0, utils_1.updateJsonInTree)('angular.json', (json) => {
|
|
29
|
+
return (0, utils_1.updateSchematicDefaults)(json, '@angular-eslint/schematics:application', {
|
|
30
|
+
setParserOptionsProject: true,
|
|
31
|
+
});
|
|
32
|
+
}),
|
|
33
|
+
(0, utils_1.updateJsonInTree)('angular.json', (json) => {
|
|
34
|
+
return (0, utils_1.updateSchematicDefaults)(json, '@angular-eslint/schematics:library', {
|
|
35
|
+
setParserOptionsProject: true,
|
|
36
|
+
});
|
|
37
|
+
}),
|
|
38
|
+
]);
|
|
39
|
+
}
|
|
40
|
+
exports.default = migration;
|
package/dist/migrations.json
CHANGED
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"version": "14.0.0-alpha.0",
|
|
31
31
|
"description": "Updates @angular-eslint to v14",
|
|
32
32
|
"factory": "./migrations/update-14-0-0/update-14-0-0"
|
|
33
|
+
},
|
|
34
|
+
"update-15-0-0": {
|
|
35
|
+
"version": "15.0.0-alpha.1",
|
|
36
|
+
"description": "Updates @angular-eslint to v15",
|
|
37
|
+
"factory": "./migrations/update-15-0-0/update-15-0-0"
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
}
|
package/dist/utils.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.updateSchematicCollections = exports.determineTargetProjectHasE2E = exports.determineTargetProjectName = exports.sortObjectByKeys = exports.removeTSLintJSONForProject = exports.createESLintConfigForProject = exports.createRootESLintConfig = exports.setESLintProjectBasedOnProjectType = exports.visitNotIgnoredFiles = exports.addESLintTargetToProject = exports.updateWorkspaceInTree = exports.offsetFromRoot = exports.getProjectConfig = exports.isTSLintUsedInWorkspace = exports.getTargetsConfigFromProject = exports.getWorkspacePath = exports.updateJsonInTree = exports.readJsonInTree = void 0;
|
|
6
|
+
exports.updateSchematicDefaults = exports.updateSchematicCollections = exports.determineTargetProjectHasE2E = exports.determineTargetProjectName = exports.sortObjectByKeys = exports.removeTSLintJSONForProject = exports.createESLintConfigForProject = exports.createRootESLintConfig = exports.setESLintProjectBasedOnProjectType = exports.visitNotIgnoredFiles = exports.addESLintTargetToProject = exports.updateWorkspaceInTree = exports.offsetFromRoot = exports.getProjectConfig = exports.isTSLintUsedInWorkspace = exports.getTargetsConfigFromProject = exports.getWorkspacePath = exports.updateJsonInTree = exports.readJsonInTree = void 0;
|
|
7
7
|
const core_1 = require("@angular-devkit/core");
|
|
8
8
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
9
9
|
const ignore_1 = __importDefault(require("ignore"));
|
|
@@ -360,3 +360,11 @@ function updateSchematicCollections(angularJson) {
|
|
|
360
360
|
return angularJson;
|
|
361
361
|
}
|
|
362
362
|
exports.updateSchematicCollections = updateSchematicCollections;
|
|
363
|
+
function updateSchematicDefaults(angularJson, schematicFullName, defaultValues) {
|
|
364
|
+
angularJson.schematics = angularJson.schematics || {};
|
|
365
|
+
angularJson.schematics[schematicFullName] =
|
|
366
|
+
angularJson.schematics[schematicFullName] || {};
|
|
367
|
+
angularJson.schematics[schematicFullName] = Object.assign(Object.assign({}, angularJson.schematics[schematicFullName]), defaultValues);
|
|
368
|
+
return angularJson;
|
|
369
|
+
}
|
|
370
|
+
exports.updateSchematicDefaults = updateSchematicDefaults;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/schematics",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.2",
|
|
4
4
|
"description": "Angular Schematics for angular-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"save": "devDependencies"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@angular-eslint/eslint-plugin": "15.0.0-alpha.
|
|
37
|
-
"@angular-eslint/eslint-plugin-template": "15.0.0-alpha.
|
|
36
|
+
"@angular-eslint/eslint-plugin": "15.0.0-alpha.2",
|
|
37
|
+
"@angular-eslint/eslint-plugin-template": "15.0.0-alpha.2",
|
|
38
38
|
"ignore": "5.2.0",
|
|
39
39
|
"strip-json-comments": "3.1.1",
|
|
40
40
|
"tmp": "0.2.1"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@angular/cli": ">= 15.0.0 < 16.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ad7d7eaded8cffc89105dde9fc3a4c70020de4a7"
|
|
52
52
|
}
|