-
Notifications
You must be signed in to change notification settings - Fork 3
Restore option to specify global .eslintrc path #23
Comments
Thanks for reporting this. We removed the Lint HTML files setting because all it did was add a scope to the List of scopes to run ESLint on list above, so I felt it was redundant. But I didn't do extensive testing to make sure this still worked. Luckily, I just attempted an experiment, and it does work. Here's what I did:
I can think of three things that might be happening for you:
If you try all this and still can't get it working, please run the Linter Eslint Node: Debug command and paste the output, and also include the contents of your |
Sorry, I didn't read closely enough. You say that it gives you a “No ESLint configuration found” error message, so it's most likely item 2 in my list. I'm guessing that you'd get that error in all cases, not just for HTML files. |
Yes, installing eslint-plugin-html and adding .eslintrc in project root actually it's just work fine. But to be more convenient to lint projects, I'm here to request to add .eslintrc path configuration like linter-eslint package so that we don't need to setup eslint everytime. And it's just my request also as my suggestion, not forcing you guys to add it because I understand you guys have your own opinion on it too. That's all from me. |
Ah, I see. I'll keep this open as a feature request; if other people ask for it, we can see about adding it back in. Thanks! |
Issue Type
Question
Issue Description
May I know how to set the path of .eslintrc like linter-eslint package? Because I need to lint javascript in html & php files, and I did install the eslint-plugin-html in linter-eslint-node directory and added eslint-plugin-html to .eslintrc in that directory too. However, the linter says no eslint configuration found. Besides, linter-eslint package is just work fine with that.
The text was updated successfully, but these errors were encountered: