Skip to content

Commit

Permalink
chore: fix mismatch between lint-staged config and format
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed May 27, 2022
1 parent f765e2c commit 6638772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
@@ -1,2 +1,3 @@
packages/**/*.d.ts
packages/**/*.js
packages/**/*.js
.nyc_output
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -23,7 +23,7 @@
"clean": "gulp clean:bundle",
"codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status",
"format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status",
"postinstall": "opencollective",
"test": "nyc mocha packages/**/*.spec.ts --reporter spec",
"test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec",
Expand All @@ -44,7 +44,10 @@
"prepare": "husky install"
},
"lint-staged": {
"packages/**/*.{ts,json}": [
"**/*.ts": [
"prettier --ignore-path ./.prettierignore --write"
],
"packages/**/*.json": [
"prettier --ignore-path ./.prettierignore --write"
]
},
Expand Down

0 comments on commit 6638772

Please sign in to comment.