Closed andykenward closed 5 years ago
+1 :+1:
+1 👍
@timothyneiljohnson Now that Github has reactions, please use those to +1 in the future instead of adding comment noise. Thanks!
From the README.md
'indentation': 2,
'selector-no-id': true,
'selector-list-comma-newline-after': 'always',
{
in rule declarations: 'block-opening-brace-space-before': 'always',
:
character: 'declaration-colon-space-after': 'always',
and 'declaration-colon-space-before': 'never',
}
of rule declarations on a new line: 'block-closing-brace-newline-before': 'always',
'rule-non-nested-empty-line-before': ['always', { ignore: ['after-comment'], }],
'comment-empty-line-before': ['always', {ignore: ['stylelint-commands'],}],
no-browser-hacks
rule with the warning
severitystylelint-selector-bem-pattern
see https://github.com/davidtheclark/stylelint-selector-bem-pattern and https://github.com/postcss/postcss-bem-linter0
instead of none
to specify that a style has no border: Implemented using stylelint plugin stylelint-value-border-zero
with
"value-border-zero": { "convention": "0" // Or "none" }
, see https://github.com/timothyneiljohnson/stylelint-value-border-zerodeclaration-block-properties-order
though a new option would be neded for the rule to make @includes
last in the list http://stylelint.io/user-guide/rules/declaration-block-properties-order/stylelint-scss
and a regex with the dollar-variable-pattern
ruleat-extend-disallow
https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/at-extend-no-missing-placeholder/README.md'max-nesting-depth': 3,
selector-class-pattern
with a regular expression matching your pattern@lencioni Stylelint is already used by:
Using Stylelint is especially reasonable, because Stylelint copy ESLint architecture. If you like ESLint, you will love Stylelint too — same benefits.
Hello, there hasn't been much action in this thread and I'm hoping to revive it. Is airbnb open to a pr for this?
Stylelint become the most popular CSS linter from npm: http://www.npmtrends.com/csslint-vs-csscomb-vs-stylelint
@michaelBenin yes, as long as it includes the right travis config so that it can be automatically verified :-)
@michaelBenin The pull request is in #23, I'm happy to refresh it, update, add whatever Travis CI configuration is needed etc
Going to close this as its been a few years.
Would be great to have a shared config file for stylelint.io with these rules.
It is written in JavaScript vs scss-lint that relies on Ruby.
Article about it