Skip to content

Commit

Permalink
chore: setup prettier to format all possible files
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 16, 2023
1 parent e517318 commit 6202031
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
coverage/
test/fixtures/broken-json/
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@
"yargs-test-extends": "^1.0.1"
},
"scripts": {
"fix": "gts fix && npm run fix:js",
"fix": "gts fix && npm run fix:js && npm run fix:format",
"fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
"fix:format": "prettier . --write",
"posttest": "npm run check",
"test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
"test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks",
Expand All @@ -99,8 +100,9 @@
"postcompile": "npm run build:cjs",
"build:cjs": "rollup -c rollup.config.cjs",
"postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
"check": "gts lint && npm run check:js",
"check": "gts lint && npm run check:js && npm run check:format",
"check:js": "eslint . --ext cjs --ext mjs --ext js",
"check:format": "prettier . --list-different",
"clean": "gts clean",
"watch": "rimraf build && tsc && concurrently npm:watch:tsc npm:watch:cjs",
"watch:cjs": "rollup -w -c rollup.config.cjs",
Expand Down

0 comments on commit 6202031

Please sign in to comment.