I have a template file on my project and while running the eslint I am facing various issues because of it. Some of those are -
error Parsing error: Unexpected token !
error Parsing error: Unexpected token <
To overcome from that I tried to use eslint-plugin-ejs
with no help. I have visited below SO links as well -
Turning off eslint rule for a specific file
ESLint Parsing error: Unexpected token
Mysterious ESLint Parsing Error
and many more but again with no luck. Now I just want this file to be excluded from eslint but couldn't find the way to do that. Any help would be greatly appreciated.
As the documentation says.
You can use of inline configuration
/*eslint-disable*/
and/*eslint-enable*/
.@EDIT to what you've said in comment, there are two solutions
1 You can use of the property
excludedFiles
, I've found an example in the documentation :2 You can handle the
HTML
andEJS
files in a particular way as described here3 You can also use the
.eslintignore
file as described at Ignoring Files and Directories