Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue after upgrading to v7.0.0 #292

Open
WojtekMasiukiewicz opened this issue Aug 28, 2023 · 2 comments
Open

Performance issue after upgrading to v7.0.0 #292

WojtekMasiukiewicz opened this issue Aug 28, 2023 · 2 comments

Comments

@WojtekMasiukiewicz
Copy link

After upgrading to version v7.0.0, there is a performance issue with the plugin. The execution time of the command stylelint "./src/**/*.{tsx,ts,css} has increased dramatically by two times. The configuration has been adjusted for the new rules. The test has been repeated for versions v6.1.0 and v7.0.0. Below are the results:

    "stylelint": "15.10.2",
    "stylelint-config-standard": "34.0.0",

.stylelintrc config:

{
  "extends": ["stylelint-config-standard"],
  "rules": {
    "comment-empty-line-before": null,
    "declaration-empty-line-before": null,
    "media-feature-range-notation": null,
    "media-query-no-invalid": null,
    "no-descending-specificity": null,
    "no-empty-source": null,
    "rule-empty-line-before": null,
    "selector-class-pattern": null,
    "selector-pseudo-element-colon-notation": null,
    "selector-type-no-unknown": null,
    "plugin/no-unsupported-browser-features": [
      true,
      {
        "ignorePartialSupport": true,
        "ignore": [
          "css-autofill",
          "css-backdrop-filter",
          "css-color-function",
          "css-focus-visible",
          "css-math-functions",
          "css-nesting",
          "css-not-sel-list",
          "css-overflow-anchor",
          "css-scroll-behavior"
        ]
      }
    ]
  },
  "customSyntax": "postcss-styled-syntax",
  "plugins": ["stylelint-no-unsupported-browser-features"]
}

v6.1.0:
image

v7.0.0
image

@RJWadley
Copy link
Owner

this is probably because the latest doiuse is checking a lot more rules. will look into it.

@RJWadley
Copy link
Owner

RJWadley commented May 1, 2024

this should help once its merged: anandthakker/doiuse#182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants