@angular-eslint/schematics 15.0.0-alpha.4 → 15.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/dist/utils.js +3 -3
- package/package.json +4 -4
package/dist/utils.js
CHANGED
|
@@ -237,9 +237,9 @@ function createRootESLintConfig(prefix) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
exports.createRootESLintConfig = createRootESLintConfig;
|
|
240
|
-
function createProjectESLintConfig(
|
|
240
|
+
function createProjectESLintConfig(projectRoot, projectType, prefix, setParserOptionsProject, hasE2e) {
|
|
241
241
|
return {
|
|
242
|
-
extends: `${offsetFromRoot(
|
|
242
|
+
extends: `${offsetFromRoot(projectRoot)}.eslintrc.json`,
|
|
243
243
|
ignorePatterns: ['!**/*'],
|
|
244
244
|
overrides: [
|
|
245
245
|
Object.assign(Object.assign({ files: ['*.ts'] }, (setParserOptionsProject
|
|
@@ -282,7 +282,7 @@ function createESLintConfigForProject(projectName, setParserOptionsProject) {
|
|
|
282
282
|
tree.exists('.eslintrc.json')
|
|
283
283
|
? () => undefined
|
|
284
284
|
: createRootESLintConfigFile(projectName),
|
|
285
|
-
updateJsonInTree((0, core_1.join)((0, core_1.normalize)(projectRoot), '.eslintrc.json'), () => createProjectESLintConfig(
|
|
285
|
+
updateJsonInTree((0, core_1.join)((0, core_1.normalize)(projectRoot), '.eslintrc.json'), () => createProjectESLintConfig(projectRoot, projectType, prefix, setParserOptionsProject, hasE2e)),
|
|
286
286
|
]);
|
|
287
287
|
};
|
|
288
288
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/schematics",
|
|
3
|
-
"version": "15.0.0
|
|
3
|
+
"version": "15.0.0",
|
|
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
|
|
37
|
-
"@angular-eslint/eslint-plugin-template": "15.0.0
|
|
36
|
+
"@angular-eslint/eslint-plugin": "15.0.0",
|
|
37
|
+
"@angular-eslint/eslint-plugin-template": "15.0.0",
|
|
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": "465fabe0fc843065673543a2a25cbaaf60c229fd"
|
|
52
52
|
}
|