stylelint: In some Windows environments the indentation rule wrongly warns for SCSS maps

I’m experiencing a bug where the Indentation plugin reports incorrect expectations.

The bug only seems to affect Windows. It was observed on multiple Windows 10 environments by myself, and sometimes on Windows 7 by @cyril-lamotte.

Observed on Node v5.5.0, v5.10.1, and v6.3.1 by both of us.

Which rule, if any, is this issue related to? Indentation

What CSS is needed to reproduce this issue?

Which version of stylelint are you using? Stylelint 7.0.3

How are you running stylelint: CLI, PostCSS plugin, Node API?

  • As a PostCSS plugin on Grunt by myself
  • As a gulp-stylelint plugin by @cyril-lamotte

Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)? Yes, it’s related to SCSS maps.

What did you expect to happen? No warnings to be flagged.

What actually happened (e.g. what warnings or errors you are getting)? The following warnings were flagged:"

scss/_b.font.bse_icons.scss
108:5   ‼  Expected indentation of 0 spaces (indentation) [stylelint]

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 34 (25 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks everyone for your reports, testing and patience, the fix will ship as part of sylelelint 7.1

Same thing :

$ grunt ci
Running "postcss:dist" (postcss) task

scss/_b.font.bse_icons.scss
2:5     ‼  Expected indentation of 0 spaces (indentation) [stylelint]

Fatal error:
** postcss-reporter: warnings or errors were found **