mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
build: 通过lintstaged对scss文件进行增量校验,避免npm run stylelint全量校验的时间浪费
This commit is contained in:
parent
6cfad22de3
commit
1b40a08eea
@ -2,4 +2,3 @@
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
||||
npm run stylelint
|
||||
|
@ -36,8 +36,11 @@
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts}": [
|
||||
"{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts,scss}": [
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{scss}": [
|
||||
"stylelint --fix"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
@ -157,4 +160,4 @@
|
||||
"printBasicPrototype": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user