From 105ce2c43f481ce968c0971a3e9cdef49fe78127 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 25 May 2021 18:01:22 +0530 Subject: [PATCH 1/5] chore: add scripts for fixing lint --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 287906c..2f1b199 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,9 @@ "lint:js": "eslint --cache .", "lint:types": "tsc --pretty --noEmit", "lint": "npm-run-all -l -p \"lint:**\"", + "fix:prettier": "npm run lint:prettier -- --write", + "fix:js": "npm run lint:js -- --fix", + "fix": "npm-run-all 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", From 67ce92f4ca1f3dc59566fa1dd8f6cb7ef806aa49 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 25 May 2021 18:12:58 +0530 Subject: [PATCH 2/5] chore: update script name --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2f1b199..ceb66a0 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,9 @@ "lint:js": "eslint --cache .", "lint:types": "tsc --pretty --noEmit", "lint": "npm-run-all -l -p \"lint:**\"", - "fix:prettier": "npm run lint:prettier -- --write", - "fix:js": "npm run lint:js -- --fix", - "fix": "npm-run-all fix:js fix:prettier", + "fmt:prettier": "npm run lint:prettier -- --write", + "fmt:js": "npm run lint:js -- --fix", + "fmt": "npm-run-all 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", From 72d9e102d2f14eeca09139a4424a8480dfa35bc6 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 25 May 2021 18:28:06 +0530 Subject: [PATCH 3/5] chore: suggestion --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ceb66a0..d6b4bd1 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,9 @@ "lint:js": "eslint --cache .", "lint:types": "tsc --pretty --noEmit", "lint": "npm-run-all -l -p \"lint:**\"", - "fmt:prettier": "npm run lint:prettier -- --write", - "fmt:js": "npm run lint:js -- --fix", - "fmt": "npm-run-all fix:js fix:prettier", + "fmt": "npm run lint:prettier -- --write", + "fix:js": "npm run lint:js -- --fix", + "fix": "npm-run-all fix:js fmt", "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 d580bc683795ac482f97f3780ff09de7374b6e57 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 25 May 2021 18:37:29 +0530 Subject: [PATCH 4/5] chore: update scipts --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d6b4bd1..cbe0c01 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,10 @@ "build": "npm-run-all -p \"build:**\"", "commitlint": "commitlint --from=master", "security": "npm audit", - "lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different", + "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different", "lint:js": "eslint --cache .", "lint:types": "tsc --pretty --noEmit", - "lint": "npm-run-all -l -p \"lint:**\"", + "lint": "npm-run-all lint:js lint:types fmt:check", "fmt": "npm run lint:prettier -- --write", "fix:js": "npm run lint:js -- --fix", "fix": "npm-run-all fix:js fmt", From 2b5e33162e174f739073a39dec809e4a769ab652 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 25 May 2021 19:31:33 +0530 Subject: [PATCH 5/5] chore: update --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbe0c01..1669837 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "lint:js": "eslint --cache .", "lint:types": "tsc --pretty --noEmit", "lint": "npm-run-all lint:js lint:types fmt:check", - "fmt": "npm run lint:prettier -- --write", + "fmt": "npm run fmt:check -- --write", "fix:js": "npm run lint:js -- --fix", "fix": "npm-run-all fix:js fmt", "test:only": "cross-env NODE_ENV=test jest",