Install Prettier

This commit is contained in:
INOUE Takuya 2023-01-19 01:21:29 +09:00
parent 5956ac7064
commit 27c0d04b66
4 changed files with 18 additions and 1 deletions

5
.prettierignore Normal file
View File

@ -0,0 +1,5 @@
node_modules/
main.js
README.md

4
.prettierrc Normal file
View File

@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}

View File

@ -6,7 +6,9 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
"version": "node version-bump.mjs && git add manifest.json versions.json",
"format:check": "prettier --check .",
"format:fix": "prettier --write ."
},
"keywords": [],
"author": "",
@ -18,6 +20,7 @@
"builtin-modules": "3.3.0",
"esbuild": "0.14.47",
"obsidian": "latest",
"prettier": "2.8.3",
"tslib": "2.4.0",
"typescript": "4.7.4"
}

View File

@ -450,6 +450,11 @@ picomatch@^2.3.1:
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
prettier@^2.8.3:
version "2.8.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.3.tgz#ab697b1d3dd46fb4626fbe2f543afe0cc98d8632"
integrity sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==
queue-microtask@^1.2.2:
version "1.2.3"
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"