From bd77caecf0d67a44d8c3e7ae2fe239a9bdd95d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CZiyedB=E2=80=9D?= Date: Sun, 28 Feb 2021 18:47:41 +0000 Subject: [PATCH] chore: change lint to only run on push --- package.json | 2 +- src/App.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4180365..a92ffbf 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged && pretty-quick --staged && npm test" + "pre-push": "npm run lint && npm test" } } } diff --git a/src/App.test.tsx b/src/App.test.tsx index d393ef3..2847716 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,5 +1,5 @@ import { render, screen } from '@testing-library/react'; - +import React from 'react'; import App from './App'; describe('App', () => {