Skip to content
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

Documentation suggestion regarding dotfile ignoring of cosmiconfig files #668

Open
titanism opened this issue Jun 7, 2022 · 0 comments
Open

Comments

@titanism
Copy link

titanism commented Jun 7, 2022

Per #667, we should probably add to the README.md documentation something like the following:

## Linting dotfiles (e.g. cosmiconfig)

If you would like to lint files such as `.lintstagedrc.js` or `.xo-config.js`, then you will need to add the following line to your `.eslintignore` file:

echo '!.*.js' >> .eslintignore

Pinging @sindresorhus and @spence-s since you might know where to put this best?

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

No branches or pull requests

2 participants