ESLint-Formatter
ESLint-Formatter copied to clipboard
Look in parent directories for .eslintrc
As specified in the eslint docs, each configuration file should apply to "an entire directory (other than your home directory) and all of its subdirectories."
My Sublime project directory is the parent directory of multiple repositories, several of which are JavaScript projects. Thus I have several .eslintrc files, eg.
/project-root/subdir-one/.eslintrc # should apply to all /project-root/subdir-one/**
/project-root/subdir-two/.eslintrc # should apply to all /project-root/subdir-two/**
I want each of the .eslintrc files to apply to the files in the appropriate subdirectories as defined by the eslint folks above. However, I can't figure out how to do that with this tool. As I understand, my only option is to set a config_path for an entire project. It seems to me that since eslint has a standard behavior, that should be supported in this tool.
It looks like if I remove the .eslintrc from my project root and don't set the config_path, it falls back to the default eslint behavior. That's a reasonable workaround for me, feel free to close this issue!
I believe the initial issue still need to be solved, other packages does this it's pretty handy when you have a mono repo with different very specific eslint for each dir.