From 5319d05f248d828570c7ba899264e9175fc1e370 Mon Sep 17 00:00:00 2001 From: SuperSuperDev Date: Thu, 12 Aug 2021 18:45:44 +0700 Subject: [PATCH] feat: use eslint for linting --- .husky/pre-commit | 1 - package.json | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index e64e3ab..dc0378c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn lint yarn lint-staged \ No newline at end of file diff --git a/package.json b/package.json index 98520bc..badf5ef 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ }, "lint-staged": { "src/**/*.{js,jsx,ts,tsx,json,css,scss,md,mdx}": [ + "yarn eslint src --max-warnings=0", "yarn prettier --write" ] }