mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
chore(docs): upgrade prettier, prettier-plugin-svelte
This commit is contained in:
parent
43021d6209
commit
6aac5cc6d0
3 changed files with 10 additions and 12 deletions
|
@ -21,8 +21,8 @@
|
||||||
"mdsvex": "^0.8.8",
|
"mdsvex": "^0.8.8",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss": "^8.2.4",
|
"postcss": "^8.2.4",
|
||||||
"prettier": "^2.1.2",
|
"prettier": "^2.5.1",
|
||||||
"prettier-plugin-svelte": "^1.4.1",
|
"prettier-plugin-svelte": "^2.5.1",
|
||||||
"prism-svelte": "^0.4.7",
|
"prism-svelte": "^0.4.7",
|
||||||
"prismjs": "^1.21.0",
|
"prismjs": "^1.21.0",
|
||||||
"remark-slug": "^6.0.0",
|
"remark-slug": "^6.0.0",
|
||||||
|
|
|
@ -67,8 +67,6 @@ function plugin() {
|
||||||
const scriptBlock = createImports(node.value);
|
const scriptBlock = createImports(node.value);
|
||||||
const formattedCode = format(scriptBlock + node.value, {
|
const formattedCode = format(scriptBlock + node.value, {
|
||||||
parser: "svelte",
|
parser: "svelte",
|
||||||
svelteBracketNewLine: true,
|
|
||||||
svelteSortOrder: "scripts-markup-styles",
|
|
||||||
});
|
});
|
||||||
const highlightedCode = Prism.highlight(
|
const highlightedCode = Prism.highlight(
|
||||||
formattedCode,
|
formattedCode,
|
||||||
|
|
|
@ -1942,15 +1942,15 @@ prelude-ls@~1.1.2:
|
||||||
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
|
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
|
||||||
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
|
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
|
||||||
|
|
||||||
prettier-plugin-svelte@^1.4.1:
|
prettier-plugin-svelte@^2.5.1:
|
||||||
version "1.4.1"
|
version "2.5.1"
|
||||||
resolved "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-1.4.1.tgz#2f0f7a149190f476dc9b4ba9da8d482bd196f1e2"
|
resolved "https://registry.yarnpkg.com/prettier-plugin-svelte/-/prettier-plugin-svelte-2.5.1.tgz#6c2f5e7fbe2aa208b340b75edc4fdfda33fb254c"
|
||||||
integrity sha512-6y0m37Xw01GRf/WIHau+Kp3uXj2JB1agtEmNVKb9opMy34A6OMOYhfneVpNIlrghQSw/jIV+t3e5Ngt4up2CMA==
|
integrity sha512-IhZUcqr7Bg4LY15d87t9lDr7EyC0IPehkzH5ya5igG8zYwf3UYaYDFnVW2mckREaZyLREcH9YOouesmt4f5Ozg==
|
||||||
|
|
||||||
prettier@^2.1.2:
|
prettier@^2.5.1:
|
||||||
version "2.1.2"
|
version "2.5.1"
|
||||||
resolved "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
|
||||||
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
|
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
|
||||||
|
|
||||||
prism-svelte@^0.4.7:
|
prism-svelte@^0.4.7:
|
||||||
version "0.4.7"
|
version "0.4.7"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue