From fc78d6308318c447d0dd260e3195012d1e1f7f7e Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sat, 6 May 2023 05:17:49 +0530 Subject: [PATCH 1/2] chore: add scripts to fix lint --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 084722a0..d48b5551 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,9 @@ "lint:js": "eslint --cache .", "lint:spelling": "cspell \"**/*.*\"", "lint": "npm-run-all -l -p \"lint:**\"", + "fix:js": "npm run lint:js -- --fix", + "fix:prettier": "npm run lint:prettier -- --write", + "fix": "npm-run-all -l -p \"fix:**\"", "test:only": "cross-env NODE_ENV=test jest", "test:watch": "npm run test:only -- --watch", "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", From 945b73e2916d0a193d17f354f4480d51e36ebade Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sat, 6 May 2023 14:30:19 +0530 Subject: [PATCH 2/2] chore: update fix script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d48b5551..1f8c661c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "lint": "npm-run-all -l -p \"lint:**\"", "fix:js": "npm run lint:js -- --fix", "fix:prettier": "npm run lint:prettier -- --write", - "fix": "npm-run-all -l -p \"fix:**\"", + "fix": "npm-run-all -l fix:js fix:prettier", "test:only": "cross-env NODE_ENV=test jest", "test:watch": "npm run test:only -- --watch", "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",