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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip block-indentation rule in embedded templates #2831

Conversation

robinborst95
Copy link
Contributor

@robinborst95 robinborst95 commented Mar 3, 2023

The issue with the block-indentation rule in embedded templates as reported in #2826 is pretty annoying in existing tests. Turning off the rule entirely is not ideal, as it's really valuable to keep linting this. So, this PR adds an option to skip embedded templates entirely, basically keeping the functionality of the v4 version until a proper solution can be found. disables the rule in embedded templates for now. I have attempted to fix it fully in #2838, but I can imagine that might need some iterating before it can land.

I'm not sure if this will be considered a proper way of fixing it, but this is close to being a blocker for me to upgrade to v5, and it's a small change with a great effect 馃檹 .

lib/linter.js Outdated Show resolved Hide resolved
@robinborst95 robinborst95 marked this pull request as ready for review March 3, 2023 21:26
@robinborst95 robinborst95 force-pushed the fix/block-indentation-skip-embedded branch from 9775984 to 6bea8f8 Compare March 8, 2023 20:56
@robinborst95 robinborst95 changed the title Add skipEmbedded option to block-indentation rule Skip block-indentation rule in embedded templates Mar 8, 2023
@robinborst95
Copy link
Contributor Author

Closing this since #2838 has landed instead

@robinborst95 robinborst95 deleted the fix/block-indentation-skip-embedded branch March 15, 2023 20:04
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

Successfully merging this pull request may close these issues.

None yet

1 participant