Skip to content

Commit

Permalink
feat: update import rules (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr9 authored Sep 20, 2024
1 parent 37f655d commit 362e9ed
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json

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

30 changes: 18 additions & 12 deletions pnpm-lock.yaml

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

7 changes: 7 additions & 0 deletions rules/base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export const base = [

'unicorn/switch-case-braces': ['error', 'avoid'],

'import-x/no-self-import': 'error',
'import-x/no-cycle': 'error',
'import-x/no-useless-path-segments': 'error',
'import-x/consistent-type-specifier-style': ['error', 'prefer-inline'],
'import-x/first': 'error',
'import-x/no-relative-packages': 'error',

'class-methods-use-this': 'off',
},
},
Expand Down

0 comments on commit 362e9ed

Please sign in to comment.