瀏覽代碼

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 年之前
父節點
當前提交
9f145b831a
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      packages/ckeditor5-core/package.json

+ 4 - 3
packages/ckeditor5-core/package.json

@@ -44,7 +44,8 @@
     "eslint-config-ckeditor5": "^2.0.0",
     "husky": "^1.3.1",
     "lint-staged": "^7.0.0",
-    "stylelint": "^11.1.1"
+    "stylelint": "^11.1.1",
+    "stylelint-config-recommended": "^3.0.0"
   },
   "engines": {
     "node": ">=8.0.0",
@@ -65,14 +66,14 @@
   ],
   "scripts": {
     "lint": "eslint --quiet '**/*.js'",
-    "stylelint": "stylelint --quiet 'theme/**/*.css' 'docs/**/*.css'"
+    "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'"
   },
   "lint-staged": {
     "**/*.js": [
       "eslint --quiet"
     ],
     "**/*.css": [
-      "stylelint --quiet"
+      "stylelint --quiet --allow-empty-input"
     ]
   },
   "eslintIgnore": [