lite: run prettier on js + json files
This commit is contained in:
parent
4242f6ee3d
commit
bb1c84e101
23 changed files with 23 additions and 23 deletions
|
@ -44,7 +44,7 @@
|
||||||
"build-api": "lazy build-api",
|
"build-api": "lazy build-api",
|
||||||
"build-package": "lazy build-package",
|
"build-package": "lazy build-package",
|
||||||
"lint": "lazy lint",
|
"lint": "lazy lint",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
|
||||||
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
||||||
"check-scripts": "tsx scripts/check-scripts.ts",
|
"check-scripts": "tsx scripts/check-scripts.ts",
|
||||||
"api-check": "lazy api-check",
|
"api-check": "lazy api-check",
|
||||||
|
|
|
@ -15,7 +15,7 @@ async function main() {
|
||||||
'prettier',
|
'prettier',
|
||||||
shouldFix ? '--write' : '--check',
|
shouldFix ? '--write' : '--check',
|
||||||
// we have to run prettier from root so it picks up the ignore file
|
// we have to run prettier from root so it picks up the ignore file
|
||||||
join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx}'),
|
join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx,js,jsx,json}'),
|
||||||
],
|
],
|
||||||
{ pwd: REPO_ROOT }
|
{ pwd: REPO_ROOT }
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue