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

fix: 🧩 修复了 prettier 每次格式化可能对 lock 文件造成大规模 diff 的问题 #77

Merged
merged 2 commits into from
Jul 20, 2024
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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
node_modules/
.next/
.next/
pnpm-lock.yaml
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @type {import('next').NextConfig} */
import { withNextDevtools } from '@next-devtools/core/plugin';

const nextConfig = {
eslint: {
Expand Down Expand Up @@ -37,4 +36,4 @@ const nextConfig = {
},
};

export default withNextDevtools(nextConfig);
export default nextConfig;
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"postinstall": "husky install && pnpm format",
"postinstall": "husky install",
"commit": "git-cz",
"lint": "eslint \"src/**/*.{js,ts,jsx,tsx}\" --fix",
"lint:ci": "eslint \"src/**/*.{js,ts,jsx,tsx}\"",
Expand Down Expand Up @@ -53,7 +53,6 @@
"@chromatic-com/storybook": "^1.6.1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@next-devtools/core": "^0.2.0",
"@storybook/addon-essentials": "^8.1.11",
"@storybook/addon-interactions": "^8.1.11",
"@storybook/addon-links": "^8.1.11",
Expand Down
Loading
Loading