Skip to content

Commit

Permalink
add linting rule for consistent type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewHoo committed Mar 14, 2024
1 parent 0e22164 commit 8a3bbcf
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
tsconfigRootDir: __dirname,
},
rules: {
"@typescript-eslint/consistent-type-imports": "error",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"semantic-release": "^23.0.2",
"storybook": "^7.6.17",
"typescript": "^5.2.2",
"typescript-eslint": "^7.2.0",
"vite": "^5.0.12",
"vitest": "^1.2.2"
}
Expand Down
153 changes: 153 additions & 0 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 8a3bbcf

Please sign in to comment.