Skip to content

Commit

Permalink
fix: 🧩 修复了 prettier 每次格式化可能对 lock 文件造成大规模 diff 的问题 (#77)
Browse files Browse the repository at this point in the history
* fix: 🧩 修复了 prettier 每次格式化可能对 lock 文件造成大规模 diff 的问题

* fix: 🧩 修复了 prettier 每次格式化可能对 lock 文件造成大规模 diff 的问题
  • Loading branch information
xun082 authored Jul 20, 2024
1 parent 38f8250 commit 4082d7b
Show file tree
Hide file tree
Showing 4 changed files with 2,206 additions and 6,993 deletions.
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

0 comments on commit 4082d7b

Please sign in to comment.