切换语言为:繁体
git commit报错Error: All input files were ignored because of the ignore pattern.

git commit报错Error: All input files were ignored because of the ignore pattern.

  • 爱糖宝
  • 2024-09-13
  • 2050
  • 0
  • 0

今天在git commit的时候遇到如下报错

git commit报错Error: All input files were ignored because of the ignore pattern.

于是找到package.json文件中lint-staged下的stylelint,把他的--fix都修改成了--allow-empty-input

    "*.vue": [
      "prettier --write",
      "eslint --fix",
      "stylelint --allow-empty-input"
    ],
    "*.{scss,less,styl,html}": [
      "prettier --write",
      "stylelint --allow-empty-input"
    ],

完美解决

0条评论

您的电子邮件等信息不会被公开,以下所有项均必填

OK! You can skip this field.