@angular-eslint/schematics 17.4.1-alpha.0 → 17.4.1-alpha.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.
@@ -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,CAO/B"}
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"}
@@ -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-alpha.0",
3
+ "version": "17.4.1-alpha.1",
4
4
  "description": "Angular Schematics for angular-eslint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -34,8 +34,8 @@
34
34
  "save": "devDependencies"
35
35
  },
36
36
  "dependencies": {
37
- "@angular-eslint/eslint-plugin": "17.4.1-alpha.0",
38
- "@angular-eslint/eslint-plugin-template": "17.4.1-alpha.0",
37
+ "@angular-eslint/eslint-plugin": "17.4.1-alpha.1",
38
+ "@angular-eslint/eslint-plugin-template": "17.4.1-alpha.1",
39
39
  "@nx/devkit": "^17.2.8 || ^18.0.0",
40
40
  "ignore": "5.3.1",
41
41
  "nx": "^17.2.8 || ^18.0.0",