Skip to content

Commit b268e0b

Browse files
fix prettier call
fixes pre-commit hook failing with the following message: ``` npm run format: [error] No files matching the pattern were found: "'src/**/*.{ts,json}'". [error] No files matching the pattern were found: "'test/**/*.ts'". [error] No files matching the pattern were found: "'syntaxes/**/*.json'". [error] No files matching the pattern were found: "'snippets/**/*.json'". [error] No files matching the pattern were found: "'./**/*.{md,json,yaml,yml}'". ```
1 parent b3d1766 commit b268e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
"posttest": "npm run format",
743743
"lint": "eslint . --ext .ts,.tsx",
744744
"lint-fix": "npm run lint -- --fix",
745-
"format": "prettier --write 'src/**/*.{ts,json}' 'test/**/*.ts' 'syntaxes/**/*.json' 'snippets/**/*.json' './**/*.{md,json,yaml,yml}'",
745+
"format": "prettier --write src/**/*.{ts,json} test/**/*.ts syntaxes/**/*.json snippets/**/*.json ./**/*.{md,json,yaml,yml}",
746746
"prepare": "husky install",
747747
"pre-commit": "lint-staged",
748748
"coverage": "c8 --clean npm run test"

0 commit comments

Comments
 (0)