Browse Source

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 years ago
parent
commit
8bd8a45d0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-build-classic/package.json

+ 2 - 2
packages/ckeditor5-build-classic/package.json

@@ -73,7 +73,7 @@
   "scripts": {
     "build": "webpack --mode production",
     "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"
   },
   "lint-staged": {
@@ -81,7 +81,7 @@
       "eslint --quiet"
     ],
     "**/*.css": [
-      "stylelint --quiet"
+      "stylelint --quiet --allow-empty-input"
     ]
   },
   "eslintIgnore": [