瀏覽代碼

Internal: Enabled stylelint in the project.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
96ae386d39
共有 2 個文件被更改,包括 553 次插入12 次删除
  1. 6 0
      package.json
  2. 547 12
      yarn.lock

+ 6 - 0
package.json

@@ -91,6 +91,7 @@
     "glob": "^7.1.2",
     "husky": "^1.3.1",
     "lint-staged": "^7.0.0",
+    "stylelint": "^11.1.1",
     "mini-css-extract-plugin": "^0.4.0",
     "minimatch": "^3.0.4",
     "mrgit": "^1.0.0",
@@ -100,6 +101,7 @@
     "react": "^16.9.0",
     "react-dom": "^16.9.0",
     "style-loader": "^1.0.0",
+    "stylelint": "^11.1.1",
     "svgo": "^1.1.0",
     "uglifyjs-webpack-plugin": "^1.3.0",
     "umberto": "^1.0.0",
@@ -119,6 +121,7 @@
   },
   "scripts": {
     "lint": "eslint --quiet '**/*.js'",
+    "stylelint": "stylelint --quiet 'packages/**/*.css' 'docs/**/*.css'",
     "test": "node --max_old_space_size=4096 node_modules/@ckeditor/ckeditor5-dev-tests/bin/test.js",
     "manual": "node --max_old_space_size=4096 node_modules/@ckeditor/ckeditor5-dev-tests/bin/test-manual.js",
     "bootstrap": "mrgit sync && yarn install",
@@ -143,6 +146,9 @@
   "lint-staged": {
     "**/*.js": [
       "eslint --quiet"
+    ],
+    "**/*.css": [
+      "stylelint --quiet"
     ]
   },
   "eslintIgnore": [

文件差異過大導致無法顯示
+ 547 - 12
yarn.lock


部分文件因文件數量過多而無法顯示