Skip to content

xo config overrides in package.json are ignored #9

Open
@squarefeet

Description

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 the package.json file that it found the xo config in so when optionsManager.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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions