AtomLinter / linter-stylelint

A plugin for Atom Linter providing an interface to stylelint.

Home Page:https://atom.io/packages/linter-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't work with .sass files

alxmagro opened this issue · comments

Stylelint supports .sass files, but atom plugin don't shown the errors.

Hey @AlexandreMagro - depending on where this is stored on your computer, for me it was ~/.atom/packages/linter-stylint/lib/index.js - go to that <- index.js and somewhere in the middle of it is this array:

    this.baseScopes = [
      'source.css',
      'source.scss',
      'source.css.scss',
      'source.less',
      'source.css.less',
      'source.css.postcss',
      'source.css.postcss.sugarss'
    ];

just add 'source.sass' to that array. A la:

    this.baseScopes = [
      'source.css',
      'source.scss',
      'source.sass',
      'source.css.scss',
      'source.less',
      'source.css.less',
      'source.css.postcss',
      'source.css.postcss.sugarss'
    ];

and it will work great until they update again.

Related: #529