Skip to content

Commit

Permalink
put unused-imports plugin into config
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Nov 19, 2024
1 parent 364f6ae commit f539d79
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import {rules} from "@typescript-eslint/eslint-plugin";
import unusedImports from "eslint-plugin-unused-imports";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
"unused-imports": unusedImports,
},
rules: {
"unused-imports/no-unused-imports": "error",
}
Expand Down
16 changes: 16 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"cypress": "^13.15.0",
"cypress-real-events": "^1.13.0",
"eslint": "^9.14.0",
"eslint-plugin-unused-imports": "^4.1.4",
"jest": "^29.7.0",
"jest-preset-angular": "^14.2.4",
"ngx-translate-testing": "^7.0.0",
Expand Down

0 comments on commit f539d79

Please sign in to comment.