diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aff8cda1a..80b1f632a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange - [Docs] [`extensions`], [`order`]: improve documentation ([#3106], thanks [@Xunnamius]) - [Docs] add flat config guide for using `tseslint.config()` ([#3125], thanks [@lnuvy]) - [Docs] add missing comma ([#3122], thanks [@RyanGst]) +- [readme] Update flatConfig example to include typescript config ([#3138], thanks [@intellix]) ## [2.31.0] - 2024-10-03 @@ -1167,6 +1168,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#3138]: https://github.com/import-js/eslint-plugin-import/pull/3138 [#3125]: https://github.com/import-js/eslint-plugin-import/pull/3125 [#3122]: https://github.com/import-js/eslint-plugin-import/pull/3122 [#3116]: https://github.com/import-js/eslint-plugin-import/pull/3116 @@ -1873,6 +1875,7 @@ for info on changes for earlier releases. [@hulkish]: https://github.com/hulkish [@hyperupcall]: https://github.com/hyperupcall [@Hypnosphi]: https://github.com/Hypnosphi +[@intellix]: https://github.com/intellix [@isiahmeadows]: https://github.com/isiahmeadows [@IvanGoncharov]: https://github.com/IvanGoncharov [@ivo-stefchev]: https://github.com/ivo-stefchev diff --git a/README.md b/README.md index 993d31399a..885f34873c 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ export default tseslint.config( // other configs... { files: ['**/*.{ts,tsx}'], - extends: [importPlugin.flatConfigs.recommended], + extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript], // other configs... } );
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: