Martijn Visser created FLINK-40034:
--------------------------------------

             Summary: Refresh web-dashboard lint tooling to prettier 3 and 
stylelint 17
                 Key: FLINK-40034
                 URL: https://issues.apache.org/jira/browse/FLINK-40034
             Project: Flink
          Issue Type: Technical Debt
          Components: Runtime / Web Frontend
            Reporter: Martijn Visser


Bring the web-dashboard lint tooling current:
* prettier 2 -> 3, eslint-plugin-prettier 4 -> 5
* stylelint 14 -> 17 + config cascade (stylelint-config-standard ~40,
  stylelint-config-hudochenkov 13, stylelint-prettier 5; drop unused
  stylelint-config-prettier)

Notes from FLINK-40028:
* prettier 3 reformats @if/@for indentation across ~50 templates, so land it as 
its own
  PR (isolated formatting diff).
* stylelint-config-standard 40 adds CSS-only rules that break Less; set
  \{{'declaration-property-value-no-unknown': null}},
  \{{'declaration-property-value-keyword-no-deprecated': null}}, and
  \{{'import-notation': 'string'}} (otherwise \{{@import "x"}} is rewritten to
  \{{@import url("x")}}, breaking Less inlining).

Related: FLINK-39587 (CI lint --cache tolerates prettier drift) is the 
cache-behavior side of the same area and could be resolved together.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to