I'm using linter-eslint
package for atom with a React project. I'm using webpack as the bundler, and I import sass styles to be processed during the building process.
When I import the style in the entry file, I don't use it, but I need to import it there so webpack fires the processing. I do this:
import commonStyle from './public/styles/common.sass';
I get the error no-unused-vars
, as it is actually not used anywhere.
I could set no-unused-vars
to throw a warning instead of an error, but I was wondering if I should be doing the imports differently, or if I could disable that rule when the imported file has .sass
extension.
Thanks for your help!