Skip to content

Commit

Permalink
chore(lint): use rule to disable usage of devDeps (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
potb committed Jan 5, 2024
1 parent 4b87f76 commit 82ef0fa
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:sonarjs/recommended
- plugin:import/typescript

plugins:
- simple-import-sort
- import
- only-error
- unused-imports

settings:
import/resolver:

rules:
import/exports-last: error
import/first: error
Expand All @@ -25,3 +29,15 @@ rules:
simple-import-sort/exports: error

unused-imports/no-unused-imports: error

import/no-extraneous-dependencies:
- error
- devDependencies: false

overrides:
- files:
- '*.spec.ts'
rules:
import/no-extraneous-dependencies:
- error
- devDependencies: true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@typescript-eslint/parser": "6.6.0",
"dotenv": "16.3.1",
"eslint": "8.49.0",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-only-error": "1.0.2",
"eslint-plugin-simple-import-sort": "10.0.0",
Expand Down
73 changes: 69 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit 82ef0fa

Please sign in to comment.