chore: use lint-staged for test & test:e2e precommit
This commit is contained in:
parent
56d13d2ce3
commit
772d656cfa
3 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -32,6 +32,11 @@ export default [
|
|||
languageOptions: { globals: globals.node },
|
||||
},
|
||||
{
|
||||
ignores: ['site/*', '**/dist/*', 'storybook/storybook-static/*'],
|
||||
ignores: [
|
||||
'site/*',
|
||||
'**/dist/*',
|
||||
'storybook/storybook-static/*',
|
||||
'create-wcb/*',
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue