Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
chore(projects): update prettier-plugin-json-sort & optional packages
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 9, 2023
1 parent cf94dd7 commit 05a7941
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@
},
"peerDependencies": {
"eslint": ">=8.40.0",
"typescript": ">=5.0.0"
"eslint-plugin-vue": ">=9.19.0",
"prettier-plugin-toml": ">=2.0.0",
"typescript": ">=5.0.0",
"vue-eslint-parser": ">=9.3.2"
},
"peerDependenciesMeta": {
"@toml-tools/parser": {
"optional": true
},
"eslint-plugin-vue": {
"optional": true
},
Expand All @@ -61,7 +67,6 @@
"@antfu/install-pkg": "0.3.1",
"@eslint/eslintrc": "2.1.4",
"@eslint/js": "8.55.0",
"@toml-tools/parser": "1.0.0",
"@typescript-eslint/eslint-plugin": "6.13.2",
"@typescript-eslint/parser": "6.13.2",
"eslint-config-prettier": "9.1.0",
Expand All @@ -75,7 +80,7 @@
"local-pkg": "0.5.0",
"prettier": "3.1.0",
"prettier-plugin-jsdoc": "1.1.1",
"prettier-plugin-json-sort": "0.0.1",
"prettier-plugin-json-sort": "0.0.2",
"prompts": "2.4.2"
},
"devDependencies": {
Expand All @@ -84,6 +89,7 @@
"@eslint-types/unicorn": "49.0.0",
"@soybeanjs/cli": "0.8.10",
"@soybeanjs/eslint-config": "link:",
"@toml-tools/parser": "1.0.0",
"@types/eslint": "8.44.8",
"@types/eslint-config-prettier": "6.11.3",
"@types/eslint__eslintrc": "2.1.1",
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/configs/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function createFormatterConfig(
}

if (toml) {
await ensurePackages(['prettier-plugin-toml']);
await ensurePackages(['@toml-tools/parser', 'prettier-plugin-toml']);

const tomlConfig = createPrettierFormatter([GLOB_TOML], 'toml', ['prettier-plugin-toml']);

Expand Down

0 comments on commit 05a7941

Please sign in to comment.