yangjunhan commented on a change in pull request #16902:
URL: https://github.com/apache/flink/pull/16902#discussion_r695433828



##########
File path: flink-runtime-web/web-dashboard/.stylelintrc.js
##########
@@ -0,0 +1,284 @@
+module.exports = {
+  plugins: ['stylelint-order'],
+  extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
+  rules: {
+    'prettier/prettier': [
+      true,
+      {
+        singleQuote: false
+      }
+    ],
+    'no-empty-source': null,
+    'no-descending-specificity': null,
+    'no-invalid-position-at-import-rule': null,
+    'function-calc-no-invalid': null,
+    'font-family-no-missing-generic-family-keyword': null,
+    'selector-pseudo-element-no-unknown': [
+      true,
+      {
+        ignorePseudoElements: ['ng-deep']
+      }
+    ],
+    // Reference: 
https://github.com/hudochenkov/stylelint-config-hudochenkov/blob/master/order.js
+    'order/order': [
+      [
+        'dollar-variables',
+        'custom-properties',
+        'at-rules',
+        'declarations',
+        {
+          type: 'at-rule',
+          name: 'supports'
+        },
+        {
+          type: 'at-rule',
+          name: 'media'
+        },
+        'rules'
+      ],
+      {
+        severity: 'warning'
+      }
+    ],
+    'order/properties-order': [

Review comment:
       Well, this piece of info is taken from: 
https://github.com/hudochenkov/stylelint-config-hudochenkov/blob/master/order.js.
 The author of this config is actually a member of Stylelint team. There is a 
comment about this at line 22.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to