Merge pull request #2900 from matrix-org/dbkr/stylelint

Add stylelint
pull/21833/head
David Baker 2019-04-09 15:18:52 +01:00 committed by GitHub
commit 5542e305fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1090 additions and 17 deletions

7
.stylelintrc.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
"extends": "stylelint-config-standard",
"rules": {
"indentation": 4,
"comment-empty-line-before": null,
}
}

View File

@ -49,6 +49,7 @@
"lint": "eslint src/",
"lintall": "eslint src/ test/",
"lintwithexclusions": "eslint --max-warnings 0 --ignore-path .eslintignore.errorfiles src test",
"stylelint": "stylelint res/css/**/*.scss",
"clean": "rimraf lib",
"prepare": "yarn clean && yarn build && git rev-parse HEAD > git-revision.txt",
"test": "karma start --single-run=true --browsers VectorChromeHeadless",
@ -149,6 +150,8 @@
"rimraf": "^2.4.3",
"sinon": "^5.0.7",
"source-map-loader": "^0.2.3",
"stylelint": "^9.10.1",
"stylelint-config-standard": "^18.2.0",
"walk": "^2.3.9",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1"

1097
yarn.lock

File diff suppressed because it is too large Load Diff