From 32915a97498be04ca507d8b9d57a9ee9ae766e9e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 28 May 2023 16:07:20 -0500 Subject: [PATCH] chore: add `lint:fix` script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c688a60..8bcc1e6 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "scripts": { "build": "unbuild", "dev": "pnpm mkdist test/fixture -d", - "lint": "eslint --ext .ts . && prettier --check src test", + "lint": "eslint --ext .ts,.mjs,.cjs . && prettier --check src test", + "lint:fix": "eslint --fix --ext .ts,.mjs,.cjs . && prettier --write -c src test", "mkdist": "jiti src/cli", "release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags", "test": "pnpm lint && vitest run --coverage"