Skip to content

Commit 87a9fbc

Browse files
committed
chore: enable prettier-plugin-pkg correctly
1 parent e689908 commit 87a9fbc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.prettierrc.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"plugins": ["prettier-plugin-pkg"]
3+
}

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"author": "Yosuke Ota",
88
"funding": "https://github.com/sponsors/ota-meshi",
99
"license": "MIT",
10+
"packageManager": "[email protected]",
1011
"engines": {
1112
"node": "^14.18.0 || >=16.0.0"
1213
},
@@ -28,15 +29,16 @@
2829
"build:ts": "tsc --project ./tsconfig.build.json",
2930
"clean": "rimraf .nyc_output dist coverage",
3031
"cover": "nyc --reporter=lcov yarn test",
31-
"docs:watch": "vitepress dev docs",
3232
"docs:build": "yarn build && vitepress build docs",
3333
"docs:build-and-preview": "yarn docs:build && npx http-server docs/.vitepress/dist",
34+
"docs:watch": "vitepress dev docs",
3435
"lint": "eslint .",
3536
"lint-fix": "yarn lint --fix",
3637
"mocha": "yarn ts node_modules/mocha/bin/mocha",
3738
"new": "yarn ts ./tools/new-rule",
3839
"prebuild": "yarn -s clean",
3940
"predocs:watch": "yarn build",
41+
"prelint": "yarn build",
4042
"prerelease": "yarn test && yarn build",
4143
"preversion": "yarn test && git add .",
4244
"release": "clean-pkg-json && changeset publish",
@@ -121,6 +123,5 @@
121123
},
122124
"publishConfig": {
123125
"access": "public"
124-
},
125-
"packageManager": "[email protected]"
126+
}
126127
}

0 commit comments

Comments
 (0)