baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.4k stars 2.52k forks source link

build: 通过lintstaged对scss文件进行增量校验,避免npm run stylelint全量校验的时间浪费 #11023

Closed ranwawa closed 1 month ago

ranwawa commented 1 month ago

Why

项目中并无lintstaged配置文件,所以huksy中的npx lint-staged命令并未实际执行任何操作,而npm run stylelint会在每次commit时对packages下的所有scss进行检验,效率较低

github-actions[bot] commented 1 month ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

2betop commented 1 month ago

thx