Unable to lint .eslintrc.js #6645
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
triage
An ESLint team member will look at this issue soon
What version of ESLint are you using?
3.0.1
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
The only files I have in my project is the configuration file with a semi-colon
and another file that also breaks the no-semi colon rule
I ran the following command
eslint .
Expecting two errors (one for both files, but only got an error for
index.js
I then ran
eslint .eslintrc.js
resulting in
So I assumed I had to un-ignore the eslintrc file, so I tried the following two commands
eslint --ignore-pattern '!.eslintrc.js' .
eslint --ignore-pattern '!.\.eslintrc.js' .
But still only saw an error results for
index.js
How can I get eslint to validate the current project directory as well as the
.eslintrc.js
file?The text was updated successfully, but these errors were encountered: