@angular-eslint/schematics 17.4.1-alpha.0 → 17.4.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.
- package/dist/ng-add/index.d.ts.map +1 -1
- package/dist/ng-add/index.js +14 -0
- package/package.json +5 -5
|
@@ -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;AAiJ/E,MAAM,CAAC,OAAO,cAAc,IAAI,
|
|
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;AAiJ/E,MAAM,CAAC,OAAO,cAAc,IAAI,CAwB/B"}
|
package/dist/ng-add/index.js
CHANGED
|
@@ -111,6 +111,20 @@ function default_1() {
|
|
|
111
111
|
return (0, schematics_1.chain)([
|
|
112
112
|
addAngularESLintPackages(),
|
|
113
113
|
applyESLintConfigIfSingleProjectWithNoExistingTSLint(),
|
|
114
|
+
() => {
|
|
115
|
+
const additionalGitignoreEntries = `.nx/cache
|
|
116
|
+
.nx/workspace-data
|
|
117
|
+
`;
|
|
118
|
+
if (!host.exists('.gitignore')) {
|
|
119
|
+
host.create('.gitignore', additionalGitignoreEntries);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const gitIgnore = host.read('.gitignore')?.toString();
|
|
123
|
+
if (gitIgnore?.includes('.nx')) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
host.overwrite('.gitignore', `${gitIgnore}\n${additionalGitignoreEntries}`);
|
|
127
|
+
},
|
|
114
128
|
])(host, context);
|
|
115
129
|
};
|
|
116
130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/schematics",
|
|
3
|
-
"version": "17.4.1
|
|
3
|
+
"version": "17.4.1",
|
|
4
4
|
"description": "Angular Schematics for angular-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"save": "devDependencies"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@angular-eslint/eslint-plugin": "17.4.1
|
|
38
|
-
"@angular-eslint/eslint-plugin-template": "17.4.1
|
|
39
|
-
"@nx/devkit": "^17.2.8 || ^18.0.0",
|
|
37
|
+
"@angular-eslint/eslint-plugin": "17.4.1",
|
|
38
|
+
"@angular-eslint/eslint-plugin-template": "17.4.1",
|
|
39
|
+
"@nx/devkit": "^17.2.8 || ^18.0.0 || ^19.0.0",
|
|
40
40
|
"ignore": "5.3.1",
|
|
41
|
-
"nx": "^17.2.8 || ^18.0.0",
|
|
41
|
+
"nx": "^17.2.8 || ^18.0.0 || ^19.0.0",
|
|
42
42
|
"strip-json-comments": "3.1.1",
|
|
43
43
|
"tmp": "0.2.3"
|
|
44
44
|
},
|