New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xo config overrides
in package.json are ignored
#9
Comments
Hey @squarefeet 🙂 I was having a similar issue and came across this! Just a heads up, the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When specifying an
overrides
section in the xo config in package.json, any file globbing patterns or paths will never match.When xo runs, it is setting the
cwd
to be the parent directory of the file being linted, rather than the parent directory of thepackage.json
file that it found the xo config in so whenoptionsManager.findApplicableOverrides( ... )
is called, it will never return anything.I did note that one can apparently set the
chdir
setting in SublimeLinter itself to be the project's root ("chdir": "${project}"
) however that hasn't made any difference to my problem.Could it be that the xo linter is ignoring the
chdir
setting?The text was updated successfully, but these errors were encountered: