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

Clarify doc regarding extension option #433

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,12 @@ Use one or more [shareable configs](https://eslint.org/docs/developer-guide/shar

### extensions

Type: `string[]`
Type: `string[]`\
Default: `['js', 'jsx', 'ts', 'tsx']`

Allow more file extensions to be linted. Make sure they're supported by ESLint or an ESLint plugin.

Allow more extensions to be linted besides `.js` and `.jsx`. Make sure they're supported by ESLint or an ESLint plugin.
*Note that this option can only be set via CLI argument as XO will first look for the files to lint, then look for configuration files relative to the files being linted.*

### settings

Expand Down