File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11{
2- "**/*.js": ["yarn lint"]
2+ "**/*.js": ["yarn format", "yarn lint"]
33}
Original file line number Diff line number Diff line change 1+ module . exports = require ( '@boringcodes/prettier-config' ) ;
Original file line number Diff line number Diff line change 1010 "main" : " index.js" ,
1111 "scripts" : {
1212 "purge" : " rm -rf node_modules" ,
13+ "format" : " prettier --write --ignore-path .gitignore **/*.js" ,
14+ "format:check" : " prettier --check --ignore-path .gitignore **/*.js" ,
1315 "lint" : " eslint --ignore-path .gitignore **/*.js" ,
1416 "release" : " standard-version --no-verify" ,
1517 "release:major" : " yarn release --release-as major" ,
1820 },
1921 "devDependencies" : {
2022 "@boringcodes/eslint-config" : " ^1.0.0" ,
23+ "@boringcodes/prettier-config" : " ^1.2.2" ,
2124 "@typescript-eslint/eslint-plugin" : " ^2.25.0" ,
2225 "@typescript-eslint/parser" : " ^2.25.0" ,
2326 "eslint" : " ^6.8.0" ,
3033 "eslint-plugin-standard" : " ^4.0.1" ,
3134 "husky" : " ^4.2.3" ,
3235 "lint-staged" : " ^10.0.9" ,
36+ "prettier" : " ^2.0.2" ,
3337 "standard-version" : " ^6.0.1" ,
3438 "typescript" : " ^3.8.3"
3539 },
Original file line number Diff line number Diff line change 3535 resolved "https://registry.yarnpkg.com/@boringcodes/eslint-config/-/eslint-config-1.1.0.tgz#df46ec56210006025eda503eac36ed838b50c8d6"
3636 integrity sha512-lNbKFAgRSyPfwKtANuniCZSxCSvtFL0lFw/5Mr1VQp5vAOOH2lsjKKFOJ6orrM58Xatz5cELwX5CKa5miUc/EA==
3737
38+ " @boringcodes/prettier-config@^1.2.2 " :
39+ version "1.2.2"
40+ resolved "https://registry.yarnpkg.com/@boringcodes/prettier-config/-/prettier-config-1.2.2.tgz#47336d595011930cd5aacc235e1ee5e12840fc7d"
41+ integrity sha512-JaOIasT4tPGV6plBTfth1Ps1tQ54orlfTeF/TmX8EUJ2+vM9aRgnvdiTLk226y763c/zjswseUUyM2DSaqd9cw==
42+
3843" @samverschueren/stream-to-observable@^0.3.0 " :
3944 version "0.3.0"
4045 resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
@@ -2332,6 +2337,11 @@ prelude-ls@~1.1.2:
23322337 resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
23332338 integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
23342339
2340+ prettier@^2.0.2 :
2341+ version "2.0.2"
2342+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08"
2343+ integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg==
2344+
23352345process-nextick-args@~2.0.0 :
23362346 version "2.0.1"
23372347 resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
You can’t perform that action at this time.
0 commit comments