Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dabda2d

Browse files
committedMay 28, 2024·
chore(deps): update linters
1 parent 2800e29 commit dabda2d

File tree

3 files changed

+141
-175
lines changed

3 files changed

+141
-175
lines changed
 

‎eslint.config.mjs

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
import angularEslintPlugin from "@angular-eslint/eslint-plugin";
2-
import angularEslintPluginTemplate from "@angular-eslint/eslint-plugin-template";
3-
import angularEslintTemplateParser from "@angular-eslint/template-parser";
41
import js from "@eslint/js";
5-
import prettier from "eslint-config-prettier";
2+
import angularEslint from "angular-eslint";
63
import deprecation from "eslint-plugin-deprecation";
74
import globals from "globals";
85
import tseslint from "typescript-eslint";
96

10-
export default [
11-
js.configs.recommended,
7+
export default tseslint.config(
128
{ ignores: ["dist/", ".angular/", "**/*.js"] },
139
{
1410
files: ["**/*.ts"],
11+
extends: [
12+
js.configs.recommended,
13+
...tseslint.configs.strictTypeChecked,
14+
...tseslint.configs.stylisticTypeChecked,
15+
...angularEslint.configs.tsRecommended,
16+
],
1517
languageOptions: {
1618
parser: tseslint.parser,
1719
parserOptions: {
@@ -25,22 +27,9 @@ export default [
2527
...globals.browser,
2628
},
2729
},
28-
plugins: {
29-
"@typescript-eslint": tseslint.plugin,
30-
deprecation,
31-
"@angular-eslint": angularEslintPlugin,
32-
},
33-
processor: angularEslintPluginTemplate.processors["extract-inline-html"],
30+
plugins: { deprecation },
31+
processor: angularEslint.processInlineTemplates,
3432
rules: {
35-
...Object.assign(
36-
{},
37-
...tseslint.configs.strictTypeChecked.map(({ rules }) => rules),
38-
),
39-
...Object.assign(
40-
{},
41-
...tseslint.configs.stylisticTypeChecked.map(({ rules }) => rules),
42-
),
43-
...angularEslintPlugin.configs.recommended.rules,
4433
"@typescript-eslint/no-extraneous-class": "off",
4534
"no-unused-vars": "off",
4635
"@typescript-eslint/no-unused-vars": "error",
@@ -59,16 +48,9 @@ export default [
5948
},
6049
{
6150
files: ["**/*.html"],
62-
plugins: {
63-
"@angular-eslint/template": angularEslintPluginTemplate,
64-
},
65-
languageOptions: {
66-
parser: angularEslintTemplateParser,
67-
},
51+
extends: [...angularEslint.configs.templateRecommended],
6852
rules: {
69-
...angularEslintPluginTemplate.configs.recommended.rules,
7053
"@angular-eslint/template/prefer-control-flow": "error",
7154
},
7255
},
73-
prettier,
74-
];
56+
);

‎package-lock.json

Lines changed: 127 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,14 @@
3434
},
3535
"devDependencies": {
3636
"@angular-devkit/build-angular": "~18.0.0",
37-
"@angular-eslint/builder": "^17.0.0",
38-
"@angular-eslint/eslint-plugin": "^17.0.0",
39-
"@angular-eslint/eslint-plugin-template": "^17.0.0",
40-
"@angular-eslint/schematics": "^17.0.0",
41-
"@angular-eslint/template-parser": "^17.0.0",
4237
"@angular/cli": "~18.0.0",
4338
"@angular/compiler-cli": "~18.0.0",
4439
"@eslint/js": "^9.2.0",
4540
"@types/jasmine": "~5.1.0",
41+
"angular-eslint": "^18.0.0-alpha.16",
4642
"cpy-cli": "^5.0.0",
4743
"dayjs": "^1.11.7",
4844
"eslint": "^8.53.0",
49-
"eslint-config-prettier": "^9.0.0",
5045
"eslint-plugin-deprecation": "^2.0.0",
5146
"globals": "^15.1.0",
5247
"jasmine-core": "~5.1.0",
@@ -61,12 +56,6 @@
6156
"prettier": "~3.2.0",
6257
"prettier-plugin-organize-imports": "^3.2.3",
6358
"typescript": "~5.4.0",
64-
"typescript-eslint": "^7.0.0"
65-
},
66-
"overrides": {
67-
"@angular/cli": "~18.0.0",
68-
"@angular/common": "~18.0.0",
69-
"@angular/core": "~18.0.0",
70-
"@angular/platform-browser": "~18.0.0"
59+
"typescript-eslint": "^8.0.0-alpha.20"
7160
}
7261
}

0 commit comments

Comments
 (0)
Please sign in to comment.