fixed prettier --write args in package.json (#15187)
prettier --write **/*.{js,ts,tsx} does not work as intended, it never does traverse all files with js,ts,tsx extension. For it to work as intended, extension args should be wrapped in quotes like this "**/*.{js,ts,tsx}"
This commit is contained in:
parent
283a0d9a90
commit
987d29a5b4
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
"build": "next build",
|
||||
"start": "next start",
|
||||
"type-check": "tsc --pretty --noEmit",
|
||||
"format": "prettier --write **/*.{js,ts,tsx}",
|
||||
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
|
||||
"lint": "eslint . --ext ts --ext tsx --ext js",
|
||||
"test": "jest",
|
||||
"test-all": "yarn lint && yarn type-check && yarn test"
|
||||
|
|
Loading…
Reference in a new issue