mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
给 eslint 和 stylelint 命令增加 --cache 设置
This commit is contained in:
parent
3e6511f0e8
commit
a17c531340
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,8 @@ node_modules
|
||||
dist*
|
||||
dist-ssr
|
||||
*.local
|
||||
.eslintcache
|
||||
.stylelintcache
|
||||
src/assets/sprites/*.*
|
||||
!src/assets/sprites/.gitkeep
|
||||
public/icons
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"src/**/*.{js,jsx,ts,tsx}": "eslint --fix",
|
||||
"src/**/*.{css,scss}": "stylelint --fix --allow-empty-input",
|
||||
"src/**/*.vue": ["eslint --fix", "stylelint --fix --allow-empty-input"]
|
||||
"src/**/*.{js,jsx,ts,tsx}": "eslint --cache --fix",
|
||||
"src/**/*.{css,scss}": "stylelint --cache --fix --allow-empty-input",
|
||||
"src/**/*.vue": ["eslint --cache --fix", "stylelint --cache --fix --allow-empty-input"]
|
||||
}
|
||||
|
@ -8,8 +8,8 @@
|
||||
"new": "plop",
|
||||
"lint": "npm-run-all -s lint:tsc lint:eslint lint:stylelint",
|
||||
"lint:tsc": "vue-tsc --noEmit",
|
||||
"lint:eslint": "eslint src/**/*.{ts,tsx,vue} --fix",
|
||||
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --fix",
|
||||
"lint:eslint": "eslint src/**/*.{ts,tsx,vue} --cache --fix",
|
||||
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --cache --fix",
|
||||
"prepare": "husky install",
|
||||
"postinstall": "esno scripts/prepare.js",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
|
Loading…
Reference in New Issue
Block a user