Skip to content

Commit

Permalink
note use of typescript in readme import/extensions section
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Watkins committed Apr 22, 2022
1 parent 347d78b commit a9aed5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ A list of file extensions that will be parsed as modules and inspected for
`export`s.

This defaults to `['.js']`, unless you are using the `react` shared config,
in which case it is specified as `['.js', '.jsx']`.
in which case it is specified as `['.js', '.jsx']`. Despite the default,
if you are using TypeScript (without the `plugin:import/typescript` config
described above) you must specify the new extensions (`.ts`, and also `.tsx`
if using React).

```js
"settings": {
Expand Down

0 comments on commit a9aed5b

Please sign in to comment.