@angular-eslint/schematics 4.0.0-alpha.1 → 4.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.0.0](https://github.com/angular-eslint/angular-eslint/compare/v3.0.1...v4.0.0) (2021-04-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **schematics:** options for convert-tslint-to-eslint ([#419](https://github.com/angular-eslint/angular-eslint/issues/419)) ([18fd863](https://github.com/angular-eslint/angular-eslint/commit/18fd863d6948578db96252da57702338a8ea5ea0))
|
|
11
|
+
|
|
6
12
|
## [3.0.1](https://github.com/angular-eslint/angular-eslint/compare/v3.0.0...v3.0.1) (2021-04-18)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @angular-eslint/schematics
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
const updatedAngularESLintVersion = '^4.0.0';
|
|
7
|
+
function updateIfExists(deps, depName, updatedVersion) {
|
|
8
|
+
if (deps === null || deps === void 0 ? void 0 : deps[depName]) {
|
|
9
|
+
deps[depName] = updatedVersion;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function updateRelevantDependencies(host, context) {
|
|
13
|
+
return utils_1.updateJsonInTree('package.json', (json) => {
|
|
14
|
+
/**
|
|
15
|
+
* @angular-eslint
|
|
16
|
+
*/
|
|
17
|
+
updateIfExists(json.devDependencies, '@angular-eslint/builder', updatedAngularESLintVersion);
|
|
18
|
+
updateIfExists(json.devDependencies, '@angular-eslint/eslint-plugin', updatedAngularESLintVersion);
|
|
19
|
+
updateIfExists(json.devDependencies, '@angular-eslint/eslint-plugin-template', updatedAngularESLintVersion);
|
|
20
|
+
updateIfExists(json.devDependencies, '@angular-eslint/template-parser', updatedAngularESLintVersion);
|
|
21
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
22
|
+
return json;
|
|
23
|
+
})(host, context);
|
|
24
|
+
}
|
|
25
|
+
function default_1() {
|
|
26
|
+
return schematics_1.chain([updateRelevantDependencies]);
|
|
27
|
+
}
|
|
28
|
+
exports.default = default_1;
|
package/dist/migrations.json
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"version": "2.9.0",
|
|
11
11
|
"description": "Updates @angular-eslint to v3",
|
|
12
12
|
"factory": "./migrations/update-3-0-0/update-3-0-0"
|
|
13
|
+
},
|
|
14
|
+
"update-4-0-0": {
|
|
15
|
+
"version": "3.9.0",
|
|
16
|
+
"description": "Updates @angular-eslint to v4",
|
|
17
|
+
"factory": "./migrations/update-4-0-0/update-4-0-0"
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
}
|
package/dist/ng-add/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
5
6
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
6
7
|
const packageJSON = require('../../package.json');
|
|
7
8
|
function addAngularESLintPackages() {
|
|
@@ -41,6 +42,7 @@ function addAngularESLintPackages() {
|
|
|
41
42
|
const typescriptESLintVersion = packageJSON.devDependencies['@typescript-eslint/experimental-utils'];
|
|
42
43
|
json.devDependencies['@typescript-eslint/eslint-plugin'] = typescriptESLintVersion;
|
|
43
44
|
json.devDependencies['@typescript-eslint/parser'] = typescriptESLintVersion;
|
|
45
|
+
json.devDependencies = utils_1.sortObjectByKeys(json.devDependencies);
|
|
44
46
|
host.overwrite('package.json', JSON.stringify(json, null, 2));
|
|
45
47
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
46
48
|
context.logger.info(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/schematics",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Angular Schematics for angular-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"save": "devDependencies"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@angular-eslint/eslint-plugin": "4.0.0
|
|
35
|
-
"@angular-eslint/eslint-plugin-template": "4.0.0
|
|
34
|
+
"@angular-eslint/eslint-plugin": "4.0.0",
|
|
35
|
+
"@angular-eslint/eslint-plugin-template": "4.0.0",
|
|
36
36
|
"strip-json-comments": "3.1.1",
|
|
37
37
|
"tslint-to-eslint-config": "2.2.0"
|
|
38
38
|
},
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@angular/cli": ">= 11.2.0 < 12.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "589df30dafbbef90ab3d65d73928b4ea0f899cc2"
|
|
47
47
|
}
|