In React project, I am running linter on js and scss files. In scss files, I have used @import statement but lint gives me following error
Parsing error: Unexpected keyword 'import'
@import './../shared/variables.scss';
I want linter to ignore these @import lines.
Do I need to add any rule in in eslintrc file? Currently I am having following import rules in config:
'import/no-unresolved': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': 0
Is there any comment line for scss files to ignore specific line, like we have it for js files? e.g. // eslint-disable-next-line
I have gone through a lot of online sources and added babel-eslint parser as well and also passed parserOptions too but nothing is working.