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.
- package/CHANGELOG.md +32 -2
- package/README.md +36 -105
- 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
|
|
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**.
|
|
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
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
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
|
|
143
|
-
|
|
|
66
|
+
| Plugin | Downloads | Description |
|
|
67
|
+
| :--- | :---: | :--- |
|
|
144
68
|
| [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [](https://www.npmjs.com/package/eslint-plugin-secure-coding) | General security rules & OWASP guidelines. |
|
|
145
|
-
| [`eslint-plugin-
|
|
146
|
-
| [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto)
|
|
147
|
-
| [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt)
|
|
69
|
+
| [`eslint-plugin-pg`](https://www.npmjs.com/package/eslint-plugin-pg) | [](https://www.npmjs.com/package/eslint-plugin-pg) | PostgreSQL security & best practices. |
|
|
70
|
+
| [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | [](https://www.npmjs.com/package/eslint-plugin-crypto) | NodeJS Cryptography security rules. |
|
|
71
|
+
| [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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="
|
|
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>
|