8
0
Pārlūkot izejas kodu

Merge pull request #3 from ckeditor/i/5816

Internal: Enabled the "stylelint" task in the repository (see ckeditor/ckeditor5#5816).
Aleksander Nowodzinski 6 gadi atpakaļ
vecāks
revīzija
5446cc5bb5

+ 3 - 0
packages/ckeditor5-code-block/.stylelintrc

@@ -0,0 +1,3 @@
+{
+	"extends": "stylelint-config-ckeditor5"
+}

+ 8 - 2
packages/ckeditor5-code-block/package.json

@@ -29,7 +29,9 @@
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^2.0.0",
     "husky": "^1.3.1",
-    "lint-staged": "^7.0.0"
+    "lint-staged": "^7.0.0",
+    "stylelint": "^11.1.1",
+    "stylelint-config-ckeditor5": "^1.0.0"
   },
   "engines": {
     "node": ">=8.0.0",
@@ -49,11 +51,15 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'"
+    "lint": "eslint --quiet '**/*.js'",
+    "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'"
   },
   "lint-staged": {
     "**/*.js": [
       "eslint --quiet"
+    ],
+    "**/*.css": [
+      "stylelint --quiet --allow-empty-input"
     ]
   },
   "eslintIgnore": [