From 1f95a2460e3eaae4c6e6264a354b011bf074952a Mon Sep 17 00:00:00 2001 From: Kunle Oshiyoye Date: Sat, 28 Sep 2024 19:52:49 -0400 Subject: [PATCH 1/3] [readme] Fix shared settings link --- CHANGELOG.md | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2714de0fa4..a363198e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +### Changed +* [readme] Fix shared settings link ([#3834][] @MgenGlder) + +[#3834]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3834 + ## [7.37.0] - 2024.09.26 ### Added diff --git a/README.md b/README.md index 26cc5b0a75..3c3cd24e3f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Use [our preset](#recommended) to get reasonable defaults: If you are using the [new JSX transform from React 17](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports), extend [`react/jsx-runtime`](https://github.com/jsx-eslint/eslint-plugin-react/blob/c8917b0885094b5e4cc2a6f613f7fb6f16fe932e/index.js#L163-L176) in your eslint config (add `"plugin:react/jsx-runtime"` to `"extends"`) to disable the relevant rules. -You should also specify settings that will be shared across all the plugin rules. ([More about eslint shared settings](https://eslint.org/docs/user-guide/configuring/configuration-files#adding-shared-settings)) +You should also specify settings that will be shared across all the plugin rules. ([More about eslint shared settings](https://eslint.org/docs/latest/use/configure/configuration-files#configuring-shared-settings)) ```json5 { From 63e0b49f724fb2b871be9c36eb8926fa9417aaee Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 1 Oct 2024 16:55:38 +0700 Subject: [PATCH 2/3] [meta] do not npmignore `d.ts` files Fixes #3836 --- CHANGELOG.md | 4 ++++ package.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a363198e86..f7daa5eedb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,13 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +### Fixed +* [meta] do not npmignore `d.ts` files ([#3836][] @ljharb) + ### Changed * [readme] Fix shared settings link ([#3834][] @MgenGlder) +[#3836]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3836 [#3834]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3834 ## [7.37.0] - 2024.09.26 diff --git a/package.json b/package.json index b9b82dc03a..1994560802 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,9 @@ "tsconfig.json", "build.tsconfig.json", ".markdownlint*", - "types" + "types", + "!*.d.ts", + "!*.d.ts.map" ] } } From ae6fb8da7d1853c5c2339db525af7d678edb216d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 1 Oct 2024 17:03:05 +0700 Subject: [PATCH 3/3] Update CHANGELOG and bump version --- CHANGELOG.md | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7daa5eedb..348c3389ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +## [7.37.1] - 2024.10.01 + ### Fixed * [meta] do not npmignore `d.ts` files ([#3836][] @ljharb) diff --git a/package.json b/package.json index 1994560802..7e0be6c9b0 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "eslint-plugin-react", - "version": "7.37.0", + "version": "7.37.1", "author": "Yannick Croissant ", "description": "React specific linting rules for ESLint", "main": "index.js", + "types": "index.d.ts", "scripts": { "clean-built-types": "rm -f $(find . -maxdepth 1 -type f -name '*.d.ts*') $(find lib -type f -name '*.d.ts*' ! -name 'types.d.ts')", "prebuild-types": "npm run clean-built-types",