Skip to content

Commit 6638772

Browse files
committed
chore: fix mismatch between lint-staged config and format
1 parent f765e2c commit 6638772

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages/**/*.d.ts
2-
packages/**/*.js
2+
packages/**/*.js
3+
.nyc_output

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"clean": "gulp clean:bundle",
2424
"codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts",
2525
"coverage": "nyc report --reporter=text-lcov | coveralls",
26-
"format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status",
26+
"format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status",
2727
"postinstall": "opencollective",
2828
"test": "nyc mocha packages/**/*.spec.ts --reporter spec",
2929
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec",
@@ -44,7 +44,10 @@
4444
"prepare": "husky install"
4545
},
4646
"lint-staged": {
47-
"packages/**/*.{ts,json}": [
47+
"**/*.ts": [
48+
"prettier --ignore-path ./.prettierignore --write"
49+
],
50+
"packages/**/*.json": [
4851
"prettier --ignore-path ./.prettierignore --write"
4952
]
5053
},

0 commit comments

Comments
 (0)