Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add precommit hook #191

Merged
merged 5 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
.github
.github
pnpm-lock.yaml
node_modules
*.d.ts
coverage
dist
storybook-static
.nuxt
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ dist
.idea

auto-imports.d.ts
components.d.ts
components.d.ts

.eslintcache
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"dev:all": "turbo run dev --filter='./packages/**' --concurrency $(($(ls -1 packages/components packages/core | wc -l)+3))",
"dev:core": "turbo run dev --filter='./packages/core/**'",
"dev:components": "turbo run dev --filter='./packages/components/**'",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"lint": "eslint --cache .",
"lint:fix": "eslint --fix --cache .",
"play:vue": "pnpm clean:dts && turbo run dev --filter='./playground/vue3/**'",
"play:nuxt": "pnpm clean:dts && turbo run dev --filter='./playground/nuxt3/**'",
"play": "pnpm clean:dts && turbo run dev --filter='./playground/**'",
"postinstall": "simple-git-hooks",
"test": "vitest run",
"test:watch": "vitest --watch",
"coverage": "vitest run --coverage",
Expand Down Expand Up @@ -56,11 +57,13 @@
"eslint-plugin-storybook": "^0.6.12",
"jiti": "^1.18.2",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.3",
"ofetch": "^1.1.1",
"postcss": "^8.4.24",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.1",
"simple-git-hooks": "^2.8.1",
"storybook": "^7.0.24",
"storybook-dark-mode": "^3.0.0",
"tailwindcss": "^3.3.2",
Expand All @@ -82,5 +85,13 @@
"@vue/runtime-core": "3.3.4",
"vite": "4.3.5"
}
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{[jt]s?(x),vue,md}": [
"eslint --cache --fix ."
]
}
}
140 changes: 140 additions & 0 deletions pnpm-lock.yaml

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

Loading