Skip to content

Commit cd8742d

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ 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`, + `.tsx` in React).
275277

276278
```js
277279
"settings": {

0 commit comments

Comments
 (0)