Internal: Allowed empty input in the stylelint script to avoid errors when no...

Internal: Allowed empty input in the stylelint script to avoid errors when no files are found. Added missing stylelint-config-recommended dependency.
parent 6f48b2ee
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,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": {
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"eslint --quiet" "eslint --quiet"
], ],
"**/*.css": [ "**/*.css": [
"stylelint --quiet" "stylelint --quiet --allow-empty-input"
] ]
}, },
"eslintIgnore": [ "eslintIgnore": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment