Skip to content

Commit

Permalink
fix: organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Dec 20, 2024
1 parent ea1b424 commit b519cb7
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"trailingComma": "es5",
"plugins": ["prettier-plugin-packagejson", "prettier-plugin-tailwindcss"],
"plugins": [
"prettier-plugin-packagejson",
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
],
"tailwindFunctions": ["clsx", "cn", "cva"]
}
17 changes: 15 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
{
"search.exclude": {
".vscode": true,
"pnpm-lock.yaml": true,
"**/.pnp.*": true,
"**/.yarn": true
"**/.yarn": true,
"**/node_modules": true,
"**/dist": true,
"**/build": true,
"**/out": true,
"**/lib": true,
"**/.next": true,
"**/storybook-static": true,
"**/generated": true,
"**/__test__/**/fixtures": true,
"**/__test__/**/output": true,
"**/__snapshots__/**": true,
"tests": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": [
"source.fixAll",
"source.organizeImports",
"source.sortMembers",
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
Expand Down
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const compat = new FlatCompat({

export default tseslint.config(
{
files: [
"**/*.{ts,tsx,js,jsx,mjs,mts,mjsx,mtsx,cjs,cjsx,cts,ctsx,es,es6,esm}",
],
ignores: [
"**/generated",
"**/dist",
Expand Down Expand Up @@ -60,7 +63,7 @@ export default tseslint.config(
}),

{
files: ["**/*.test.ts", "**/*.test.tsx"],
files: ["**/*.test.{ts,tsx}"],
plugins: {
vitest,
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"organize-imports-cli": "^0.10.0",
"playwright": "^1.47.1",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.6.9",
"react": "^18",
"rollup": "^4.22.4",
Expand Down
24 changes: 22 additions & 2 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 b519cb7

Please sign in to comment.