eslint-plugin-react-features 1.1.0 โ†’ 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +32 -2
  2. package/README.md +36 -105
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,13 +5,43 @@ All notable changes to `eslint-plugin-react-features` will be documented in this
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
9
-
10
8
  ### Documentation
11
9
 
12
10
  - ๐Ÿ“˜ Launched new documentation site: [eslint.interlace.tools](https://eslint.interlace.tools/)
13
11
  - ๐Ÿ“ Achieved 100% documentation parity (both .md and .mdx files)
14
12
 
13
+ ## [1.1.0] - 2026-02-02
14
+
15
+ ### Features
16
+
17
+ - **infra:** migrate from pnpm to npm for Vercel compatibility ([46172cd7](https://github.com/ofri-peretz/eslint/commit/46172cd7))
18
+ - **docs:** implement 3-pillar navigation with sidebar tabs ([03c3f688](https://github.com/ofri-peretz/eslint/commit/03c3f688))
19
+ - **docs:** deploy new Interlace VI and mobile UX ([c05b5106](https://github.com/ofri-peretz/eslint/commit/c05b5106))
20
+ - add high-fidelity OG images, banners, and update docs layout ([bf60afed](https://github.com/ofri-peretz/eslint/commit/bf60afed))
21
+
22
+ ### Bug Fixes
23
+
24
+ - **release:** fix release workflow logic, docs cache, and promote lint warnings to errors ([5945113a](https://github.com/ofri-peretz/eslint/commit/5945113a))
25
+ - **docs:** resolve MDX compatibility issues and add validation tests ([dac50031](https://github.com/ofri-peretz/eslint/commit/dac50031))
26
+ - **docs:** revert inappropriate security additions to non-security plugins ([b8b7bac0](https://github.com/ofri-peretz/eslint/commit/b8b7bac0))
27
+ - **docs:** strict readout alignment to NestJS structure and table consolidation --no-verify ([6e12c39f](https://github.com/ofri-peretz/eslint/commit/6e12c39f))
28
+ - **docs:** wrap lucide icons with span for title attribute compatibility ([bd36290d](https://github.com/ofri-peretz/eslint/commit/bd36290d))
29
+
30
+ ### Documentation
31
+
32
+ - update rule documentation and docs app UI improvements ([53c83f8c](https://github.com/ofri-peretz/eslint/commit/53c83f8c))
33
+ - add Known False Negatives to all rules (173 rules updated) ([1e988afd](https://github.com/ofri-peretz/eslint/commit/1e988afd))
34
+ - fleet-wide documentation compliance - 160 rules improved ([1d68f96a](https://github.com/ofri-peretz/eslint/commit/1d68f96a))
35
+ - update plugin documentation with standardized badges and new OG images ([627773c9](https://github.com/ofri-peretz/eslint/commit/627773c9))
36
+ - finalize readme structure, drop security research coverage ([30b96dbd](https://github.com/ofri-peretz/eslint/commit/30b96dbd))
37
+ - remove header and legend artifacts from rules table ([8e46b93e](https://github.com/ofri-peretz/eslint/commit/8e46b93e))
38
+ - finalize readme layout with centered badges and strict structure ([f9413c91](https://github.com/ofri-peretz/eslint/commit/f9413c91))
39
+ - align main README with Interlace branding ([15e520cd](https://github.com/ofri-peretz/eslint/commit/15e520cd))
40
+
41
+ ### โค๏ธ Thank You
42
+
43
+ - Ofri Peretz
44
+
15
45
  ## [1.0.0] - 2026-01-26
16
46
 
17
47
  ### Added
package/README.md CHANGED
@@ -16,31 +16,27 @@
16
16
 
17
17
  ## Description
18
18
 
19
- This plugin optimizes your React development by enforcing advanced patterns, proper hook usage, and industry best practices. It identifies inefficient rendering, improper state management, and potential memory leaks, ensuring your application runs smoothly. By following these guidelines, you can write more robust and performant React code that aligns with the specialized features of the framework.
19
+ This plugin provides Advanced React patterns, hook usage, and best practices enforcement.
20
+ By using this plugin, you can proactively identify and mitigate security risks across your entire codebase.
20
21
 
21
22
  ## Philosophy
22
23
 
23
- **Interlace** fosters **strength through integration**. We **interlace** React best practices directly into your workflow, catching bugs and performance issues before they ship. Tools should **guide rather than gatekeep**, providing educational feedback that strengthens developers.
24
-
25
- **Why an independent ecosystem?** ๐Ÿš€ Ship fast without upstream bureaucracy โ€ข ๐Ÿค– AI-optimized messages (severity, fixes) โ€ข โšก Unified codebase for performance โ€ข ๐Ÿ—๏ธ Consistent patterns across all plugins โ€ข ๐Ÿ“š Educational "why" explanations
26
-
27
- All rules are **clean-room implementations** following `eslint-plugin-react` naming conventions โ€” familiar API, better engineering.
24
+ **Interlace** fosters **strength through integration**. Instead of stacking isolated rules, we **interlace** security directly into your workflow to create a resilient fabric of code. We believe tools should **guide rather than gatekeep**, providing educational feedback that strengthens the developer with every interaction.
28
25
 
29
26
  ## Getting Started
30
27
 
31
- - To check out the [guide](https://eslint.interlace.tools/docs/react-features), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
32
- - ่ฆๆŸฅ็œ‹ไธญๆ–‡ [ๆŒ‡ๅ—](https://eslint.interlace.tools/docs/react-features), ่ฏท่ฎฟ้—ฎ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
33
- - [๊ฐ€์ด๋“œ](https://eslint.interlace.tools/docs/react-features) ๋ฌธ์„œ๋Š” [eslint.interlace.tools](https://eslint.interlace.tools)์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ“š
34
- - [ใ‚ฌใ‚คใƒ‰](https://eslint.interlace.tools/docs/react-features)ใฏ [eslint.interlace.tools](https://eslint.interlace.tools)ใงใ”็ขบ่ชใใ ใ•ใ„ใ€‚ ๐Ÿ“š
35
- - Para ver la [guรญa](https://eslint.interlace.tools/docs/react-features), visita [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
36
- - ู„ู„ุงุทู„ุงุน ุนู„ู‰ [ุงู„ุฏู„ูŠู„](https://eslint.interlace.tools/docs/react-features)ุŒ ู‚ู… ุจุฒูŠุงุฑุฉ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
28
+ - To check out the [guide](https://eslint.interlace.tools/docs/quality/plugin-react-features), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
29
+ - ่ฆๆŸฅ็œ‹ไธญๆ–‡ [ๆŒ‡ๅ—](https://eslint.interlace.tools/docs/quality/plugin-react-features), ่ฏท่ฎฟ้—ฎ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
30
+ - [๊ฐ€์ด๋“œ](https://eslint.interlace.tools/docs/quality/plugin-react-features) ๋ฌธ์„œ๋Š” [eslint.interlace.tools](https://eslint.interlace.tools)์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ“š
31
+ - [ใ‚ฌใ‚คใƒ‰](https://eslint.interlace.tools/docs/quality/plugin-react-features)ใฏ [eslint.interlace.tools](https://eslint.interlace.tools)ใงใ”็ขบ่ชใใ ใ•ใ„ใ€‚ ๐Ÿ“š
32
+ - Para ver la [guรญa](https://eslint.interlace.tools/docs/quality/plugin-react-features), visita [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
33
+ - ู„ู„ุงุทู„ุงุน ุนู„ู‰ [ุงู„ุฏู„ูŠู„](https://eslint.interlace.tools/docs/quality/plugin-react-features)ุŒ ู‚ู… ุจุฒูŠุงุฑุฉ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
37
34
 
38
35
  ```bash
39
36
  npm install eslint-plugin-react-features --save-dev
40
37
  ```
41
38
 
42
39
  ## โš™๏ธ Configuration Presets
43
-
44
40
  | Preset | Description |
45
41
  | :------------ | :----------------------------------------------- |
46
42
  | `recommended` | Recommended React patterns and performance rules |
@@ -49,107 +45,42 @@ npm install eslint-plugin-react-features --save-dev
49
45
 
50
46
  **Legend**
51
47
 
52
- | Icon | Description |
53
- | :--: | :----------------------------------------------------------------- |
54
- | ๐Ÿ’ผ | **Recommended**: Included in the recommended preset. |
55
- | โš ๏ธ | **Warns**: Set to warn in recommended preset. |
56
- | ๐Ÿ”ง | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
57
- | ๐Ÿ’ก | **Suggestions**: Providing code suggestions in IDE. |
58
-
59
- | Rule | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง |
60
- | :-------------------------------------- | :------------------------------------------------------ | :-: | :-: | :-: |
61
- | `jsx-key` | React: Detect missing key props in iterators | ๐Ÿ’ผ | | |
62
- | `no-direct-mutation-state` | React: Prevent direct state mutation | ๐Ÿ’ผ | | |
63
- | `no-children-prop` | React: Disallow passing children as prop | ๐Ÿ’ผ | | |
64
- | `no-string-refs` | React: Disallow string refs | ๐Ÿ’ผ | | |
65
- | `no-unknown-property` | React: Detect unknown DOM properties | ๐Ÿ’ผ | | ๐Ÿ”ง |
66
- | `no-unescaped-entities` | React: Disallow unescaped entities in JSX | ๐Ÿ’ผ | | |
67
- | `display-name` | React: Require displayName for components | | โš ๏ธ | |
68
- | `no-this-in-sfc` | React: Disallow `this` in stateless components | ๐Ÿ’ผ | | |
69
- | `no-access-state-in-setstate` | React: Prevent using this.state in setState | ๐Ÿ’ผ | | |
70
- | `no-render-return-value` | React: Prevent using ReactDOM.render return value | ๐Ÿ’ผ | | |
71
- | `require-render-return` | React: Require return in render method | ๐Ÿ’ผ | | |
72
- | `react-in-jsx-scope` | React: Require React in scope (pre-17) | | | |
73
- | `jsx-no-target-blank` | Security: Require rel="noopener" with target="\_blank" | ๐Ÿ’ผ | | |
74
- | `jsx-no-script-url` | Security: Disallow javascript: URLs | ๐Ÿ’ผ | | |
75
- | `jsx-no-duplicate-props` | Security: Prevent duplicate props | ๐Ÿ’ผ | | |
76
- | `no-danger` | Security: Disallow dangerouslySetInnerHTML | ๐Ÿ’ผ | | |
77
- | `no-danger-with-children` | Security: Prevent dangerouslySetInnerHTML with children | ๐Ÿ’ผ | | |
78
- | `hooks-exhaustive-deps` | Hooks: Check effect dependencies | ๐Ÿ’ผ | | ๐Ÿ”ง |
79
- | `jsx-no-bind` | Performance: Disallow .bind() in JSX props | | โš ๏ธ | |
80
- | `no-unnecessary-rerenders` | Performance: Detect patterns causing rerenders | ๐Ÿ’ผ | | |
81
- | `react-render-optimization` | Performance: Suggest render optimizations | ๐Ÿ’ผ | | |
82
- | `react-no-inline-functions` | Performance: Disallow inline functions in JSX | | โš ๏ธ | |
83
- | `require-optimization` | Performance: Enforce shouldComponentUpdate | | โš ๏ธ | |
84
- | `no-object-type-as-default-prop` | Performance: Prevent object/array as default prop | | โš ๏ธ | |
85
- | `no-did-mount-set-state` | Class: Disallow setState in componentDidMount | | โš ๏ธ | |
86
- | `no-did-update-set-state` | Class: Disallow setState in componentDidUpdate | | โš ๏ธ | |
87
- | `no-set-state` | Class: Disallow setState usage | | | |
88
- | `prefer-es6-class` | Class: Enforce ES6 class for components | | โš ๏ธ | |
89
- | `prefer-stateless-function` | Class: Suggest stateless functions when possible | | โš ๏ธ | |
90
- | `no-redundant-should-component-update` | Class: Prevent useless shouldComponentUpdate | ๐Ÿ’ผ | | |
91
- | `no-arrow-function-lifecycle` | Class: Disallow arrow functions for lifecycle | | โš ๏ธ | |
92
- | `sort-comp` | Class: Enforce component method order | | | |
93
- | `state-in-constructor` | Class: Enforce state initialization in constructor | | | |
94
- | `static-property-placement` | Class: Enforce static property placement | | | |
95
- | `no-deprecated` | Deprecated: Warn about deprecated React APIs | | โš ๏ธ | |
96
- | `no-find-dom-node` | Deprecated: Disallow findDOMNode | ๐Ÿ’ผ | | |
97
- | `no-is-mounted` | Deprecated: Disallow isMounted usage | ๐Ÿ’ผ | | |
98
- | `no-unsafe` | Deprecated: Disallow UNSAFE\_ lifecycle methods | | โš ๏ธ | |
99
- | `void-dom-elements-no-children` | Deprecated: Prevent void elements with children | ๐Ÿ’ผ | | |
100
- | `jsx-handler-names` | JSX: Enforce event handler naming conventions | | | |
101
- | `jsx-max-depth` | JSX: Enforce maximum JSX nesting depth | | | |
102
- | `jsx-no-literals` | JSX: Disallow string literals in JSX | | | |
103
- | `no-namespace` | JSX: Disallow namespace in JSX | | โš ๏ธ | |
104
- | `no-adjacent-inline-elements` | JSX: Prevent adjacent inline elements | | | |
105
- | `no-invalid-html-attribute` | JSX: Disallow invalid HTML attributes | | โš ๏ธ | |
106
- | `prop-types` | Props: Validate prop types | | | |
107
- | `require-default-props` | Props: Require default props for optional props | | | |
108
- | `default-props-match-prop-types` | Props: Ensure defaultProps match propTypes | | โš ๏ธ | |
109
- | `checked-requires-onchange-or-readonly` | Props: Require onChange or readOnly with checked | ๐Ÿ’ผ | | |
110
- | `no-typos` | Props: Prevent common typos in properties | ๐Ÿ’ผ | | |
111
- | `no-multi-comp` | Props: Prevent multiple components per file | | | |
112
- | `react-class-to-hooks` | Migration: Assist class to hooks migration | | | ๐Ÿ’ก |
113
-
114
- ---
115
-
116
- ## AI-Optimized Messages
117
-
118
- This plugin is optimized for ESLint's [Model Context Protocol (MCP)](https://eslint.org/docs/latest/use/mcp), enabling AI assistants like **Cursor**, **GitHub Copilot**, and **Claude** to:
119
-
120
- - Understand the exact vulnerability type via CWE references
121
- - Apply the correct fix using structured guidance
122
- - Provide educational context to developers
123
-
124
- ```json
125
- // .cursor/mcp.json
126
- {
127
- "mcpServers": {
128
- "eslint": {
129
- "command": "npx",
130
- "args": ["@eslint/mcp@latest"]
131
- }
132
- }
133
- }
134
- ```
48
+ | Icon | Description |
49
+ | :---: | :--- |
50
+ | ๐Ÿ’ผ | **Recommended**: Included in the recommended preset. |
51
+ | โš ๏ธ | **Warns**: Set towarn in recommended preset. |
52
+ | ๐Ÿ”ง | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
53
+ | ๐Ÿ’ก | **Suggestions**: Providing code suggestions in IDE. |
54
+ | ๐Ÿšซ | **Deprecated**: This rule is deprecated. |
135
55
 
136
- ---
56
+ | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
57
+ | :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: |
58
+ | [migration](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/migration) | | | | Enforce migration | | | | | |
59
+ | [performance](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/performance) | | | | Enforce performance | | | | | |
60
+ | [react](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react) | | | | Enforce react | | | | | |
137
61
 
138
62
  ## ๐Ÿ”— Related ESLint Plugins
139
63
 
140
- Part of the **Interlace ESLint Ecosystem** โ€” AI-native plugins with LLM-optimized error messages:
64
+ Part of the **Interlace ESLint Ecosystem** โ€” AI-native security plugins with LLM-optimized error messages:
141
65
 
142
- | Plugin | Downloads | Description |
143
- | :----------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------- |
66
+ | Plugin | Downloads | Description |
67
+ | :--- | :---: | :--- |
144
68
  | [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-secure-coding.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-secure-coding) | General security rules & OWASP guidelines. |
145
- | [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-react-a11y.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility & WCAG compliance. |
146
- | [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-crypto.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-crypto) | NodeJS Cryptography security rules. |
147
- | [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-jwt.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-jwt) | JWT security & best practices. |
69
+ | [`eslint-plugin-pg`](https://www.npmjs.com/package/eslint-plugin-pg) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-pg.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-pg) | PostgreSQL security & best practices. |
70
+ | [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-crypto.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-crypto) | NodeJS Cryptography security rules. |
71
+ | [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-jwt.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-jwt) | JWT security & best practices. |
72
+ | [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-browser-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-browser-security) | Browser-specific security & XSS prevention. |
73
+ | [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-express-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-express-security) | Express.js security hardening rules. |
74
+ | [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-lambda-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda security best practices. |
75
+ | [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-nestjs-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS security rules & patterns. |
76
+ | [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mongodb-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB security best practices. |
77
+ | [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-vercel-ai-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | Vercel AI SDK security hardening. |
78
+ | [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-import-next.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-import-next) | Next-gen import sorting & architecture. |
148
79
 
149
80
  ## ๐Ÿ“„ License
150
81
 
151
82
  MIT ยฉ [Ofri Peretz](https://github.com/ofri-peretz)
152
83
 
153
84
  <p align="center">
154
- <a href="https://eslint.interlace.tools/docs/react-features"><img src="https://eslint.interlace.tools/images/og-react-features.png" alt="ESLint Interlace Plugin" width="300" /></a>
155
- </p>
85
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-react-features"><img src="https://eslint.interlace.tools/images/og-react-features.png" alt="ESLint Interlace Plugin" width="100%" /></a>
86
+ </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-features",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "ESLint React rules for modern react features, hooks, and patterns.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",