yangjunhan commented on a change in pull request #16902:
URL: https://github.com/apache/flink/pull/16902#discussion_r695543447
##########
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:
After thinking over it, it may not be a good idea to extract the source
code from this config. Instead, I add it as a dev dependency and extend it in
the `.stylelintrc.js` file as the README suggests.
--
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]