Skip to content

How to lint cosmiconfig files? #667

Closed
@titanism

Description

@titanism

It still seems like there's no workaround for cosmiconfig file linting, or perhaps our usage is wrong.

For example, .xo-config.js is not linted, nor is .remarkrc.js and .pug-lintrc.js.

We've tried adding extensions: [''] and extensions: ['.xo-config.js'] even as a test to the XO config, but it still isn't linting those files. Not all config files support non-dotfile naming conventions, which makes this impossible to lint. We've also tried checking --print-config output too, and nothing seems to fix it.

Curious if you have a workaround @sindresorhus? And if so, what is it so we can document it?

Metadata

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