Closed sekmo closed 6 years ago
Hi, what's the symptom? are they ignored, or is there an error message?
If you are runing eslint on a directory containing .erb files, please make sure to use the --ext option as stated in the README:
eslint --ext .erb,.js src
Unrelated, but you shouldn't add the .js
extension in "html/html-extensions"
else it will break ESLint on JS files as it will considerate those files as HTML files.
While it works when running eslint --ext .js.erb,.js .
, the .js.erb
files are ignored when running eslint .
There is no way to force the file extension in .eslintrc
?
(I need to run eslint
with no parameters)
Sorry, there isn't. I saw you already find https://github.com/eslint/eslint/issues/7324 , and I'm pretty sure that ESLint:
override
configuration entry by testing if the path of the file being linted matches the pattern, so you won't have any luck with this eitherIt's even stated in the documentation: "Currently the sole method for telling ESLint which file extensions to lint is by specifying a comma separated list of extensions using the --ext command line option".
Hi! I can't manage to make it work with .js.erb files... (eslint@4.9) Here is my configuration: