Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
414 lines (341 sloc) 10.5 KB
plugins:
-
'stylelint-scss'
extends:
- './node_modules/prettier-stylelint/config.js'
ignoreFiles:
- './src/assets/drizzle/**/*.css'
rules:
#
# Here are all the rules within stylelint, grouped first by category
# and then by the thing they apply to.
##
#
# Possible errors
##
# Color
'color-no-invalid-hex': true
# Font family
'font-family-no-duplicate-names': true
'font-family-no-missing-generic-family-keyword': true
# Function
'function-calc-no-unspaced-operator': true
'function-linear-gradient-no-nonstandard-direction': true
# String
'string-no-newline': true
# Unit
'unit-no-unknown':
- true
- ignoreUnits:
- "/^[$]/"
# Property
'property-no-unknown': true
# Keyframe declaration
'keyframe-declaration-no-important': true
# Declaration block
'declaration-block-no-duplicate-properties':
- true
- ignore:
- 'consecutive-duplicates-with-different-values'
'declaration-block-no-shorthand-property-overrides': true
# Block
'block-no-empty': true
# Selector
'selector-pseudo-class-no-unknown': true
'selector-pseudo-element-no-unknown': true
'selector-type-no-unknown': null
# Media feature
'media-feature-name-no-unknown': true
# Comment
'comment-no-empty': true
# General / Sheet
'no-descending-specificity': null
'no-duplicate-at-import-rules': true
'no-duplicate-selectors': true
'no-empty-source': true
'no-extra-semicolons': true
'no-invalid-double-slash-comments': true
#
# Limit language features
##
#Color
'color-named': 'never'
'color-no-hex': null
# Function
'function-blacklist': null
'function-url-no-scheme-relative': true
'function-url-scheme-blacklist': null
'function-url-scheme-whitelist': null
'function-whitelist': null
# Number
'number-max-precision': null
# Time
'time-min-milliseconds': null
# Unit
'unit-blacklist': null
'unit-whitelist': null
# Shorthand property
'shorthand-property-no-redundant-values': true
# Value
'value-no-vendor-prefix': null
# Custom property
'custom-property-pattern': null
# Property
'property-blacklist': null
'property-no-vendor-prefix': null
'property-whitelist': null
# Declaration
'declaration-block-no-redundant-longhand-properties': null
'declaration-no-important': null
'declaration-property-unit-blacklist': null
'declaration-property-unit-whitelist': null
'declaration-property-value-blacklist': null
'declaration-property-value-whitelist': null
# Declaration block
'declaration-block-single-line-max-declarations': 1
# Selector
'selector-attribute-operator-blacklist': null
'selector-attribute-operator-whitelist': null
'selector-class-pattern':
- '^sprk-((c|o|b|u|is|js|has)-)?([A-Z0-9][a-z0-9]+)+(__([a-z0-9]+-?)*[a-z0-9])?(--([a-z0-9]+-?)*[a-z0-9])?((:{1,2}[A-z]+)?(?!\\@[A-z]+))[a-z](\\@[A-z]+)?(:{1,2}[A-z]+)?$'
- resolveNestedSelectors:
- true
'selector-id-pattern': null
'selector-max-attribute': null
'selector-max-class': null
'selector-max-combinators': null
'selector-max-compound-selectors': null
'selector-max-empty-lines': 0
'selector-max-id': 0
'selector-max-specificity': null
'selector-max-type': null
'selector-max-universal': 1
'selector-nested-pattern': null
'selector-no-qualifying-type': null
'selector-no-vendor-prefix': null
'selector-pseudo-class-blacklist': null
'selector-pseudo-class-whitelist': null
# Media feature
'media-feature-name-blacklist': null
'media-feature-name-no-vendor-prefix': null
'media-feature-name-whitelist': null
# Custom media
'custom-media-pattern': null
# At-rule
'at-rule-blacklist': null
'at-rule-no-vendor-prefix': null
'at-rule-whitelist': null
# Comment
'comment-word-blacklist': null
# General / Sheet
'max-nesting-depth': 2
'no-unknown-animations': null
#
# Stylistic issues
##
# Color
'color-hex-case': 'lower'
'color-hex-length': 'short'
# Font family
'font-family-name-quotes': 'always-where-recommended'
# Font weight
'font-weight-notation': 'named-where-possible'
# Function
'function-comma-newline-after': null
'function-comma-newline-before': null
'function-comma-space-after': null
'function-comma-space-before': 'never'
'function-max-empty-lines': 0
'function-name-case': 'lower'
'function-parentheses-newline-inside': null
'function-parentheses-space-inside': null
'function-url-quotes': 'always'
'function-whitespace-after': 'always'
# Number
'number-leading-zero': 'always'
'number-no-trailing-zeros': true
# String
'string-quotes': 'single'
# Length
'length-zero-no-unit': true
# Unit
'unit-case': 'lower'
# Value
'value-keyword-case': null
# Value list
'value-list-comma-newline-after': 'always-multi-line'
'value-list-comma-newline-before': null
'value-list-comma-space-after': 'always-single-line'
'value-list-comma-space-before': 'never'
'value-list-max-empty-lines': 0
# Custom property
'custom-property-empty-line-before':
- 'always'
- except:
- 'after-comment'
- 'after-custom-property'
- 'first-nested'
# Property
'property-case': 'lower'
# Declaration
'declaration-bang-space-after': 'never'
'declaration-bang-space-before': 'always'
'declaration-colon-newline-after': null
'declaration-colon-space-after': 'always'
'declaration-colon-space-before': 'never'
'declaration-empty-line-before':
- 'always'
- except:
- 'after-comment'
- 'after-declaration'
- 'first-nested'
# Declaration block
'declaration-block-semicolon-newline-after': 'always'
'declaration-block-semicolon-newline-before': null
'declaration-block-semicolon-space-after': 'always-single-line'
'declaration-block-semicolon-space-before': 'never'
'declaration-block-trailing-semicolon': 'always'
# Block
'block-closing-brace-empty-line-before': 'never'
'block-closing-brace-newline-after':
- 'always'
- ignoreAtRules:
- 'if'
- 'else'
'block-closing-brace-newline-before': 'always'
'block-closing-brace-space-after': null
'block-closing-brace-space-before': null
'block-opening-brace-newline-after': 'always'
'block-opening-brace-newline-before': null
'block-opening-brace-space-after': null
'block-opening-brace-space-before': 'always'
# Selector
'selector-attribute-brackets-space-inside': 'never'
'selector-attribute-operator-space-after': 'never'
'selector-attribute-operator-space-before': 'never'
'selector-attribute-quotes': 'always'
'selector-combinator-space-after': 'always'
'selector-combinator-space-before': 'always'
'selector-descendant-combinator-no-non-space': null
'selector-pseudo-class-case': 'lower'
'selector-pseudo-class-parentheses-space-inside': 'never'
'selector-pseudo-element-case': 'lower'
'selector-pseudo-element-colon-notation': 'double'
'selector-type-case': 'lower'
# Selector list
'selector-list-comma-newline-after': 'always'
'selector-list-comma-newline-before': 'never-multi-line'
'selector-list-comma-space-after': null
'selector-list-comma-space-before': 'never'
# Rule
'rule-empty-line-before':
- 'always-multi-line'
- except:
- 'after-single-line-comment'
- 'first-nested'
# Media feature
'media-feature-colon-space-after': 'always'
'media-feature-colon-space-before': 'never'
'media-feature-name-case': 'lower'
'media-feature-parentheses-space-inside': 'never'
'media-feature-range-operator-space-after': 'always'
'media-feature-range-operator-space-before': 'always'
# Media query list
'media-query-list-comma-newline-after': 'never-multi-line'
'media-query-list-comma-newline-before': 'never-multi-line'
'media-query-list-comma-space-after': 'always'
'media-query-list-comma-space-before': 'never'
# At-rule
'at-rule-empty-line-before':
- 'always'
- except:
- 'first-nested'
- 'after-same-name'
- ignore:
- 'after-comment'
'at-rule-name-case': 'lower'
'at-rule-name-newline-after': null
'at-rule-name-space-after': 'always'
'at-rule-semicolon-newline-after': 'always'
'at-rule-semicolon-space-before': 'never'
# Comment
'comment-empty-line-before':
- 'always'
- except:
- 'first-nested'
- ignore:
- 'stylelint-commands'
'comment-whitespace-inside': 'always'
# General / Sheet
'indentation': 2
'max-empty-lines': 1
'max-line-length': null
'no-eol-whitespace': true
'no-missing-end-of-source-newline': true
#
# Scss
##
# At-rule
'scss/at-else-closing-brace-newline-after': null
'scss/at-else-closing-brace-space-after': null
'scss/at-else-empty-line-before': null
'scss/at-else-if-parentheses-space-before': 'always'
# At-extend
'scss/at-extend-no-missing-placeholder': true
# At-function
'scss/at-function-named-arguments':
- 'always'
- ignore:
- 'single-argument'
'scss/at-function-parentheses-space-before': 'never'
'scss/at-function-pattern': null
# At-if
'scss/at-if-closing-brace-newline-after': null
'scss/at-if-closing-brace-space-after': null
# At-import
'scss/at-import-no-partial-leading-underscore': true
'scss/at-import-partial-extension-blacklist':
- '.scss'
- '.sass'
- '.less'
- '.stylus'
'scss/at-import-partial-extension-whitelist': null
# At-mixin
'scss/at-mixin-argumentless-call-parentheses': 'never'
'scss/at-mixin-named-arguments': 'always'
'scss/at-mixin-parentheses-space-before': 'never'
'scss/at-mixin-pattern':
- '^([A-Z0-9][a-z0-9]+)+(__([a-z0-9]+-?)*[a-z0-9])?(--([a-z0-9]+-?)*[a-z0-9])?$'
# At-rule
'scss/at-rule-no-unknown': true
# Variables
'scss/dollar-variable-colon-newline-after': null
'scss/dollar-variable-colon-space-after': 'always-single-line'
'scss/dollar-variable-colon-space-before': 'never'
'scss/dollar-variable-empty-line-before':
- always
- except:
- 'first-nested'
- 'after-comment'
- 'after-dollar-variable'
'scss/dollar-variable-no-missing-interpolation': true
'scss/dollar-variable-pattern':
- '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$'
# Placeholders
'scss/percent-placeholder-pattern':
- '^([A-Z0-9][a-z0-9]+)+(__([a-z0-9]+-?)*[a-z0-9])?(--([a-z0-9]+-?)*[a-z0-9])?$'
# Comment
'scss/double-slash-comment-empty-line-before': null
# Declaration
'scss/declaration-nested-properties': 'never'
'scss/declaration-nested-properties-no-divided-groups': null
# Media feature
'scss/media-feature-value-dollar-variable': null
# Operator
'scss/operator-no-newline-after': null
'scss/operator-no-newline-before': null
'scss/operator-no-unspaced': true
# Partial
'scss/partial-no-import': null
# Selector
'scss/selector-no-redundant-nesting-selector': true