Skip to content

Commit

Permalink
feat(eslint.config.js): add rule for extraneous dependencies
Browse files Browse the repository at this point in the history
This commit adds a new rule to the ESLint configuration for TypeScript.
The rule 'import/no-extraneous-dependencies' is set to 'error', which
will help to prevent importing dependencies that are not declared in
the package.json file.
  • Loading branch information
ryoppippi committed Aug 7, 2024
1 parent d820d31 commit 49c7212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ export default ryoppippi({
svelte: false,
typescript: {
tsconfigPath: './tsconfig.json',
overrides: {
'import/no-extraneous-dependencies': ['error'],
},
},
});

0 comments on commit 49c7212

Please sign in to comment.