瀏覽代碼

Internal: Allowed empty input in the stylelint script to avoid errors when no files are found. Added missing stylelint-config-recommended dependency.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
b21f5abd8f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-build-balloon-block/package.json

+ 2 - 2
packages/ckeditor5-build-balloon-block/package.json

@@ -74,7 +74,7 @@
   "scripts": {
   "scripts": {
     "build": "webpack --mode production",
     "build": "webpack --mode production",
     "lint": "eslint --quiet '**/*.js'",
     "lint": "eslint --quiet '**/*.js'",
-    "stylelint": "stylelint --quiet 'theme/**/*.css' 'docs/**/*.css'",
+    "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'",
     "preversion": "npm run build; if [ -n \"$(git status src/ckeditor.js build/ --porcelain)\" ]; then git add -u src/ckeditor.js build/ && git commit -m 'Internal: Build.'; fi"
     "preversion": "npm run build; if [ -n \"$(git status src/ckeditor.js build/ --porcelain)\" ]; then git add -u src/ckeditor.js build/ && git commit -m 'Internal: Build.'; fi"
   },
   },
   "lint-staged": {
   "lint-staged": {
@@ -82,7 +82,7 @@
       "eslint --quiet"
       "eslint --quiet"
     ],
     ],
     "**/*.css": [
     "**/*.css": [
-      "stylelint --quiet"
+      "stylelint --quiet --allow-empty-input"
     ]
     ]
   },
   },
   "eslintIgnore": [
   "eslintIgnore": [