From eb7b040c3191f730a6cea170219f4531ec3bc1f3 Mon Sep 17 00:00:00 2001 From: awmleer Date: Fri, 10 Jun 2022 11:41:25 +0800 Subject: [PATCH] chore: update eslint config --- .eslintrc.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index abb5ed7cab..6b6d292237 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + ignorePatterns: ['/*', '!/src', '/src/**/*.js'], 'env': { 'browser': true, 'es6': true, diff --git a/package.json b/package.json index 4048f34a88..b87189d819 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "start": "dumi dev", "build": "gulp", "build-doc": "dumi build", - "lint": "eslint \"src/**/*.{ts,tsx}\"", + "lint": "eslint .", "postinstall": "husky install", "test": "jest", "test-with-coverage": "jest --coverage",