Skip to content

Commit db0970a

Browse files
Ben Watkinsljharb
Ben Watkins
authored andcommitted
[readme] note use of typescript in readme import/extensions section
1 parent 347d78b commit db0970a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1414

1515
### Changed
1616
- [Tests] `named`: Run all TypeScript test ([#2427], thanks [@ProdigySim])
17+
- [readme] note use of typescript in readme `import/extensions` section ([#2440], thanks [@OutdatedVersion])
1718

1819
## [2.26.0] - 2022-04-05
1920

@@ -986,6 +987,7 @@ for info on changes for earlier releases.
986987

987988
[`memo-parser`]: ./memo-parser/README.md
988989

990+
[#2440]: https://github.com/import-js/eslint-plugin-import/pull/2440
989991
[#2427]: https://github.com/import-js/eslint-plugin-import/pull/2427
990992
[#2417]: https://github.com/import-js/eslint-plugin-import/pull/2417
991993
[#2411]: https://github.com/import-js/eslint-plugin-import/pull/2411
@@ -1629,6 +1631,7 @@ for info on changes for earlier releases.
16291631
[@ntdb]: https://github.com/ntdb
16301632
[@nwalters512]: https://github.com/nwalters512
16311633
[@ombene]: https://github.com/ombene
1634+
[@OutdatedVersion]: https://github.com/OutdatedVersion
16321635
[@ota-meshi]: https://github.com/ota-meshi
16331636
[@panrafal]: https://github.com/panrafal
16341637
[@paztis]: https://github.com/paztis

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)