Skip to content

Commit

Permalink
Update .stylelintrc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
philwareham committed May 28, 2021
1 parent 5a9adc4 commit 39faebc
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins:

rules:

# Specify percentage or number notation for alpha-values.
# Specify percentage or number notation for alpha-values.
alpha-value-notation: number

# Specify a list of disallowed at-rules.
Expand Down Expand Up @@ -42,13 +42,22 @@ rules:
- true
-
ignoreAtRules:
- at-root
- each
- else
- debug
- error
- extend
- for
- forward
- function
- if
- include
- mixin
- return
- use
- warn
- while

# Disallow vendor prefixes for at-rules.
at-rule-no-vendor-prefix: true
Expand Down Expand Up @@ -116,6 +125,9 @@ rules:
# Disallow empty comments.
comment-no-empty: true

# Specify a pattern for comments.
#comment-pattern:

# Require or disallow whitespace on the inside of comment markers.
comment-whitespace-inside: always

Expand All @@ -126,7 +138,7 @@ rules:
#custom-media-pattern:

# Require or disallow an empty line before custom properties (Autofixable).
custom-property-empty-line-before: always
custom-property-empty-line-before: never

# Specify a pattern for custom properties.
#custom-property-pattern:
Expand All @@ -137,8 +149,11 @@ rules:
# Require a single space or disallow whitespace before the bang of declarations.
declaration-bang-space-before: always

# Disallow duplicate custom properties within declaration blocks.
declaration-block-no-duplicate-custom-properties: true

# Disallow duplicate properties within declaration blocks.
#declaration-block-no-duplicate-properties: true
#declaration-block-no-duplicate-properties:

# Disallow longhand properties that can be combined into one shorthand property.
declaration-block-no-redundant-longhand-properties: true
Expand Down Expand Up @@ -332,6 +347,9 @@ rules:
# Require a single space or disallow whitespace before the commas of media query lists.
media-query-list-comma-space-before: never

# Disallow invalid named grid areas.
named-grid-areas-no-invalid: true

# Disallow selectors of lower specificity from coming after overriding selectors of higher specificity.
#no-descending-specificity: true

Expand All @@ -356,6 +374,12 @@ rules:
# Disallow double-slash comments (`//`) which are not supported by CSS.
no-invalid-double-slash-comments: true

# Disallow invalid position `@import` rules within a stylesheet.
#no-invalid-position-at-import-rule:

# Disallow irregular whitespaces.
no-irregular-whitespace: true

# Disallow missing end-of-source newlines.
no-missing-end-of-source-newline: true

Expand Down Expand Up @@ -400,6 +424,9 @@ rules:
# Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.
selector-attribute-brackets-space-inside: never

# Specify a list of disallowed attribute names.
#selector-attribute-name-disallowed-list:

# Specify a blacklist of disallowed attribute operators.
#selector-attribute-operator-blacklist:

Expand Down Expand Up @@ -433,6 +460,9 @@ rules:
# Disallow non-space characters for descendant combinators of selectors.
selector-descendant-combinator-no-non-space: true

# Specify a list of disallowed selectors.
#selector-disallowed-list:

# Specify a pattern for ID selectors.
#selector-id-pattern:

Expand Down Expand Up @@ -1058,9 +1088,6 @@ rules:
# Disallow duplicate mixins within a stylesheet.
scss/no-duplicate-mixins: true

# Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
scss/no-global-function-names: true

# Disallow linebreaks after Sass operators.
scss/operator-no-newline-after: true

Expand Down

0 comments on commit 39faebc

Please sign in to comment.