You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run just lint with
const data = await stylelint.lint({ config, files, formatter});
I dont receive any errors
but if I use
fix = true;
const data = await stylelint.lint({ config, files, formatter, fix });
This is an issue relying to the way autofixing works in stylelint itself. See stylelint/stylelint#2643 (comment) for the discussion about it (my link goes directly to the part discussing a potential solution for a new API, which has not been implemented yet)
I have scss code
config
module.exports = { extends: "stylelint-config-standard", plugins: ["stylelint-scss"], rules: { "at-rule-no-unknown": [ true, { ignoreAtRules: [ "include", "for", "each", "mixin", "if", "else", "content", "return", "warn", "error", "function" ] } ], indentation: 4, "scss/at-import-no-partial-leading-underscore": true, "no-descending-specificity": null, "scss/dollar-variable-no-missing-interpolation": true, "scss/media-feature-value-dollar-variable": "always", "scss/selector-no-redundant-nesting-selector": true, "at-rule-empty-line-before": [ "always", { ignoreAtRules: ["else"], ignore: ["blockless-after-same-name-blockless", "inside-block"] } ], "block-closing-brace-newline-after": ["always", { ignoreAtRules: ["if", "else"] }], "string-quotes": ["double", { avoidEscape: false }] } };
when I run just lint with
const data = await stylelint.lint({ config, files, formatter});
I dont receive any errors
but if I use
fix = true;
const data = await stylelint.lint({ config, files, formatter, fix });
my code become
The text was updated successfully, but these errors were encountered: