Skip to content

Commit 13d1659

Browse files
authored
fix: fix lint command (#638)
1 parent fec86ef commit 13d1659

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

web/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@
4747
"eject": "craco eject",
4848
"analyze": "source-map-explorer 'build/static/js/*.js'",
4949
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\"",
50-
"fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}",
51-
"lint:css": "stylelint src/**/*.{css,less} --fix"
50+
"fix": "eslint --fix src/ --ext .js",
51+
"lint:js": "eslint --fix src/ --ext .js",
52+
"lint:css": "stylelint src/**/*.{css,less} --fix",
53+
"lint": "yarn lint:js && yarn lint:css"
5254
},
5355
"eslintConfig": {
5456
"extends": "react-app"

0 commit comments

Comments
 (0)