lite: run prettier on js + json files

pull/1218/head
alex 2023-05-02 16:12:34 +01:00
rodzic 4242f6ee3d
commit bb1c84e101
23 zmienionych plików z 23 dodań i 23 usunięć

Wyświetl plik

@ -44,7 +44,7 @@
"build-api": "lazy build-api",
"build-package": "lazy build-package",
"lint": "lazy lint",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check",

Wyświetl plik

@ -15,7 +15,7 @@ async function main() {
'prettier',
shouldFix ? '--write' : '--check',
// 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 }
)