切換語言為:簡體
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
  • 2051
  • 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.