Skip to content

Commit

Permalink
fix(stylelint): fix stylelint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
klxq committed Apr 5, 2020
1 parent a7b276f commit 3ec9b24
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"extends": "stylelint-config-standard"
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-scss"
],
"rules": {
"no-empty-source": null,
"selector-type-no-unknown": null,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true
},
"ignore": [
"custom-elements",
"default-namespace"
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"puppeteer": "^2.1.1",
"stylelint": "^13.3.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-scss": "^3.16.0",
"ts-node": "~8.3.0",
"tslint": "~5.18.0",
"typescript": "~3.7.5"
Expand All @@ -90,7 +91,7 @@
}
},
"lint-staged": {
"src/app/*.{css,scss}": [
"src/app/**/*.{css,scss}": [
"stylelint --syntax=scss",
"prettier --parser --write"
],
Expand Down
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10923,6 +10923,17 @@ stylelint-config-standard@^20.0.0:
dependencies:
stylelint-config-recommended "^3.0.0"

stylelint-scss@^3.16.0:
version "3.16.0"
resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-3.16.0.tgz#6928fe57bcfc924110d09847c1f720472a9b7bd6"
integrity sha512-dAWs/gagdPYO3VDdvgRv5drRBMcWI4E//z3AXPAY1qYkSdXCEVJtEW+R9JtinG0U2rcJIu5XWaVddPQeaaufzw==
dependencies:
lodash "^4.17.15"
postcss-media-query-parser "^0.2.3"
postcss-resolve-nested-selector "^0.1.1"
postcss-selector-parser "^6.0.2"
postcss-value-parser "^4.0.2"

stylelint@^13.3.0:
version "13.3.0"
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-13.3.0.tgz#06a5e3d34e99d1d02891bc827f660f2bd2e79897"
Expand Down

0 comments on commit 3ec9b24

Please sign in to comment.