Skip to content

Commit a9aed5b

Browse files
author
Ben Watkins
committed
note use of typescript in readme import/extensions section
1 parent 347d78b commit a9aed5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ A list of file extensions that will be parsed as modules and inspected for
271271
`export`s.
272272

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

276279
```js
277280
"settings": {

0 commit comments

Comments
 (0)