kopia lustrzana https://github.com/wagtail/wagtail
tweaked scss linting rules making them admittedly less stringent, but striking a better balance with realism
rodzic
e7993c4354
commit
9b14b4bbb3
|
@ -18,7 +18,7 @@ linters:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
ColorVariable:
|
ColorVariable:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
BangFormat:
|
BangFormat:
|
||||||
space_before_bang: true
|
space_before_bang: true
|
||||||
|
@ -62,6 +62,8 @@ linters:
|
||||||
|
|
||||||
ImportantRule:
|
ImportantRule:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
exclude:
|
||||||
|
- '**/datetimepicker.scss'
|
||||||
|
|
||||||
ImportPath:
|
ImportPath:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -76,10 +78,10 @@ linters:
|
||||||
allow_leading_underscore: true
|
allow_leading_underscore: true
|
||||||
|
|
||||||
NestingDepth:
|
NestingDepth:
|
||||||
max_depth: 4
|
max_depth: 5
|
||||||
|
|
||||||
SelectorDepth:
|
SelectorDepth:
|
||||||
max_depth: 3
|
enabled: false
|
||||||
|
|
||||||
SelectorFormat:
|
SelectorFormat:
|
||||||
convention: hyphenated_lowercase
|
convention: hyphenated_lowercase
|
||||||
|
@ -87,18 +89,25 @@ linters:
|
||||||
- js_class
|
- js_class
|
||||||
ignored_types:
|
ignored_types:
|
||||||
- element
|
- element
|
||||||
exclude:
|
# There are regretably quite a few exlusions here, made necessary by
|
||||||
|
# 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.
|
||||||
|
exclude:
|
||||||
|
- '**/rich-text.scss'
|
||||||
|
- '**/forms.scss'
|
||||||
|
- '**/streamfield.scss'
|
||||||
|
- '**/page-editor.scss'
|
||||||
- '**/datetimepicker.scss'
|
- '**/datetimepicker.scss'
|
||||||
|
|
||||||
PlaceholderInExtend:
|
PlaceholderInExtend:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
PropertyCount:
|
PropertyCount:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
QualifyingElement:
|
QualifyingElement:
|
||||||
allow_element_with_attribute: false
|
allow_element_with_attribute: true
|
||||||
allow_element_with_class: false
|
allow_element_with_class: true
|
||||||
allow_element_with_id: false
|
allow_element_with_id: false
|
||||||
|
|
||||||
Shorthand:
|
Shorthand:
|
||||||
|
@ -144,7 +153,7 @@ linters:
|
||||||
enbabled: true
|
enbabled: true
|
||||||
|
|
||||||
UrlFormat:
|
UrlFormat:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
UrlQuotes:
|
UrlQuotes:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Ładowanie…
Reference in New Issue