Ver Fonte

Remove SelectorFormat scss-lint rule that has so many arbitrary exclusions that there's no point in it existing

Matt Westcott há 8 anos atrás
pai
commit
7d3dcc0add
1 ficheiros alterados com 4 adições e 15 exclusões
  1. 4 15
      .scss-lint.yml

+ 4 - 15
.scss-lint.yml

@@ -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