chore: use lint-staged for test & test:e2e precommit

This commit is contained in:
ayo 2026-07-21 21:49:17 +02:00
parent 56d13d2ce3
commit 772d656cfa
3 changed files with 10 additions and 5 deletions

View file

@ -3,6 +3,3 @@
# re-run these once per remote; keeping them here runs them once per commit.
# The full cross-browser e2e matrix still runs nightly in CI. Order: cheap → expensive.
pnpm exec lint-staged
pnpm test
pnpm test:e2e
pnpm size-limit

View file

@ -32,6 +32,11 @@ export default [
languageOptions: { globals: globals.node },
},
{
ignores: ['site/*', '**/dist/*', 'storybook/storybook-static/*'],
ignores: [
'site/*',
'**/dist/*',
'storybook/storybook-static/*',
'create-wcb/*',
],
},
]

View file

@ -63,7 +63,10 @@
"eslint --config eslint.config.mjs --fix",
"prettier --write"
],
"*.{json,css,html,md,yml,yaml}": "prettier --write"
"*.{json,css,html,md,yml,yaml}": "prettier --write",
"src": "test",
"src": "test:e2e",
"src": "size-limit"
},
"repository": {
"type": "git",