Skip to content

Migrate stylelint to latest for security updates #2292

@tlylt

Description

@tlylt

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#2666

Tell us about your environment

Windows 10

MarkBind version

Master branch

Describe the bug and the steps to reproduce it

Stylelint is outdated and migrating it to latest is necessary for a security update (See #2666). This cannot be done automatically due to differences across the versions. See the CI check error in that PR (copied below for reference).

csslint
stylelint **/.css **/.vue

/home/runner/work/markbind/markbind/packages/vue-components/src/Box.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Breadcrumb.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/CollapseExpandButtons.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Dropdown.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Modal.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Navbar.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Overlay.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/OverlaySource.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/PageNavButton.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Panel.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Pic.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Popover.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Retriever.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/ScrollTopButton.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Searchbar.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/SearchbarPageItem.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/SiteNav.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/SiteNavButton.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Submenu.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Tab.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/TabGroup.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Tabset.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Thumbnail.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Tooltip.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/Trigger.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/annotations/Annotate.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/annotations/AnnotatePoint.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/panels/MinimalPanel.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/panels/NestedPanel.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/panels/PanelSwitch.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/questions/QOption.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/questions/Question.vue: you should use the "customSyntax" option when linting something other than CSS
/home/runner/work/markbind/markbind/packages/vue-components/src/questions/Quiz.vue: you should use the "customSyntax" option when linting something other than CSS

Deprecation warnings:

  • The "at-rule-name-case" rule is deprecated.
  • The "at-rule-name-space-after" rule is deprecated.
  • The "at-rule-semicolon-newline-after" rule is deprecated.
  • The "block-closing-brace-empty-line-before" rule is deprecated.
  • The "block-closing-brace-newline-after" rule is deprecated.
  • The "block-closing-brace-newline-before" rule is deprecated.
  • The "block-closing-brace-space-before" rule is deprecated.
  • The "block-opening-brace-newline-after" rule is deprecated.
  • The "block-opening-brace-space-after" rule is deprecated.
  • The "block-opening-brace-space-before" rule is deprecated.
  • The "color-hex-case" rule is deprecated.
  • The "declaration-bang-space-after" rule is deprecated.
  • The "declaration-bang-space-before" rule is deprecated.
  • The "declaration-block-semicolon-newline-after" rule is deprecated.
  • The "declaration-block-semicolon-space-after" rule is deprecated.
  • The "declaration-block-semicolon-space-before" rule is deprecated.
  • The "declaration-block-trailing-semicolon" rule is deprecated.
  • The "declaration-colon-newline-after" rule is deprecated.
  • The "declaration-colon-space-after" rule is deprecated.
  • The "declaration-colon-space-before" rule is deprecated.
  • The "function-comma-newline-after" rule is deprecated.
  • The "function-comma-space-after" rule is deprecated.
  • The "function-comma-space-before" rule is deprecated.
  • The "function-max-empty-lines" rule is deprecated.
  • The "function-parentheses-newline-inside" rule is deprecated.
  • The "function-parentheses-space-inside" rule is deprecated.
  • The "function-whitespace-after" rule is deprecated.
  • The "max-empty-lines" rule is deprecated.
  • The "media-feature-colon-space-after" rule is deprecated.
  • The "media-feature-colon-space-before" rule is deprecated.
  • The "media-feature-name-case" rule is deprecated.
  • The "media-feature-parentheses-space-inside" rule is deprecated.
  • The "media-feature-range-operator-space-after" rule is deprecated.
  • The "media-feature-range-operator-space-before" rule is deprecated.
  • The "media-query-list-comma-newline-after" rule is deprecated.
  • The "media-query-list-comma-space-after" rule is deprecated.
  • The "media-query-list-comma-space-before" rule is deprecated.
  • The "no-eol-whitespace" rule is deprecated.
  • The "no-extra-semicolons" rule is deprecated.
  • The "no-missing-end-of-source-newline" rule is deprecated.
  • The "number-leading-zero" rule is deprecated.
  • The "number-no-trailing-zeros" rule is deprecated.
  • The "property-case" rule is deprecated.
  • The "selector-attribute-brackets-space-inside" rule is deprecated.
  • The "selector-attribute-operator-space-after" rule is deprecated.
  • The "selector-attribute-operator-space-before" rule is deprecated.
  • The "selector-combinator-space-after" rule is deprecated.
  • The "selector-combinator-space-before" rule is deprecated.
  • The "selector-descendant-combinator-no-non-space" rule is deprecated.
  • The "selector-list-comma-newline-after" rule is deprecated.
  • The "selector-list-comma-space-before" rule is deprecated.
  • The "selector-max-empty-lines" rule is deprecated.
  • The "selector-pseudo-class-case" rule is deprecated.
  • The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.
  • The "selector-pseudo-element-case" rule is deprecated.
  • The "unit-case" rule is deprecated.
  • The "value-list-comma-newline-after" rule is deprecated.
  • The "value-list-comma-space-after" rule is deprecated.
  • The "value-list-comma-space-before" rule is deprecated.
  • The "value-list-max-empty-lines" rule is deprecated.
  • The "indentation" rule is deprecated.

docs/css/main.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core-web/src/styles/index.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core-web/src/styles/markbind.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core-web/src/styles/page-nav.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core/src/plugins/default/markbind-plugin-anchors.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core/src/plugins/default/markbind-plugin-tree.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core/src/plugins/web3FormAssets/web-3-form.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/core/template/default/stylesheets/main.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/cli/test/functional/test_site/stylesheets/red-heading.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/cli/test/functional/test_site/stylesheets/styles.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/cli/test/functional/test_site/_markbind/plugins/testMarkbindPluginStylesheet.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/cli/test/functional/test_site_convert/test_basic_convert/non_markbind_site/stylesheets/main.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/cli/test/functional/test_site_convert/test_navigation_convert/non_markbind_site/stylesheets/main.css
1:1 ✖ Unknown rule function-calc-no-invalid function-calc-no-invalid

packages/vue-components/src/Box.vue
111:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Breadcrumb.vue
1:1 ✖ Unknown word CssSyntaxError

packages/vue-components/src/CollapseExpandButtons.vue
23:7 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Dropdown.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Modal.vue
40:14 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Navbar.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Overlay.vue
22:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/OverlaySource.vue
19:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/PageNavButton.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Panel.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Pic.vue
19:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Popover.vue
48:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Retriever.vue
10:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/ScrollTopButton.vue
19:20 ✖ Missed semicolon CssSyntaxError

packages/vue-components/src/Searchbar.vue
20:12 ✖ Unknown word CssSyntaxError

packages/vue-components/src/SearchbarPageItem.vue
27:20 ✖ Missed semicolon CssSyntaxError

packages/vue-components/src/SiteNav.vue
1:1 ✖ Unknown word CssSyntaxError

packages/vue-components/src/SiteNavButton.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Submenu.vue
26:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Tab.vue
18:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/TabGroup.vue
11:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Tabset.vue
50:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Thumbnail.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Tooltip.vue
35:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/Trigger.vue
57:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/annotations/Annotate.vue
19:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/annotations/AnnotatePoint.vue
5:12 ✖ Unknown word CssSyntaxError

packages/vue-components/src/panels/MinimalPanel.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/panels/NestedPanel.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/panels/PanelSwitch.vue
14:10 ✖ Unknown word CssSyntaxError

packages/vue-components/src/questions/QOption.vue
2:8 ✖ Unknown word CssSyntaxError

packages/vue-components/src/questions/Question.vue
2:3 ✖ Unknown word CssSyntaxError

packages/vue-components/src/questions/Quiz.vue
12:18 ✖ Unknown word CssSyntaxError

46 problems (46 errors, 0 warnings)

Expected behavior

Migrate stylelint with appropriate updates to the current configurations, according to their migration guide: https://stylelint.io/

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions