Commit adfe2cdf authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Switch to stylelint-high-performance-animation

parent 06c4fc22
This diff is collapsed.
...@@ -4,23 +4,23 @@ module.exports = { ...@@ -4,23 +4,23 @@ module.exports = {
'stylelint-declaration-strict-value', 'stylelint-declaration-strict-value',
'stylelint-images', 'stylelint-images',
'stylelint-order', 'stylelint-order',
'stylelint-performance-animation' 'stylelint-high-performance-animation'
], ],
'rules': { 'rules': {
'at-rule-empty-line-before': [ 'always', { 'at-rule-empty-line-before': ['always', {
except: [ except: [
'blockless-after-same-name-blockless', 'blockless-after-same-name-blockless',
'first-nested' 'first-nested'
], ],
ignore: ['after-comment'], ignore: ['after-comment'],
ignoreAtRules: ['else'] ignoreAtRules: ['else']
} ], }],
'at-rule-name-case': 'lower', 'at-rule-name-case': 'lower',
'at-rule-name-space-after': 'always-single-line', 'at-rule-name-space-after': 'always-single-line',
'at-rule-semicolon-newline-after': 'always', 'at-rule-semicolon-newline-after': 'always',
'block-closing-brace-empty-line-before': 'never', 'block-closing-brace-empty-line-before': 'never',
'block-closing-brace-newline-after': [ 'always', { 'block-closing-brace-newline-after': ['always', {
ignoreAtRules: [ 'if', 'else' ] ignoreAtRules: ['if', 'else']
}], }],
'block-closing-brace-newline-before': 'always-multi-line', 'block-closing-brace-newline-before': 'always-multi-line',
'block-closing-brace-space-before': 'always-single-line', 'block-closing-brace-space-before': 'always-single-line',
...@@ -31,13 +31,13 @@ module.exports = { ...@@ -31,13 +31,13 @@ module.exports = {
'color-hex-case': 'upper', 'color-hex-case': 'upper',
'color-hex-length': 'short', 'color-hex-length': 'short',
'color-no-invalid-hex': true, 'color-no-invalid-hex': true,
'comment-empty-line-before': [ 'always', { 'comment-empty-line-before': ['always', {
except: ['first-nested'], except: ['first-nested'],
ignore: ['stylelint-commands'] ignore: ['stylelint-commands']
} ], }],
'comment-no-empty': true, 'comment-no-empty': true,
'comment-whitespace-inside': 'always', 'comment-whitespace-inside': 'always',
'custom-property-empty-line-before': [ 'always', { 'custom-property-empty-line-before': ['always', {
except: [ except: [
'after-custom-property', 'after-custom-property',
'first-nested' 'first-nested'
...@@ -46,15 +46,15 @@ module.exports = { ...@@ -46,15 +46,15 @@ module.exports = {
'after-comment', 'after-comment',
'inside-single-line-block' 'inside-single-line-block'
] ]
} ], }],
'declaration-bang-space-after': 'never', 'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always', 'declaration-bang-space-before': 'always',
'declaration-block-no-duplicate-properties': [ true, { 'declaration-block-no-duplicate-properties': [true, {
ignore: ['consecutive-duplicates-with-different-values'] ignore: ['consecutive-duplicates-with-different-values']
} ], }],
'declaration-block-no-redundant-longhand-properties': [ true, { 'declaration-block-no-redundant-longhand-properties': [true, {
ignoreShorthands: ['/flex/'] ignoreShorthands: ['/flex/']
} ], }],
'declaration-block-no-shorthand-property-overrides': true, 'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-semicolon-newline-after': 'always-multi-line', 'declaration-block-semicolon-newline-after': 'always-multi-line',
'declaration-block-semicolon-space-after': 'always-single-line', 'declaration-block-semicolon-space-after': 'always-single-line',
...@@ -82,9 +82,9 @@ module.exports = { ...@@ -82,9 +82,9 @@ module.exports = {
'keyframe-declaration-no-important': true, 'keyframe-declaration-no-important': true,
'length-zero-no-unit': true, 'length-zero-no-unit': true,
'max-empty-lines': 1, 'max-empty-lines': 1,
'max-nesting-depth': [ 6, { 'max-nesting-depth': [6, {
ignoreAtRules: ['media'] ignoreAtRules: ['media']
} ], }],
'media-feature-colon-space-after': 'always', 'media-feature-colon-space-after': 'always',
'media-feature-colon-space-before': 'never', 'media-feature-colon-space-before': 'never',
'media-feature-name-case': 'lower', 'media-feature-name-case': 'lower',
...@@ -105,10 +105,10 @@ module.exports = { ...@@ -105,10 +105,10 @@ module.exports = {
'number-no-trailing-zeros': true, 'number-no-trailing-zeros': true,
'property-case': 'lower', 'property-case': 'lower',
'property-no-unknown': true, 'property-no-unknown': true,
'rule-empty-line-before': [ 'always', { 'rule-empty-line-before': ['always', {
except: ['first-nested'], except: ['first-nested'],
ignore: ['after-comment'] ignore: ['after-comment']
} ], }],
'selector-attribute-brackets-space-inside': 'never', 'selector-attribute-brackets-space-inside': 'never',
'selector-attribute-operator-space-after': 'never', 'selector-attribute-operator-space-after': 'never',
'selector-attribute-operator-space-before': 'never', 'selector-attribute-operator-space-before': 'never',
...@@ -127,9 +127,9 @@ module.exports = { ...@@ -127,9 +127,9 @@ module.exports = {
'selector-pseudo-element-no-unknown': true, 'selector-pseudo-element-no-unknown': true,
'selector-type-case': 'lower', 'selector-type-case': 'lower',
'selector-type-no-unknown': true, 'selector-type-no-unknown': true,
'selector-class-pattern': [ '[a-z]+', { 'selector-class-pattern': ['[a-z]+', {
resolveNestedSelectors: true resolveNestedSelectors: true
} ], }],
'shorthand-property-no-redundant-values': true, 'shorthand-property-no-redundant-values': true,
'string-no-newline': true, 'string-no-newline': true,
'unit-case': 'lower', 'unit-case': 'lower',
...@@ -138,9 +138,9 @@ module.exports = { ...@@ -138,9 +138,9 @@ module.exports = {
'value-list-comma-space-after': 'always-single-line', 'value-list-comma-space-after': 'always-single-line',
'value-list-comma-space-before': 'never', 'value-list-comma-space-before': 'never',
'value-list-max-empty-lines': 0, 'value-list-max-empty-lines': 0,
'scss/double-slash-comment-empty-line-before': [ 'always', { 'scss/double-slash-comment-empty-line-before': ['always', {
ignore: ['between-comments', 'stylelint-commands'] ignore: ['between-comments', 'stylelint-commands']
} ], }],
'scss/at-else-empty-line-before': 'never', 'scss/at-else-empty-line-before': 'never',
'scss/at-import-no-partial-leading-underscore': true, 'scss/at-import-no-partial-leading-underscore': true,
'scss/at-mixin-argumentless-call-parentheses': 'never', 'scss/at-mixin-argumentless-call-parentheses': 'never',
...@@ -148,7 +148,7 @@ module.exports = { ...@@ -148,7 +148,7 @@ module.exports = {
'scss/dollar-variable-colon-space-after': 'always', 'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never', 'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-no-missing-interpolation': true, 'scss/dollar-variable-no-missing-interpolation': true,
'scale-unlimited/declaration-strict-value': [ '/color/', { 'scale-unlimited/declaration-strict-value': ['/color/', {
ignoreKeywords: 'transparent' ignoreKeywords: 'transparent'
}], }],
'images/broken': true, 'images/broken': true,
...@@ -156,9 +156,9 @@ module.exports = { ...@@ -156,9 +156,9 @@ module.exports = {
'margin', 'margin',
'padding' 'padding'
], ],
'plugin/no-low-performance-animation': [ true, { 'plugin/no-low-performance-animation-properties': [true, {
ignore: [ 'background', 'background-color', 'color' ] ignore: 'paint-properties'
} ] }]
} }
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment