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
indentation
rule needs multiple passes and never stabilize
#6514
Comments
eslint
needs multiple passes and never stabilizeindentation
rule needs multiple passes and never stabilize
@mvorisek Thanks for the report and for using the template.
This is one of the reasons we'll be deprecating this rule in the next major release. I recommend following the WIP migration guide, i.e. adopt Prettier alongside Stylelint. Stylelint will help you avoid errors and enforce (non-whitespace) conventions while Prettier will pretty-print the whitespace from the AST based on the length of each line. Alternatively, if you want to continue using Stylelint for whitespace you can port the rule to the plugin and fix the bug there. |
One question - the see https://github.com/fomantic/Fomantic-UI/pull/2592/commits commits, /wo the 2nd commit when stylelint is run with the fix on our side was to ignore the problematic line with can this issue receive an official bugfix? |
We've frozen the deprecated rules so that we can focus on standard CSS and modernising our codebase. The interplay between the |
What steps are needed to reproduce the bug?
yarn install
npx stylelint "**/*.{css,less}" --fix
What Stylelint configuration is needed to reproduce the bug?
only 1 rule
indentation: 4
for complete config/packages, see fomantic/Fomantic-UI@5e12443 commit
How did you run Stylelint?
npx stylelint "**/*.{css,less}" --fix
Which version of Stylelint are you using?
latest / 14.16.0
What did you expect to happen?
indentation files in all files to 4 spaces and when stylelint is run for 2nd time, no file changes
What actually happened?
stylelint currently fixes one file line when in
each
block per--fix
run (for example insrc/definitions/collections/form.less
file)and in some files like
src/definitions/collections/message.less
it does add more spaces in each run even wrongly:Does the bug relate to non-standard syntax?
yes, with LESS
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: