Browse Source

Internal: Enabled stylelint in the package.

Aleksander Nowodzinski 6 years ago
parent
commit
d77d8ed94b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/ckeditor5-build-balloon-block/package.json

+ 5 - 0
packages/ckeditor5-build-balloon-block/package.json

@@ -51,6 +51,7 @@
     "eslint-config-ckeditor5": "^2.0.0",
     "husky": "^1.3.1",
     "lint-staged": "^7.0.0",
+    "stylelint": "^11.1.1",
     "postcss-loader": "^3.0.0",
     "raw-loader": "^3.1.0",
     "style-loader": "^1.0.0",
@@ -73,11 +74,15 @@
   "scripts": {
     "build": "webpack --mode production",
     "lint": "eslint --quiet '**/*.js'",
+    "stylelint": "stylelint --quiet '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": {
     "**/*.js": [
       "eslint --quiet"
+    ],
+    "**/*.css": [
+      "stylelint --quiet"
     ]
   },
   "eslintIgnore": [