Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"rules": {
"at-rule-empty-line-before": ["always", {
"except": ["blockless-group", "first-nested"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing the blockless-after-same-name-blockless for the sequencial @import expressions.

"except": ["first-nested", "blockless-after-same-name-blockless"],
"ignore": ["after-comment"]
}],
"block-closing-brace-newline-after": "always",
Expand All @@ -27,7 +27,6 @@
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-properties-order": "alphabetical",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
Expand All @@ -37,6 +36,7 @@
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-no-important": true,
"font-family-no-duplicate-names" : true,
"font-family-name-quotes": "always-where-recommended",
"font-weight-notation": "numeric",
"function-calc-no-unspaced-operator": true,
Expand All @@ -58,25 +58,21 @@
"max-nesting-depth": 3,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-no-missing-punctuation": true,
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"media-query-parentheses-space-inside": "never",
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"no-eol-whitespace": true,
"no-invalid-double-slash-comments": true,
"no-missing-eof-newline": true,
"no-unknown-animations": true,
"number-leading-zero": "never",
"number-max-precision": 2,
"number-no-trailing-zeros": true,
"rule-non-nested-empty-line-before": ["always", {
"ignore": ["after-comment"]
}],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one changed to rule-empty-line-before and I think it's mandatory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I will replace that.

"property-no-unknown": true,
"rule-empty-line-before" : "always",
"scss/at-import-no-partial-leading-underscore": true,
"scss/selector-no-redundant-nesting-selector": true,
"selector-combinator-space-after": "always",
Expand All @@ -86,15 +82,18 @@
"selector-list-comma-space-after": "always-single-line",
"selector-list-comma-space-before": "never",
"selector-max-specificity": "0,4,0",
"selector-no-id": true,
"selector-no-type": true,
"selector-no-universal": true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except the no-type, I think it makes sense to keep this.

@liciniofs liciniofs Oct 10, 2017

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

"selector-max-type": 2,
"selector-no-qualifying-type": [true, {
"ignore": "attribute"
}],
"selector-max-id": 0,
"selector-no-vendor-prefix": true,
"selector-pseudo-element-colon-notation": "double",
"selector-type-case": "lower",
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"string-quotes": "double",
"time-no-imperceptible": true,
"unit-no-unknown" : true,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-newline-before": "never-multi-line",
"value-list-comma-space-after": "always-single-line",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"gulp-imagemin": "^3.0.1",
"gulp-phpunit": "^0.14.0",
"gulp-plumber": "^1.1.0",
"gulp-postcss": "^6.1.1",
"gulp-postcss": "^7.0.0",
"gulp-sass": "^2.3.1",
"gulp-sort": "^2.0.0",
"gulp-sourcemaps": "^1.6.0",
Expand All @@ -91,7 +91,7 @@
"react-transform-hmr": "^1.0.4",
"require-dir": "^0.3.0",
"sinon": "^1.17.4",
"stylelint": "^6.5.1",
"stylelint": "^8.2.0",
"stylelint-scss": "^1.0.0",
"susy": "^2.2.12",
"uglifyify": "^3.0.1",
Expand Down