Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upBug: ~/.eslintrc being taken into account for rules not defined in rc/.eslintrc #32
Comments
This comment has been minimized.
This comment has been minimized.
|
I went ahead and defined every rule, for completeness. Looks like the Released as 2.5.0. |
feross
closed this
Feb 9, 2015
feross
added a commit
that referenced
this issue
Feb 9, 2015
This comment has been minimized.
This comment has been minimized.
|
Ah cool totally missed that option! Assuming this also disables package.json stuff too? Will investigate myself :) |
lock
bot
locked as resolved and limited conversation to collaborators
May 11, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Flet commentedFeb 7, 2015
To reproduce, create a ~/.eslintrc file with this in it:
{ "rules": { "no-var": 2 } }Next, checkout the latest copy of
standardand runnpm test. You'll see many errors and the test will fail. This seems to be a feature of eslint: http://eslint.org/docs/configuring/#configuration-cascading-and-hierarchyNote that this only affects rules that are not yet defined in rc/.eslintrc due to the layering/cascading nature. I see two possible solutions:
Maybe @nzakas knows if there is a flag to stop this behavior? I did not see one in the command line options or on the linked configuration page.
The only workaround for users would be to remove any .eslintrc files from their directory hierarchy, which is probably not acceptable.