From 22a00a5f8bba6f30eb3d119498a4533fa1838920 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 21 Jun 2024 12:08:14 +0530 Subject: [PATCH] chore: Update lint scripts --- .lintstagedrc.mjs | 6 +----- package.json | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.lintstagedrc.mjs b/.lintstagedrc.mjs index 86af4f513..84f043195 100644 --- a/.lintstagedrc.mjs +++ b/.lintstagedrc.mjs @@ -1,10 +1,6 @@ export default { '!(docs/**/*)*.{ts,js,html,md,mts}': [ - 'eslint --cache --cache-strategy content --fix', - // don't cache prettier yet, since we use `prettier-plugin-jsdoc`, - // and prettier doesn't invalidate cache on plugin updates" - // https://prettier.io/docs/en/cli.html#--cache - 'prettier --write', + 'biome check --no-errors-on-unmatched --files-ignore-unknown=true', ], '.cspell/*.txt': ['tsx scripts/fixCSpell.ts'], '**/*.jison': ['pnpm -w run lint:jison'], diff --git a/package.json b/package.json index 7706c2706..303c1ca96 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "dev:vite": "tsx .vite/server.ts", "dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite", "release": "pnpm build", - "lint": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content . && pnpm lint:jison && prettier --cache --check .", - "lint:fix": "cross-env NODE_OPTIONS=--max_old_space_size=80192 eslint --cache --cache-strategy content --fix . && prettier --write . && tsx scripts/fixCSpell.ts", + "lint": "pnpm biome check", + "lint:fix": "pnpm biome check --write", "lint:jison": "tsx ./scripts/jison/lint.mts", "contributors": "tsx scripts/updateContributors.ts", "cypress": "cypress run",