mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 01:35:57 +00:00
chore(format): also format json (no effect)
Adds json-file formating to the prettier command. Currently this has no effect, but if the `tabWidth` is changed to 2 and the `printWidth` reduced to 88, then it will also impact the json files and keep the formatting consistent across code and data.
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
"tsc-check": "tsc --noEmit",
|
"tsc-check": "tsc --noEmit",
|
||||||
"pretty": "npm run prettyNoWrite -- --write --log-level error",
|
"pretty": "npm run prettyNoWrite -- --write --log-level error",
|
||||||
"prettyCheck": "npm run prettyNoWrite -- --check",
|
"prettyCheck": "npm run prettyNoWrite -- --check",
|
||||||
"prettyNoWrite": "prettier --config ./.prettierrc \"**/*.js\" \"**/*.ts\"",
|
"prettyNoWrite": "prettier --config ./.prettierrc \"**/*.js\" \"**/*.ts\" \"**/*.json\" ",
|
||||||
"check": "npm run lint && npm run svelte-check && npm run tsc-check"
|
"check": "npm run lint && npm run svelte-check && npm run tsc-check"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user