@o3r/schematics 9.6.0-alpha.31 → 9.6.0-alpha.32
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/schematics",
|
3
|
-
"version": "9.6.0-alpha.
|
3
|
+
"version": "9.6.0-alpha.32",
|
4
4
|
"description": "Schematics module of the Otter framework",
|
5
5
|
"main": "./src/public_api.js",
|
6
6
|
"typings": "./src/public_api.d.ts",
|
@@ -26,6 +26,7 @@
|
|
26
26
|
"@angular-devkit/schematics": "~16.2.0",
|
27
27
|
"@angular/cli": "~16.2.0",
|
28
28
|
"@schematics/angular": "~16.2.0",
|
29
|
+
"eslint": "^8.42.0",
|
29
30
|
"rxjs": "^7.8.1",
|
30
31
|
"typescript": "~5.1.6"
|
31
32
|
},
|
@@ -35,6 +36,9 @@
|
|
35
36
|
},
|
36
37
|
"@angular-devkit/core": {
|
37
38
|
"optional": true
|
39
|
+
},
|
40
|
+
"eslint": {
|
41
|
+
"optional": true
|
38
42
|
}
|
39
43
|
},
|
40
44
|
"dependencies": {
|
@@ -63,9 +67,9 @@
|
|
63
67
|
"@nx/jest": "~16.10.0",
|
64
68
|
"@nx/js": "~16.10.0",
|
65
69
|
"@nx/linter": "~16.10.0",
|
66
|
-
"@o3r/build-helpers": "^9.6.0-alpha.
|
67
|
-
"@o3r/dev-tools": "^9.6.0-alpha.
|
68
|
-
"@o3r/eslint-plugin": "^9.6.0-alpha.
|
70
|
+
"@o3r/build-helpers": "^9.6.0-alpha.32",
|
71
|
+
"@o3r/dev-tools": "^9.6.0-alpha.32",
|
72
|
+
"@o3r/eslint-plugin": "^9.6.0-alpha.32",
|
69
73
|
"@schematics/angular": "~16.2.0",
|
70
74
|
"@types/jest": "~29.5.2",
|
71
75
|
"@types/node": "^18.0.0",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAE1F,OAAO,EAAiB,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,UAAU,SAAM,EAAE,SAAS,GAAE,MAAM,EAAW,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAmE5G"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.applyEsLintFix = void 0;
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
4
5
|
const node_path_1 = require("node:path");
|
5
6
|
const tasks_1 = require("../../tasks");
|
6
7
|
/**
|
@@ -12,6 +13,12 @@ const tasks_1 = require("../../tasks");
|
|
12
13
|
* @param options Linter options
|
13
14
|
*/
|
14
15
|
function applyEsLintFix(_prootPath = '/', extension = ['ts'], options) {
|
16
|
+
try {
|
17
|
+
require.resolve('eslint/package.json');
|
18
|
+
}
|
19
|
+
catch {
|
20
|
+
return (0, schematics_1.noop)();
|
21
|
+
}
|
15
22
|
const linterOptions = {
|
16
23
|
continueOnError: options?.force ?? true,
|
17
24
|
force: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/eslint-fix/index.ts"],"names":[],"mappings":";;;AAAA,2DAA0F;AAC1F,yCAA0C;AAC1C,uCAA2D;AAE3D;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,UAAU,GAAG,GAAG,EAAE,YAAsB,CAAC,IAAI,CAAC,EAAE,OAAuB;IACpG,IAAI;QACF,OA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