Skip to content

Commit b5780e9

Browse files
Merge branch 'main' of github.com:possum-enjoyer/eslint-react
2 parents db41cbe + d932ccf commit b5780e9

File tree

269 files changed

+4395
-6872
lines changed

Some content is hidden

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

269 files changed

+4395
-6872
lines changed

.pkgs/configs/eslint.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export declare const GLOB_TESTS: string[];
66
export declare const GLOB_CONFIGS: string[];
77
export declare const GLOB_SCRIPTS: string[];
88
export declare const GLOB_IGNORES: readonly ["**/node_modules", "**/dist", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lockb", "**/output", "**/coverage", "**/temp", "**/.temp", "**/tmp", "**/.tmp", "**/.history", "**/.vitepress/cache", "**/.nuxt", "**/.next", "**/.vercel", "**/.changeset", "**/.idea", "**/.cache", "**/.output", "**/.vite-inspect", "**/.yarn", "**/storybook-static", "**/.eslint-config-inspector", "**/playwright-report", "**/.astro", "**/.vinxi", "**/app.config.timestamp_*.js", "**/.tanstack", "**/.nitro", "**/CHANGELOG*.md", "**/*.min.*", "**/LICENSE*", "**/__snapshots__", "**/auto-import?(s).d.ts", "**/components.d.ts", "**/vite.config.ts.*.mjs", "**/*.gen.*", "!.storybook"];
9+
export declare function buildIgnoreConfig(gitignore: string, extra: string[]): readonly [never, import("eslint/config").Config];
910
export declare const strictTypeChecked: Linter.Config[];
1011
export declare const disableTypeChecked: Linter.Config[];
1112
/**

.pkgs/configs/eslint.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { includeIgnoreFile } from "@eslint/compat";
12
import js from "@eslint/js";
23
import stylistic from "@stylistic/eslint-plugin";
34
import pluginDeMorgan from "eslint-plugin-de-morgan";
@@ -6,7 +7,7 @@ import { jsdoc } from "eslint-plugin-jsdoc";
67
import pluginPerfectionist from "eslint-plugin-perfectionist";
78
import pluginRegexp from "eslint-plugin-regexp";
89
import pluginUnicorn from "eslint-plugin-unicorn";
9-
import { defineConfig } from "eslint/config";
10+
import { defineConfig, globalIgnores } from "eslint/config";
1011
import tseslint from "typescript-eslint";
1112
export const GLOB_JS = ["**/*.{js,jsx,cjs,mjs}"];
1213
export const GLOB_TS = ["**/*.{ts,tsx,cts,mts}"];
@@ -88,6 +89,15 @@ const p11tGroups = {
8889
},
8990
groups: ["id", "type", "meta", "alias", "rules", "unknown"],
9091
};
92+
export function buildIgnoreConfig(gitignore, extra) {
93+
return [
94+
includeIgnoreFile(gitignore, "Imported .gitignore patterns"),
95+
globalIgnores([
96+
...GLOB_IGNORES,
97+
...extra,
98+
]),
99+
];
100+
}
91101
export const strictTypeChecked = defineConfig({
92102
ignores: GLOB_JS,
93103
}, {

.pkgs/configs/eslint.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { includeIgnoreFile } from "@eslint/compat";
12
import js from "@eslint/js";
23
import stylistic from "@stylistic/eslint-plugin";
34
import type { Linter } from "eslint";
@@ -7,7 +8,7 @@ import { jsdoc } from "eslint-plugin-jsdoc";
78
import pluginPerfectionist from "eslint-plugin-perfectionist";
89
import pluginRegexp from "eslint-plugin-regexp";
910
import pluginUnicorn from "eslint-plugin-unicorn";
10-
import { defineConfig } from "eslint/config";
11+
import { defineConfig, globalIgnores } from "eslint/config";
1112
import tseslint from "typescript-eslint";
1213

1314
export const GLOB_JS = ["**/*.{js,jsx,cjs,mjs}"];
@@ -98,6 +99,16 @@ const p11tGroups = {
9899
groups: ["id", "type", "meta", "alias", "rules", "unknown"],
99100
};
100101

102+
export function buildIgnoreConfig(gitignore: string, extra: string[]) {
103+
return [
104+
includeIgnoreFile(gitignore, "Imported .gitignore patterns") as never,
105+
globalIgnores([
106+
...GLOB_IGNORES,
107+
...extra,
108+
]),
109+
] as const;
110+
}
111+
101112
export const strictTypeChecked: Linter.Config[] = defineConfig(
102113
{
103114
ignores: GLOB_JS,

.pkgs/configs/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@
2020
},
2121
"dependencies": {
2222
"@eslint/js": "^9.39.1",
23-
"@stylistic/eslint-plugin": "^5.5.0",
23+
"@stylistic/eslint-plugin": "^5.6.1",
2424
"eslint-plugin-de-morgan": "^2.0.0",
25-
"eslint-plugin-function": "^0.0.34",
26-
"eslint-plugin-function-rule": "^0.0.16",
27-
"eslint-plugin-jsdoc": "^61.2.1",
25+
"eslint-plugin-function": "^0.0.35",
26+
"eslint-plugin-function-rule": "^0.0.17",
27+
"eslint-plugin-jsdoc": "^61.4.0",
2828
"eslint-plugin-perfectionist": "^4.15.1",
2929
"eslint-plugin-regexp": "^2.10.0",
3030
"eslint-plugin-unicorn": "^62.0.0",
31-
"typescript-eslint": "^8.46.4"
31+
"typescript-eslint": "^8.47.0"
3232
},
3333
"peerDependencies": {
3434
"eslint": "^9.39.1",
35+
"typedoc": "0.28.14",
36+
"typedoc-plugin-markdown": "^4.9.0",
37+
"typedoc-plugin-mdn-links": "^5.0.10",
3538
"typescript": "^5.9.3"
3639
}
3740
}

.pkgs/configs/typedoc.base.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,38 @@
22
"$schema": "https://typedoc.org/schema.json",
33
"cleanOutputDir": true,
44
"disableSources": true,
5-
"hideGenerator": true,
5+
"entryPoints": [
6+
"src/index.ts"
7+
],
68
"excludeInternal": true,
9+
"expandObjects": true,
10+
"expandParameters": true,
11+
"hideGenerator": true,
12+
"hidePageHeader": true,
13+
"hidePageTitle": false,
14+
"indexFormat": "table",
15+
"parametersFormat": "table",
16+
"interfacePropertiesFormat": "table",
17+
"classPropertiesFormat": "table",
18+
"typeAliasPropertiesFormat": "table",
19+
"enumMembersFormat": "table",
20+
"propertyMembersFormat": "table",
21+
"typeDeclarationFormat": "table",
722
"jsDocCompatibility": true,
823
"logLevel": "Warn",
24+
"name": "Public APIs",
25+
"out": "docs",
26+
"plugin": [
27+
"typedoc-plugin-markdown",
28+
"typedoc-plugin-mdn-links"
29+
],
930
"readme": "none",
1031
"sort": [
1132
"kind",
1233
"instance-first",
1334
"alphabetical"
1435
],
15-
"plugin": [
16-
"typedoc-plugin-markdown",
17-
"typedoc-plugin-mdn-links"
18-
],
1936
"theme": "default",
37+
"useCodeBlocks": true,
2038
"useTsLinkResolution": true
2139
}

.pkgs/function-rules/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"lint:ts": "tsc --noEmit"
2222
},
2323
"dependencies": {
24-
"eslint-plugin-function-rule": "^0.0.16"
24+
"eslint-plugin-function-rule": "^0.0.17"
2525
},
2626
"devDependencies": {
2727
"eslint": "^9.39.1",
28-
"tsdown": "^0.16.4"
28+
"tsdown": "^0.16.6"
2929
},
3030
"peerDependencies": {
3131
"eslint": "^9.39.1",

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## v2.3.7 (2025-11-21)
2+
3+
### 🐞 Fixes
4+
5+
- `web-api/no-leaked-event-listener` does not report event listeners with `signal`, closes #1282 by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/1325
6+
7+
**Full Changelog**: https://github.com/Rel1cx/eslint-react/compare/v2.3.5...v2.3.7
8+
19
## v2.3.5 (2025-11-13)
210

311
### 🐞 Fixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Version](https://img.shields.io/npm/v/@eslint-react/eslint-plugin?style=flat&colorA=111111&colorB=000000)](https://npmjs.com/package/@eslint-react/eslint-plugin)
66
[![Downloads](https://img.shields.io/npm/dt/@eslint-react/eslint-plugin.svg?style=flat&colorA=222222&colorB=000000)](https://npmjs.com/package/@eslint-react/eslint-plugin)
77
[![License](https://img.shields.io/npm/l/@eslint-react/eslint-plugin?style=flat&colorA=333333&colorB=000000)](https://npmjs.com/package/@eslint-react/eslint-plugin)
8-
[![Build with](https://img.shields.io/badge/[email protected].4-000000?style=flat)](https://tsdown.dev)
8+
[![Build with](https://img.shields.io/badge/[email protected].5-000000?style=flat)](https://tsdown.dev)
99

1010
4-7x faster composable ESLint rules for React and friends.
1111

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.6-beta.7
1+
2.3.8-beta.0

apps/website/content/docs/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
title: Changelog
33
---
44

5+
## v2.3.7 (2025-11-21)
6+
7+
### 🐞 Fixes
8+
9+
- `web-api/no-leaked-event-listener` does not report event listeners with `signal`, closes #1282 by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/1325
10+
11+
**Full Changelog**: https://github.com/Rel1cx/eslint-react/compare/v2.3.5...v2.3.7
12+
513
## v2.3.5 (2025-11-13)
614

715
### 🐞 Fixes

0 commit comments

Comments
 (0)