|
@@ -86,22 +86,11 @@ linters:
|
|
|
SelectorDepth:
|
|
|
enabled: false
|
|
|
|
|
|
+ # 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.
|
|
|
SelectorFormat:
|
|
|
- convention: hyphenated_BEM
|
|
|
- ignored_names:
|
|
|
- - js_class
|
|
|
- ignored_types:
|
|
|
- - element
|
|
|
- # 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'
|
|
|
- - '**/choose_parent_page.scss'
|
|
|
+ convention: '.*' # allow anything
|
|
|
|
|
|
PlaceholderInExtend:
|
|
|
enabled: false
|