Skip to content

Commit 4c473dc

Browse files
authored
Merge pull request alibaba#59 from alibaba/chore/lint
chore: 使用 f2elint 做 lint
2 parents 3c798f0 + f75b823 commit 4c473dc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"build:npm": "lerna run build --stream",
1515
"build:umd": "lerna run build:umd --stream",
1616
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
17-
"lint": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet",
18-
"lint:fix": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet --fix",
17+
"lint": "f2elint scan -q -i ./packages/*/src",
18+
"lint:fix": "f2elint fix -i ./packages/*/src",
1919
"pub": "npm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog",
2020
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2121
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
@@ -26,9 +26,7 @@
2626
"start": "./scripts/start.sh",
2727
"test": "lerna run test --stream",
2828
"test:snapshot": "lerna run test:snapshot",
29-
"watchdog:build": "node ./scripts/watchdog.js",
30-
"f2elint:scan": "f2elint scan -q -i ./packages/*/src",
31-
"f2elint:fix": "f2elint fix -i ./packages/*/src"
29+
"watchdog:build": "node ./scripts/watchdog.js"
3230
},
3331
"husky": {
3432
"hooks": {

0 commit comments

Comments
 (0)