Browse Source

fix: fix lint command (#638)

HEAD
YunShu GitHub 2 years ago
parent
commit
13d1659151
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      web/package.json

+ 4
- 2
web/package.json 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}",
"lint:css": "stylelint src/**/*.{css,less} --fix"
"fix": "eslint --fix src/ --ext .js",
"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"


Loading…
Cancel
Save