xo icon indicating copy to clipboard operation
xo copied to clipboard

Documentation suggestion regarding dotfile ignoring of cosmiconfig files

Open titanism opened this issue 2 years ago • 0 comments

Per https://github.com/xojs/xo/issues/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?

titanism avatar Jun 07 '22 20:06 titanism