Skip to content

Commit

Permalink
add stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgul4enko committed Sep 12, 2019
1 parent 0c64317 commit c077e5e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 27 deletions.
39 changes: 13 additions & 26 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,28 @@
{
"extends": [
"stylelint-config-standard"
"stylelint-config-standard",
"stylelint-config-prettier"
],
"fix": true,
"formatter": "verbose",
"plugins": [
"stylelint-scss"
],
"rules": {
"selector-list-comma-newline-after": "always",
"selector-type-case": "lower",
"indentation": 2,
"selector-list-comma-newline-after": "never-multi-line",
"rule-empty-line-before": "always",
"at-rule-whitelist": ["include", "import", "keyframes", "mixin", "extend"],
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"declaration-empty-line-before": "never",
"rule-empty-line-before": [ "always-multi-line", {
"except": ["inside-block"],
"ignore": ["after-comment"]
}],
"no-descending-specificity": true,
"declaration-block-no-duplicate-properties": true,
"declaration-colon-space-after": "always-single-line",
"at-rule-whitelist": ["include", "import", "keyframes", "mixin", "extend"],
"string-quotes": "double",
"no-duplicate-selectors": true,
"color-named": "never",
"selector-attribute-quotes": "always",
"declaration-block-trailing-semicolon": "always",
"declaration-colon-space-before": "never",
"property-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"number-leading-zero": "always",
"function-url-quotes": "always",
"font-family-name-quotes": "always-unless-keyword",
"at-rule-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"max-empty-lines": 2
"no-missing-end-of-source-newline": true,
"no-descending-specificity": null,
"color-hex-case": "lower",
"color-hex-length": "short",
"declaration-block-no-duplicate-properties": null,
"no-duplicate-selectors": null,
"declaration-colon-space-after": "always-single-line"
},
"syntax": "scss"
}
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
All notable changes to this project will be documented in this file.

## [4.0.0-beta]
- add sentry
- add sentry
- add stylelint
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
"jest": "^24.1.0",
"jest-cli": "^24.1.0",
"jest-enzyme": "^7.0.1",
"postcss": "^7.0.17",
"postcss-inline-svg": "^3.0.0",
"prettier": "^1.18.2",
"react-test-renderer": "^16.8.3",
"redux-mock-store": "^1.5.1",
"reload-html-webpack-plugin": "^0.1.2",
Expand Down

0 comments on commit c077e5e

Please sign in to comment.