Преглед на файлове

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 години
родител
ревизия
e3b8a3a9b6
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      packages/ckeditor5-heading/package.json

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

@@ -31,7 +31,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",
@@ -52,14 +53,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": [