2015-09-25 15:17:39 +02:00
|
|
|
# Useful regexes to fix lint errors
|
2015-09-25 18:14:46 +02:00
|
|
|
# SpaceBeforeBrace: search "([^\ ])\{" replace "$1 {"
|
|
|
|
# SpaceAfterPropertyColon: search "([^\&]):([^\ \n]*);" replace "$1: $2;"
|
2015-04-16 07:09:13 +02:00
|
|
|
|
2017-08-11 00:27:13 +02:00
|
|
|
scss_files:
|
|
|
|
- wagtail/**/static_src/**/scss/**/*.scss
|
|
|
|
- client/**/*.scss
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
linters:
|
|
|
|
BorderZero:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
Indentation:
|
|
|
|
severity: warning
|
|
|
|
width: 4
|
2016-02-15 10:31:07 +01:00
|
|
|
# because https://github.com/brigade/scss-lint/issues/409
|
2015-04-16 07:09:13 +02:00
|
|
|
allow_non_nested_indentation: true
|
|
|
|
character: space
|
|
|
|
|
|
|
|
ColorKeyword:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
ColorVariable:
|
2015-11-03 13:15:26 +01:00
|
|
|
enabled: false
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
BangFormat:
|
|
|
|
space_before_bang: true
|
|
|
|
space_after_bang: false
|
|
|
|
|
2015-09-25 18:14:46 +02:00
|
|
|
PropertySortOrder:
|
|
|
|
enabled: false
|
|
|
|
|
2015-04-16 07:09:13 +02:00
|
|
|
Comment:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
DeclarationOrder:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
DuplicateProperty:
|
2015-09-25 18:14:46 +02:00
|
|
|
enabled: true
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
ElsePlacement:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
EmptyLineBetweenBlocks:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
EmptyRule:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
FinalNewline:
|
|
|
|
present: true
|
|
|
|
|
|
|
|
HexLength:
|
|
|
|
style: short
|
|
|
|
|
|
|
|
HexNotation:
|
|
|
|
style: lowercase
|
|
|
|
|
|
|
|
HexValidation:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
IdSelector:
|
|
|
|
enabled: true
|
2016-04-16 18:15:47 +02:00
|
|
|
exclude:
|
|
|
|
- '**/choose_parent_page.scss'
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
ImportantRule:
|
2016-02-15 10:31:07 +01:00
|
|
|
enabled: false
|
2015-11-03 13:15:26 +01:00
|
|
|
exclude:
|
2015-12-03 18:11:08 +01:00
|
|
|
- '**/_datetimepicker.scss'
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
ImportPath:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
LeadingZero:
|
2015-09-25 18:14:46 +02:00
|
|
|
enabled: false
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
MergeableSelector:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
NameFormat:
|
|
|
|
allow_leading_underscore: true
|
|
|
|
|
|
|
|
NestingDepth:
|
2015-11-03 13:15:26 +01:00
|
|
|
max_depth: 5
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
SelectorDepth:
|
2015-11-03 13:15:26 +01:00
|
|
|
enabled: false
|
2015-04-16 07:09:13 +02:00
|
|
|
|
2016-10-13 12:51:29 +02:00
|
|
|
# There is currently no de facto standard for selector format in Wagtail, due to:
|
|
|
|
# a) the conversion of django field/widget names to underscored class names
|
|
|
|
# b) the use of third party code such as Hallo.js which uses classes with snakeCaseClasses.
|
2015-04-16 07:09:13 +02:00
|
|
|
SelectorFormat:
|
2016-10-13 12:51:29 +02:00
|
|
|
convention: '.*' # allow anything
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
PlaceholderInExtend:
|
2015-11-03 13:15:26 +01:00
|
|
|
enabled: false
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
PropertyCount:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
QualifyingElement:
|
2015-11-03 13:15:26 +01:00
|
|
|
allow_element_with_attribute: true
|
|
|
|
allow_element_with_class: true
|
2015-04-16 07:09:13 +02:00
|
|
|
allow_element_with_id: false
|
|
|
|
|
|
|
|
Shorthand:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
SingleLinePerProperty:
|
|
|
|
enabled: true
|
|
|
|
allow_single_line_rule_sets: true
|
|
|
|
|
|
|
|
SingleLinePerSelector:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
SpaceAfterComma:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
SpaceAfterPropertyColon:
|
|
|
|
style: at_least_one_space
|
|
|
|
|
|
|
|
SpaceAfterPropertyName:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
SpaceBeforeBrace:
|
|
|
|
enabled: true
|
|
|
|
allow_single_line_padding: true
|
|
|
|
style: space
|
|
|
|
|
|
|
|
SpaceBetweenParens:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
StringQuotes:
|
|
|
|
style: single_quotes
|
|
|
|
|
|
|
|
TrailingSemicolon:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
TrailingZero:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
UnnecessaryMantissa:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
UnnecessaryParentReference:
|
|
|
|
enbabled: true
|
|
|
|
|
|
|
|
UrlFormat:
|
2015-11-03 13:15:26 +01:00
|
|
|
enabled: false
|
2015-04-16 07:09:13 +02:00
|
|
|
|
|
|
|
UrlQuotes:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
VariableForProperty:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
VendorPrefix:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
ZeroUnit:
|
|
|
|
enabled: true
|