Skip to content

Commit ea1f96d

Browse files
committed
chore(script): 🔧 update lint scripts
1 parent bcdf9b6 commit ea1f96d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.lintstagedrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}": [
2+
"**/*.{js,jsx,tx,tsx}": ["yarn lint"],
3+
"**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}": [
34
"prettier --write",
45
"git add"
56
],
6-
"package.json": ["yarn format:package"],
7-
"**/*.{js,jsx,tx,tsx}": ["yarn lint"]
7+
"package.json": ["yarn format:package"]
88
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"contributors:generate": "all-contributors generate",
4141
"format": "prettier --write \"./**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}\"",
4242
"format:package": "sort-package-json",
43-
"lint": "eslint src --ext .tsx,.ts,.jsx,.js",
44-
"lint:fix": "eslint src --ext .tsx,.ts,.jsx,.js --fix",
43+
"lint": "eslint . --ext .tsx,.ts,.jsx,.js",
44+
"lint:fix": "eslint . --ext .tsx,.ts,.jsx,.js --fix",
4545
"prepublishOnly": "yarn test && yarn build",
4646
"release": "git add . && standard-version -a",
4747
"postrelease": "concurrently yarn:release:*",

0 commit comments

Comments
 (0)