Skip to content

Commit 13da260

Browse files
authored
chore: replace deprecation ESLint plugin (#438)
Removes the `eslint-plugin-deprecation` plugin and replaces it with a new rule from TypeScript ESLint. Co-authored-by: Daniel Kimmich <[email protected]>
1 parent d158b75 commit 13da260

File tree

3 files changed

+1
-177
lines changed

3 files changed

+1
-177
lines changed

eslint.config.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { fixupPluginRules } from "@eslint/compat";
21
import js from "@eslint/js";
32
import angularEslint from "angular-eslint";
4-
import deprecation from "eslint-plugin-deprecation";
53
import globals from "globals";
64
import tseslint from "typescript-eslint";
75

@@ -28,14 +26,13 @@ export default tseslint.config(
2826
...globals.browser,
2927
},
3028
},
31-
plugins: { deprecation: fixupPluginRules(deprecation) },
3229
processor: angularEslint.processInlineTemplates,
3330
rules: {
3431
"@typescript-eslint/no-extraneous-class": "off",
3532
"no-unused-vars": "off",
33+
"@typescript-eslint/no-deprecated": "error",
3634
"@typescript-eslint/no-unused-vars": "error",
3735
"@typescript-eslint/prefer-literal-enum-member": "off",
38-
"deprecation/deprecation": "error",
3936
"@angular-eslint/prefer-standalone-component": "error",
4037
},
4138
},

package-lock.json

-171
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@
3636
"@angular-devkit/build-angular": "~18.2.0",
3737
"@angular/cli": "~18.2.0",
3838
"@angular/compiler-cli": "~18.2.0",
39-
"@eslint/compat": "^1.1.1",
4039
"@eslint/js": "^9.2.0",
4140
"@types/jasmine": "~5.1.0",
4241
"angular-eslint": "^18.0.0",
4342
"cpy-cli": "^5.0.0",
4443
"dayjs": "^1.11.7",
4544
"eslint": "^9.0.0",
46-
"eslint-plugin-deprecation": "^3.0.0",
4745
"globals": "^15.1.0",
4846
"jasmine-core": "~5.2.0",
4947
"karma": "~6.4.0",

0 commit comments

Comments
 (0)