Skip to content

Commit

Permalink
feat: update import rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nekochan0122 committed Aug 30, 2024
1 parent 3c0326f commit bb058c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@eslint/js": "^9.9.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@stylistic/eslint-plugin": "^2.7.1",
"@stylistic/eslint-plugin": "^2.7.2",
"@types/eslint__js": "^8.42.3",
"eslint": "^9.9.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion src/eslint/plugins/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ export const importPluginConfig: FlatConfigArray = [{
import: fixupPluginRules(eslintImport),
},
rules: {
'import/no-empty-named-blocks': 'error',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'import/no-duplicates': ['error', { considerQueryString: true }],
'import/newline-after-import': ['error', { count: 1 }],
'import/no-duplicates': ['error', { considerQueryString: true }],
},
}]

0 comments on commit bb058c6

Please sign in to comment.