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

Validate editorconfig #3

Closed
adamlaki opened this issue Mar 1, 2024 · 3 comments
Closed

Validate editorconfig #3

adamlaki opened this issue Mar 1, 2024 · 3 comments

Comments

@adamlaki
Copy link
Member

adamlaki commented Mar 1, 2024

@szepeviktor Viktor,

I have an interesting situation. In markdown I'd like to use for spaces but for code blocks (```) I need two spaces for scss. Do you have any idea how to validate this?

Now I set the .md-s to two spaces but it looks funny because the .yamllint and the .editorconfig stores two different indent size.

@szepeviktor
Copy link
Contributor

EditorConfig is general, so it won't understand the contents of a file.
So files with mixed indentations should have indent_size = unset

Markdownlint could help DavidAnson/markdownlint#312

@szepeviktor
Copy link
Contributor

... or Prettier: prettier/prettier#5971

@adamlaki
Copy link
Member Author

adamlaki commented Mar 1, 2024

I think you are right, the best is to simply use unset for indent_size, solves everything. I use it for HTML files under IDE folder right now and the yamllint will check the frontmetter.

Thank you!

@adamlaki adamlaki closed this as completed Mar 2, 2024
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