fix: fix lint command (#638)

This commit is contained in:
YunShu 2023-09-16 19:51:13 +08:00 committed by GitHub
parent fec86ef23d
commit 13d1659151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@
"eject": "craco eject", "eject": "craco eject",
"analyze": "source-map-explorer 'build/static/js/*.js'", "analyze": "source-map-explorer 'build/static/js/*.js'",
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\"", "preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\"",
"fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}", "fix": "eslint --fix src/ --ext .js",
"lint:css": "stylelint src/**/*.{css,less} --fix" "lint:js": "eslint --fix src/ --ext .js",
"lint:css": "stylelint src/**/*.{css,less} --fix",
"lint": "yarn lint:js && yarn lint:css"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "react-app" "extends": "react-app"