如何对皮棉进行多个图案分级

  • 本文关键字: lint husky lint-staged
  • 更新时间 :
  • 英文 :


例如,我在.rb和.js文件中进行了匹配。

例如**/*.{js,rb}

例如,还希望在GemfileRakefile上进行匹配。

解决方案是递归使用{},例如

"lint-staged": {
"{Gemfile,Rakefile,**/*.{js,rb,rake,ru}}": [
"./node_modules/prettier/bin-prettier.js --write"
],
"**/*.js": [
"node_modules/eslint/bin/eslint.js"
],
"{Gemfile,Rakefile,**/*.{rb,rake,ru}}": [
"bundle exec rubocop -a"
]
}

相关内容

  • 没有找到相关文章

最新更新