Skip to content

Commit

Permalink
release: 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Aug 20, 2024
1 parent bce98ec commit be63132
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 33 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## v1.11.0 (Tue 20 Aug 2024)

### ✨ New Features
### ✨ New

- Added `eslint-plugin-react-web-api` - A plugin that provides rules for interacting with Web APIs in React applications.
- Added `web-api/no-leaked-timeout` rule to prevent leaked `setTimeout`.
Expand All @@ -11,9 +11,10 @@
### 🪄 Improvements

- Added `react-web-api/no-leaked-event-listener` to `recommended` and `recommended-legacy` presets.
- Upgrade `@typescript-eslint`'s packages to `^8.2.0`.
- Improve performance by skipping unnecessary checks when possible.
- Improve dts generation of the `@eslint-react/eslint-plugin` package.
- Improve website and documentation.
- Upgrade `@typescript-eslint`'s packages to `^8.2.0`.

## v1.10.1 (Tue 13 Aug 2024)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.0-beta.10
1.11.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/monorepo",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"private": true,
"description": "A series of ESLint plugins for building robust and reliable React applications.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/core",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-debug",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint plugin for debugging related rules.",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-dom",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint plugin for React DOM related rules.",
"keywords": [
"eslint",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-hooks-extra",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
"keywords": [
"eslint",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-naming-convention",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint plugin for naming convention related rules.",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-web-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-web-api",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-x/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-x",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/eslint-plugin",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/shared",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's Shared constants and functions.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/tools",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's std library and primitives.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/types",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's type definitions.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/ast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/ast",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's TSESTree AST utility module.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/jsx",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/var/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/var",
"version": "1.11.0-beta.10",
"version": "1.11.0",
"description": "TSESTree AST utility module for static analysis of variables",
"homepage": "https://github.com/rel1cx/eslint-react",
"bugs": {
Expand Down
15 changes: 3 additions & 12 deletions website/pages/docs/rules/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,9 @@ export default {
"dom-no-script-url": "dom/no-script-url",
"dom-no-unsafe-iframe-sandbox": "dom/no-unsafe-iframe-sandbox",
"dom-no-unsafe-target-blank": "dom/no-unsafe-target-blank",
"web-api-no-leaked-interval": {
title: "web-api/no-leaked-interval",
display: "hidden",
},
"web-api-no-leaked-timeout": {
title: "web-api/no-leaked-timeout",
display: "hidden",
},
"web-api-no-leaked-event-listener": {
title: "web-api/no-leaked-event-listener",
display: "hidden",
},
"web-api-no-leaked-interval": "web-api/no-leaked-interval",
"web-api-no-leaked-timeout": "web-api/no-leaked-timeout",
"web-api-no-leaked-event-listener": "web-api/no-leaked-event-listener",
"hooks-extra-ensure-custom-hooks-using-other-hooks": "hooks-extra/ensure-custom-hooks-using-other-hooks",
"hooks-extra-ensure-use-callback-has-non-empty-deps": "hooks-extra/ensure-use-callback-has-non-empty-deps",
"hooks-extra-ensure-use-memo-has-non-empty-deps": "hooks-extra/ensure-use-memo-has-non-empty-deps",
Expand Down
6 changes: 3 additions & 3 deletions website/pages/docs/rules/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@

| Rule | Description | 💼 | 💭 | |
| :--------------------------------------------------------------------- | :---------------------------------------------------------------- | :-: | :-: | :-: |
| [`web-api/no-leaked-interval`](web-api-no-leaked-interval) | Prevents leaked `setInterval` in a component or custom hook. | ✔️ | | 🚧 |
| [`web-api/no-leaked-timeout`](web-api-no-leaked-timeout) | Prevents leaked `setTimeout` in a component or custom hook. | ✔️ | | 🚧 |
| [`web-api/no-leaked-event-listener`](web-api-no-leaked-event-listener) | Enforces leaked `addEventListener` in a component or custom hook. | ✔️ | | 🚧 |
| [`web-api/no-leaked-interval`](web-api-no-leaked-interval) | Prevents leaked `setInterval` in a component or custom hook. | ✔️ | | 🆕 |
| [`web-api/no-leaked-timeout`](web-api-no-leaked-timeout) | Prevents leaked `setTimeout` in a component or custom hook. | ✔️ | | 🆕 |
| [`web-api/no-leaked-event-listener`](web-api-no-leaked-event-listener) | Enforces leaked `addEventListener` in a component or custom hook. | ✔️ | | 🆕 |

## Hooks Extra Rules

Expand Down

0 comments on commit be63132

Please sign in to comment.