Skip to content

Commit 8635e39

Browse files
committed
refactor: remove effect
1 parent 7a339ee commit 8635e39

File tree

458 files changed

+4880
-19661
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+4880
-19661
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Before submitting your contribution though, please make sure to take a moment an
6363
- `packages/plugins/eslint-plugin-react-naming-convention`: ESLint plugin for React naming conventions.
6464
- `packages/plugins/eslint-plugin-react-debug`: ESLint plugin for debugging ESLint React rules.
6565
- `packages/plugins/eslint-plugin`: The main ESLint plugin of ESLint React. Contains all the rules from the above plugins.
66-
- `packages/utilities/eff`: A subset of effect to produce a more lightweight version of the library.
66+
- `packages/utilities/eff`: JavaScript and TypeScript utilities (previously some re-exports of the `effect` library).
6767
- `packages/utilities/ast`: TSESTree AST utility module.
6868
- `packages/utilities/var`: TSESTree AST utility module for static analysis of variables
6969
- `packages/utilities/jsx`: TSESTree AST utility module for static analysis of JSX.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
2-
ko_fi: rEl1cx
2+
ko_fi: Rel1cx
33
# open_collective: eslint-react

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
attributes:
99
value: |
1010
## First of all
11-
1. Please search for [existing issues](https://github.com/rEl1cx/eslint-react/issues?q=is%3Aissue) about this problem first.
11+
1. Please search for [existing issues](https://github.com/Rel1cx/eslint-react/issues?q=is%3Aissue) about this problem first.
1212
2. Make sure `eslint`, `typescript` and all relevant @eslint-react packages are up to date.
1313
3. Make sure it's an issue with @eslint-react and not something else you are using.
1414
4. Remember to follow our community guidelines and be friendly.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
Update "[ ]" to "[x]" to check a box
33
4-
Please make sure to read the Pull Request Guidelines: https://github.com/rEl1cx/eslint-react/blob/main/.github/CONTRIBUTING.md#pull-request-guidelines
4+
Please make sure to read the Pull Request Guidelines: https://github.com/Rel1cx/eslint-react/blob/main/.github/CONTRIBUTING.md#pull-request-guidelines
55
-->
66

77
### What kind of change does this PR introduce?

CHANGELOG.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ No notable changes in this release.
66

77
### 🐞 Fixes
88

9-
- fix(plugins/x): fixed false positives in `no-unstable-context-value` and `no-unstable-default-props` by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/896>
9+
- fix(plugins/x): fixed false positives in `no-unstable-context-value` and `no-unstable-default-props` by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/896>
1010

1111
## v1.23.0 (2024-12-31)
1212

1313
### 🪄 Improvements
1414

15-
- refactor: JSX fragments related rules no longer rely on `jsxPragma` and `jsxPragmaFrag` settings to perform their checks by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/893>
15+
- refactor: JSX fragments related rules no longer rely on `jsxPragma` and `jsxPragmaFrag` settings to perform their checks by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/893>
1616
- refactor: improve applicability of the `no-useless-fragment` and `prefer-shorthand-fragment` rules
1717
- refactor: deprecate `settings["react-x"].jsxPragma` and `settings["react-x"].jsxPragmaFrag` as they are no longer needed by any rules
18-
- refactor: replace `short-unique-id` w/ `uid` by @SukkaW in <https://github.com/rEl1cx/eslint-react/pull/894>
18+
- refactor: replace `short-unique-id` w/ `uid` by @SukkaW in <https://github.com/Rel1cx/eslint-react/pull/894>
1919

2020
### 🐞 Fixes
2121

22-
- fix(plugins/hooks-extra): fix `call` and `new` expression related false positives in `no-unnecessary-use-memo` and `no-unnecessary-use-callback` by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/895>
22+
- fix(plugins/hooks-extra): fix `call` and `new` expression related false positives in `no-unnecessary-use-memo` and `no-unnecessary-use-callback` by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/895>
2323

2424
## v1.22.2 (2024-12-30)
2525

2626
### 🪄 Improvements
2727

28-
- perf: re-implement `no-duplicate-key` rule to improve its performance @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/891> and [33ab3cc](https://github.com/rEl1cx/eslint-react/commit/33ab3cc6ca11bf8412e07efa35f640dfbad77f6e)
28+
- perf: re-implement `no-duplicate-key` rule to improve its performance @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/891> and [33ab3cc](https://github.com/Rel1cx/eslint-react/commit/33ab3cc6ca11bf8412e07efa35f640dfbad77f6e)
2929
- refactor: prevent potential interference from TypeScript's `as`, `satisfies`, and non-null assertion operator in various rules
3030

3131
## v1.22.1 (2024-12-24)
@@ -66,7 +66,7 @@ The new rule names are aligned with the same rules in the [biomejs/rules-sources
6666

6767
### ✨ New
6868

69-
- feat(plugins/hooks-extra): add `no-useless-custom-hooks` rule by @rEl1cx
69+
- feat(plugins/hooks-extra): add `no-useless-custom-hooks` rule by @Rel1cx
7070

7171
### 🪄 Improvements
7272

@@ -89,56 +89,56 @@ function useAuth() {
8989

9090
### 🪄 Improvements
9191

92-
- refactor(shared): replace `local-pkg` package with node built-in API by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/881>
92+
- refactor(shared): replace `local-pkg` package with node built-in API by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/881>
9393

9494
## v1.20.0 (2024-12-16)
9595

9696
### ✨ New
9797

98-
- feat(plugins/x): add codemod-autofix to `no-component-will-*` by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/879>
98+
- feat(plugins/x): add codemod-autofix to `no-component-will-*` by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/879>
9999

100100
### 🪄 Improvements
101101

102-
- refactor: use default settings when no settings are provided in `settings["react-x"]` by @rEl1cx in <https://github.com/rEl1cx/eslint-react/commit/40ca3bd1cd7adc44f40841b5b4635e0200b73a54>
103-
- docs: update `no-context-provider.mdx` by @danielrentz in <https://github.com/rEl1cx/eslint-react/pull/877>
104-
- docs: add 'Min. React' column to rules overview page by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/880>
105-
- docs: add features section to rules overview page by @rEl1cx
102+
- refactor: use default settings when no settings are provided in `settings["react-x"]` by @Rel1cx in <https://github.com/Rel1cx/eslint-react/commit/40ca3bd1cd7adc44f40841b5b4635e0200b73a54>
103+
- docs: update `no-context-provider.mdx` by @danielrentz in <https://github.com/Rel1cx/eslint-react/pull/877>
104+
- docs: add 'Min. React' column to rules overview page by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/880>
105+
- docs: add features section to rules overview page by @Rel1cx
106106

107107
## New Contributors
108108

109-
- @danielrentz made their first contribution in <https://github.com/rEl1cx/eslint-react/pull/877>
109+
- @danielrentz made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/877>
110110

111111
## v1.19.0 (2024-12-10)
112112

113113
### ✨ New
114114

115-
- feat(plugins/x): add `no-context-provider` rule by @rEl1cx
116-
- feat(plugins/x): add autofix for `no-forward-ref` rule by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/874>
117-
- feat(plugins/eslint-plugin): add `no-forward-ref` and `no-context-provider` to recommended presets by @rEl1cx
115+
- feat(plugins/x): add `no-context-provider` rule by @Rel1cx
116+
- feat(plugins/x): add autofix for `no-forward-ref` rule by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/874>
117+
- feat(plugins/eslint-plugin): add `no-forward-ref` and `no-context-provider` to recommended presets by @Rel1cx
118118

119119
### 🪄 Improvements
120120

121-
- refactor(plugins/eslint-plugin): remove `prefer-read-only-props` from `recommended-type-checked` preset by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/872>
122-
- refactor(plugins/eslint-plugin): hide `avoid-shorthand-boolean` and `avoid-shorthand-fragment` from presets and docs by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/876>
121+
- refactor(plugins/eslint-plugin): remove `prefer-read-only-props` from `recommended-type-checked` preset by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/872>
122+
- refactor(plugins/eslint-plugin): hide `avoid-shorthand-boolean` and `avoid-shorthand-fragment` from presets and docs by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/876>
123123
- Update `@typescript-eslint`'s packages to `^8.18.0`
124124

125125
## v1.18.0 (2024-12-08)
126126

127127
### ✨ New
128128

129-
- feat(plugins/x): add `no-forward-ref` rule by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/870>
129+
- feat(plugins/x): add `no-forward-ref` rule by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/870>
130130

131131
### 🪄 Improvements
132132

133-
- perf(plugins/dom): improve performance of `no-void-elements-with-children` by @rEl1cx
133+
- perf(plugins/dom): improve performance of `no-void-elements-with-children` by @Rel1cx
134134

135135
## v1.17.3 (2024-12-03)
136136

137137
### 🐞 Fixes
138138

139-
- fix(plugins/web-api): add 'forEach' support to 'no-leaked-event-listener', closes #842 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/867>
140-
- fix(plugins/web-api): add 'for of' support to 'no-leaked-event-listenner', closes #842 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/869>
141-
- fix(plugins/x): 'no-array-index-key' mistaking 'foo.bar.map' for 'Rea… by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/868>
139+
- fix(plugins/web-api): add 'forEach' support to 'no-leaked-event-listener', closes #842 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/867>
140+
- fix(plugins/web-api): add 'for of' support to 'no-leaked-event-listenner', closes #842 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/869>
141+
- fix(plugins/x): 'no-array-index-key' mistaking 'foo.bar.map' for 'Rea… by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/868>
142142

143143
### 🪄 Improvements
144144

@@ -160,9 +160,9 @@ function useAuth() {
160160

161161
### 🐞 Fixes
162162

163-
- fix(plugins/x): 'no-leaked-conditional-rendering' should also warn 'anyStringVar' when react version is lower than 18, closes #853 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/864>
164-
- fix(plugins/dom): add popover api props to 'no-unknown-property', closes #855 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/865>
165-
- fix(plugins/debug): 'is-from-react' use correct settings when calling 'isInitializedFromReact', by @rEl1cx
163+
- fix(plugins/x): 'no-leaked-conditional-rendering' should also warn 'anyStringVar' when react version is lower than 18, closes #853 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/864>
164+
- fix(plugins/dom): add popover api props to 'no-unknown-property', closes #855 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/865>
165+
- fix(plugins/debug): 'is-from-react' use correct settings when calling 'isInitializedFromReact', by @Rel1cx
166166

167167
## v1.17.0 (2024-11-21)
168168

@@ -180,29 +180,29 @@ function useAuth() {
180180

181181
### 🐞 Fixes
182182

183-
- fix(plugins/x): 'no-leaked-conditional-rendering' report empty string, closes #853 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/857>
183+
- fix(plugins/x): 'no-leaked-conditional-rendering' report empty string, closes #853 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/857>
184184

185185
### 🪄 Improvements
186186

187-
- refactor: update the default behavior of import check, closes #858 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/860>
187+
- refactor: update the default behavior of import check, closes #858 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/860>
188188

189189
## v1.16.1 (2024-11-10)
190190

191191
### ✨ New
192192

193-
- feat(plugins/x): add `jsx-no-duplicate-props` by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/851>
193+
- feat(plugins/x): add `jsx-no-duplicate-props` by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/851>
194194

195195
### 🪄 Improvements
196196

197-
- docs: use correct link for `prefer-react-namespace-import` in rule list by @rakleed in <https://github.com/rEl1cx/eslint-react/pull/849>
197+
- docs: use correct link for `prefer-react-namespace-import` in rule list by @rakleed in <https://github.com/Rel1cx/eslint-react/pull/849>
198198

199199
## v1.16.0 (2024-11-01)
200200

201201
### ✨ New
202202

203-
- feat(plugins/react-x): add `jsx-uses-vars`, closes #834 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/845>
204-
- feat(plugins/react-dom): add `no-unknown-property`, closes #846 by @rEl1cx
205-
- feat: add `recommended-typescript` and `recommended-typescript-legacy` presets by @rEl1cx
203+
- feat(plugins/react-x): add `jsx-uses-vars`, closes #834 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/845>
204+
- feat(plugins/react-dom): add `no-unknown-property`, closes #846 by @Rel1cx
205+
- feat: add `recommended-typescript` and `recommended-typescript-legacy` presets by @Rel1cx
206206

207207
### 🪄 Improvements
208208

@@ -218,37 +218,37 @@ function useAuth() {
218218

219219
### ✨ New
220220

221-
- feat: added code fixer to `react-x/avoid-shorthand-boolean` and `react-x/prefer-shorthand-fragment` by @rEl1cx
221+
- feat: added code fixer to `react-x/avoid-shorthand-boolean` and `react-x/prefer-shorthand-fragment` by @Rel1cx
222222

223223
### 🐞 Fixes
224224

225-
- fix(plugins/react-x): respect semicolon by @hyoban in <https://github.com/rEl1cx/eslint-react/pull/841>
226-
- fix(utilities/ast): added missing ts `as` and `satisfies` expressions handling to `getFunctionIdentifier` by @rEl1cx , closes <https://github.com/rEl1cx/eslint-react/issues/843>
225+
- fix(plugins/react-x): respect semicolon by @hyoban in <https://github.com/Rel1cx/eslint-react/pull/841>
226+
- fix(utilities/ast): added missing ts `as` and `satisfies` expressions handling to `getFunctionIdentifier` by @Rel1cx , closes <https://github.com/Rel1cx/eslint-react/issues/843>
227227

228228
## v1.15.0 (2024-10-12)
229229

230230
### ✨ New
231231

232-
- feat: add support for constructors in `hooks-extra/prefer-use-state-lazy-initialization` by @imjordanxd in <https://github.com/rEl1cx/eslint-react/pull/829>
233-
- feat: add `prefer-react-namespace-import`, closes #803 by @imjordanxd in <https://github.com/rEl1cx/eslint-react/pull/832>
234-
- feat: add support for `allowExpressions` in `no-useless-fragment` by @imjordanxd in <https://github.com/rEl1cx/eslint-react/pull/836>
232+
- feat: add support for constructors in `hooks-extra/prefer-use-state-lazy-initialization` by @imjordanxd in <https://github.com/Rel1cx/eslint-react/pull/829>
233+
- feat: add `prefer-react-namespace-import`, closes #803 by @imjordanxd in <https://github.com/Rel1cx/eslint-react/pull/832>
234+
- feat: add support for `allowExpressions` in `no-useless-fragment` by @imjordanxd in <https://github.com/Rel1cx/eslint-react/pull/836>
235235

236236
### 🐞 Fixes
237237

238238
- fix: Fix false positives when 'web-api/no-leaked-event-listener' passes a signal to an intermediate variable, closes #838
239239

240240
### 🪄 Improvements
241241

242-
- docs: Update `hooks-extra-no-direct-set-state-in-use-effect.mdx` by @neovov in <https://github.com/rEl1cx/eslint-react/pull/831>
243-
- docs: use a standard mono-width font for the docs, closes #835 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/837>
244-
- Undeprecate `hooks-extra-no-direct-set-state-in-use-layout-effect` and remove it from recommended presets, closes #839 by @rEl1cx in <https://github.com/rEl1cx/eslint-react/pull/840>
242+
- docs: Update `hooks-extra-no-direct-set-state-in-use-effect.mdx` by @neovov in <https://github.com/Rel1cx/eslint-react/pull/831>
243+
- docs: use a standard mono-width font for the docs, closes #835 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/837>
244+
- Undeprecate `hooks-extra-no-direct-set-state-in-use-layout-effect` and remove it from recommended presets, closes #839 by @Rel1cx in <https://github.com/Rel1cx/eslint-react/pull/840>
245245

246246
## New Contributors
247247

248-
- @imjordanxd made their first contribution in <https://github.com/rEl1cx/eslint-react/pull/829>
249-
- @neovov made their first contribution in <https://github.com/rEl1cx/eslint-react/pull/831>
248+
- @imjordanxd made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/829>
249+
- @neovov made their first contribution in <https://github.com/Rel1cx/eslint-react/pull/831>
250250

251-
**Full Changelog**: <https://github.com/rEl1cx/eslint-react/compare/v1.14.3...v1.15.0>
251+
**Full Changelog**: <https://github.com/Rel1cx/eslint-react/compare/v1.14.3...v1.15.0>
252252

253253
## v1.14.3 (2024-09-29)
254254

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ A set of composable ESLint rules for libraries and frameworks that use React as
2020

2121
### Modular plugins
2222

23-
- [`eslint-plugin-react-x`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
24-
- [`eslint-plugin-react-dom`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
25-
- [`eslint-plugin-react-web-api`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
26-
- [`eslint-plugin-react-hooks-extra`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
27-
- [`eslint-plugin-react-naming-convention`](https://github.com/rEl1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
23+
- [`eslint-plugin-react-x`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
24+
- [`eslint-plugin-react-dom`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
25+
- [`eslint-plugin-react-web-api`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
26+
- [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
27+
- [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
2828

2929
## Installation
3030

@@ -118,9 +118,9 @@ export default tseslint.config({
118118
- [`eslint-config-sheriff`](https://github.com/AndreaPontrandolfo/sheriff) - A comprehensive and opinionated Typescript-first ESLint configuration.
119119
- [`eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - Sukka's ESLint config preset.
120120

121-
_Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/rEl1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
121+
_Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/Rel1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
122122

123-
Find more on [GitHub Dependents](https://github.com/rEl1cx/eslint-react/network/dependents).
123+
Find more on [GitHub Dependents](https://github.com/Rel1cx/eslint-react/network/dependents).
124124

125125
## Contributing
126126

0 commit comments

Comments
 (0)