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

Expected indentation of 0 space but found 2 - Indentation problem - sass-lint Config #1312

Open
Marfru opened this issue Sep 10, 2020 · 0 comments

Comments

@Marfru
Copy link

Marfru commented Sep 10, 2020

I have set warnings for indentations, but I'm trying to figure out an 'initial indentation' of 2 instead of 0. But I can't seem to find it.

Currently, it's throwing a warning/error with this set up (and this is the way I want it to be):

indentation Expected indentation of 0 space but found 2.

<style lang="scss" scoped>
  @import "/example";
  @import "/example2";
</style>

I get no warnings or errors when I edit the piece of code to be like this:

<style lang="scss" scoped>
@import "/example";
@import "/example2";
</style>

How can I set an "initial" indentation inside the <style> tag?

I currently have this config:

rules:
  indentation:
    - 2
    - size: 2
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

1 participant