0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 17:13:31 +01:00
wagtail/.stylelintrc.yaml

80 lines
2.3 KiB
YAML

ignoreFiles:
- node_modules
- build/**/*
plugins:
- stylelint-scss
# See https://github.com/stylelint/stylelint/blob/master/docs/user-guide/rules.md
rules:
block-closing-brace-newline-after:
- always
- ignoreAtRules:
# Ignore @if … @else in SCSS.
- if
- else
block-no-empty: true
block-opening-brace-space-before: always
color-hex-case: lower
color-hex-length: short
color-named: never
color-no-invalid-hex: true
comment-no-empty: true
declaration-bang-space-after: never
declaration-bang-space-before: always
declaration-block-no-duplicate-properties: true
declaration-block-no-redundant-longhand-properties: true
declaration-block-single-line-max-declarations: 1
declaration-block-trailing-semicolon: always
declaration-colon-space-after: always
declaration-colon-space-before: never
declaration-property-value-blacklist:
- /^border/: [none]
- severity: error
declaration-no-important: true
font-family-no-duplicate-names: true
function-calc-no-unspaced-operator: true
function-comma-space-after: always
function-linear-gradient-no-nonstandard-direction: true
function-parentheses-space-inside: never
function-url-quotes: always
indentation:
- 4
- severity: warning
length-zero-no-unit: true
max-nesting-depth: 3
media-feature-name-no-unknown: true
no-empty-source: true
no-eol-whitespace: true
no-extra-semicolons: true
no-missing-end-of-source-newline: true
number-no-trailing-zeros: true
number-leading-zero: always
property-case: lower
property-no-unknown: true
rule-empty-line-before:
- always
- except:
- after-single-line-comment
- first-nested
scss/at-import-no-partial-leading-underscore: true
scss/at-import-partial-extension-blacklist:
- scss
scss/at-else-empty-line-before: never
selector-no-qualifying-type:
- true
- ignore:
- attribute
- class
selector-list-comma-newline-after: always
selector-max-id: 0
selector-pseudo-element-no-unknown: true
selector-type-no-unknown: true
scss/at-rule-no-unknown: true
scss/media-feature-value-dollar-variable: always
scss/selector-no-redundant-nesting-selector: true
string-no-newline: true
string-quotes: single
unit-no-unknown: true
unit-case: lower
value-no-vendor-prefix: true
property-no-vendor-prefix: true