From faf7b1f1612fe7e2d311ac279a526416318c52bb Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 1 Sep 2022 17:12:36 +0530 Subject: [PATCH] remove strict check for local commit & just show warning --- .husky/pre-commit | 2 +- package.json | 3 +-- packages/react-app/package.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index dc0378c34..44d21ba2f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn lint-staged \ No newline at end of file +yarn lint-staged --verbose \ No newline at end of file diff --git a/package.json b/package.json index da7fdbbbc..652d09a0b 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,7 @@ "lint-staged": { "packages/react-app/src/**/*.{js,jsx}": [ "prettier --write", - "eslint --fix", - "eslint --max-warnings=0 --ignore-path packages/react-app/.eslintignore" + "eslint --fix" ] } } diff --git a/packages/react-app/package.json b/packages/react-app/package.json index e3c1460bc..afb8a2279 100644 --- a/packages/react-app/package.json +++ b/packages/react-app/package.json @@ -91,7 +91,7 @@ "prestart": "node ./scripts/create_contracts.js", "start": "react-scripts start", "test": "react-scripts test", - "lint": "eslint ./src/**/*.{js,jsx} --ignore-path ./.eslintignore --max-warnings=0 && eslint ./src/*.{js,jsx} --ignore-path ./.eslintignore --max-warnings=0", + "lint": "eslint ./src/**/*.{js,jsx} --ignore-path ./.eslintignore --max-warnings=0", "ipfs": "node ./scripts/ipfs.js", "surge": "cp build/index.html build/200.html && surge ./build", "s3": "node ./scripts/s3.js",