Sfoglia il codice sorgente

Internal: Enabled stylelint in the package.

Aleksander Nowodzinski 6 anni fa
parent
commit
7aa9208df5
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      packages/ckeditor5-horizontal-line/package.json

+ 7 - 2
packages/ckeditor5-horizontal-line/package.json

@@ -25,7 +25,8 @@
     "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"
   },
   "engines": {
     "node": ">=8.0.0",
@@ -45,11 +46,15 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'"
+    "lint": "eslint --quiet '**/*.js'",
+    "stylelint": "stylelint --quiet 'theme/**/*.css' 'docs/**/*.css'"
   },
   "lint-staged": {
     "**/*.js": [
       "eslint --quiet"
+    ],
+    "**/*.css": [
+      "stylelint --quiet"
     ]
   },
   "eslintIgnore": [