Open basher opened 6 years ago
Further to the issues above, my colleague is using latest VSCode.
The linter reports the 2 errors shown in the CLI screenshot above... i.e. VSCode appears to be reading my config file for Pascal case class names correctly, but those 2 errors above (especially the one about margin: 0 auto;) must be spurious.
What version of Sass Lint are you using?
v1.12.1
Sublime Text 3.1.1 build 3176 SublimeLinter-contrib-sass-lint v1.2.1
Please include any relevant parts of your configuration
Sample "package.json" showing path to JSON config file, which is in repo root folder:
Sample "sass-lint.yml" showing my 1 custom rule and path to Sass files:
Sample "sasslintrc" showing my 1 custom rule and path to Sass files:
What did you do? Please include the actual source code causing the issue.
The Sass snippet below uses modified BEM class naming, with Pascal case for component name to match React component naming convention in the project:
What did you expect to happen?
"Masonry" and "MasonryItem-" should both pass the regex defined in either the YAML or JSON config files when editing Sass file in ST3.
Using CLI, these class names should pass linting.
What actually happened? Please include any error messages given to you by Sass Lint.
If you're using a IDE plugin have you tried the CLI too?
Yes. See (2) above.