AtomLinter / linter-stylelint

A plugin for Atom Linter providing an interface to stylelint.
https://atom.io/packages/linter-stylelint
115 stars 37 forks source link

Don't work with .sass files #525

Open alxmagro opened 4 years ago

alxmagro commented 4 years ago

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

luketevers commented 4 years ago

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.

yocontra commented 4 years ago

Related: #529