Skip to content

Commit

Permalink
Update to Stylelint 14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
efedorenko committed Jan 17, 2022
1 parent 9a53bdd commit 52cfd19
Show file tree
Hide file tree
Showing 3 changed files with 2,420 additions and 1,047 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: 'stylelint-config-standard',
extends: 'stylelint-config-standard-scss',
plugins: [
'stylelint-order',
'stylelint-scss'
Expand Down Expand Up @@ -34,6 +34,7 @@ module.exports = {
// Value
'value-keyword-case': null, // 'lower' in standard
'value-no-vendor-prefix': [true, {'severity': 'warning'}],
'length-zero-no-unit': [true, {'severity': 'warning'}],

// Property
'property-no-vendor-prefix': [true, {'severity': 'warning'}],
Expand All @@ -53,6 +54,7 @@ module.exports = {
'block-no-empty': null, // true in recommended

// Selector
'selector-class-pattern': null,
'selector-max-universal': 0,
'selector-no-vendor-prefix': [true, {'severity': 'warning'}],
'selector-attribute-quotes': 'always',
Expand All @@ -70,6 +72,7 @@ module.exports = {
// General / Sheet
indentation: null, // 2 in standard
'max-empty-lines': 3, // 1 in standard
'max-line-length': null,
'rule-empty-line-before': null, // true in standard
'no-duplicate-selectors': [true, {'severity': 'warning'}], // true in recommended
'no-descending-specificity': null, // true in recommended
Expand All @@ -79,6 +82,8 @@ module.exports = {
// Plugin stylelint-scss
// ---------------------

'scss/no-global-function-names': null,

// @each
'scss/at-each-key-value-single-line': true,

Expand All @@ -95,6 +100,7 @@ module.exports = {
// $ variable
'scss/dollar-variable-colon-space-after': 'at-least-one-space',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-empty-line-before': null,

// Selector
'scss/selector-no-redundant-nesting-selector': true,
Expand Down Expand Up @@ -313,7 +319,6 @@ module.exports = {
// no-duplicate-at-import-rules - recommended
// keyframes-name-pattern
// no-empty-first-line
// function-calc-no-invalid - recommended
// alpha-value-notation
// color-function-notation
// hue-degree-notation
Loading

0 comments on commit 52cfd19

Please sign in to comment.