Internal: Enabled stylelint in the package.

parent 9ee39e53
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
"eslint-config-ckeditor5": "^2.0.0", "eslint-config-ckeditor5": "^2.0.0",
"husky": "^1.3.1", "husky": "^1.3.1",
"lint-staged": "^7.0.0", "lint-staged": "^7.0.0",
"stylelint": "^11.1.1",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"raw-loader": "^3.1.0", "raw-loader": "^3.1.0",
"style-loader": "^1.0.0", "style-loader": "^1.0.0",
...@@ -75,11 +76,15 @@ ...@@ -75,11 +76,15 @@
"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'",
"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": {
"**/*.js": [ "**/*.js": [
"eslint --quiet" "eslint --quiet"
],
"**/*.css": [
"stylelint --quiet"
] ]
}, },
"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