Authored by 毕凯

lint 调整

... ... @@ -15,18 +15,20 @@
"build:dll": "webpack --config ./public/build/webpack.dll.indexcss.config.js",
"build": "webpack --config ./public/build/webpack.dll.indexcss.config.js && webpack --config ./public/build/webpack.prod.config.js",
"debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js",
"lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.{scss,css,vue}",
"lint-js": "eslint --ext .js,.vue --cache --format table .",
"lint:css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table",
"lint:js": "eslint --ext .js,.vue --cache --format table",
"lint-css": "npm run -s lint:css -- ./**/*.{scss,css,vue}",
"lint-js": "npm run -s lint:js -- .",
"lint-all": "echo \"JS: \";npm run -s lint-js;echo \"CSS: \";npm run -s lint-css",
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,vue}": [
"npm run lint-js -- --fix",
"npm run -s lint:js -- --fix",
"git add"
],
"*.{scss,css,vue}": [
"npm run lint-css -- --fix",
"npm run -s lint:css -- --fix",
"git add"
]
},
... ...