eslint-plugin-react-features 1.1.3 → 1.1.4
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 +20 -0
- package/README.md +72 -11
- package/package.json +15 -3
- package/src/index.d.ts +375 -6
- package/src/index.js +15 -1
- package/src/oxlint.d.ts +20 -0
- package/src/oxlint.js +21 -0
- package/src/rules/migration/react-class-to-hooks.js +6 -1
- package/src/rules/performance/no-unnecessary-rerenders.js +7 -3
- package/src/rules/performance/react-no-inline-functions.js +3 -0
- package/src/rules/performance/react-render-optimization.js +2 -1
- package/src/rules/react/checked-requires-onchange-or-readonly.js +1 -0
- package/src/rules/react/default-props-match-prop-types.js +1 -0
- package/src/rules/react/display-name.js +1 -0
- package/src/rules/react/hooks-exhaustive-deps.d.ts +1 -1
- package/src/rules/react/hooks-exhaustive-deps.js +136 -47
- package/src/rules/react/jsx-handler-names.js +1 -0
- package/src/rules/react/jsx-key.js +3 -2
- package/src/rules/react/jsx-max-depth.js +1 -0
- package/src/rules/react/jsx-no-bind.js +1 -0
- package/src/rules/react/jsx-no-duplicate-props.js +1 -0
- package/src/rules/react/jsx-no-literals.js +1 -0
- package/src/rules/react/jsx-no-script-url.js +6 -2
- package/src/rules/react/jsx-no-target-blank.js +7 -1
- package/src/rules/react/no-access-state-in-setstate.js +1 -0
- package/src/rules/react/no-adjacent-inline-elements.js +1 -0
- package/src/rules/react/no-arrow-function-lifecycle.js +1 -0
- package/src/rules/react/no-children-prop.js +1 -0
- package/src/rules/react/no-danger-with-children.js +2 -0
- package/src/rules/react/no-danger.js +3 -0
- package/src/rules/react/no-deprecated.js +1 -0
- package/src/rules/react/no-did-mount-set-state.js +1 -0
- package/src/rules/react/no-did-update-set-state.js +1 -0
- package/src/rules/react/no-direct-mutation-state.js +24 -66
- package/src/rules/react/no-find-dom-node.js +1 -0
- package/src/rules/react/no-invalid-html-attribute.js +1 -0
- package/src/rules/react/no-is-mounted.js +1 -0
- package/src/rules/react/no-multi-comp.js +4 -0
- package/src/rules/react/no-namespace.js +1 -0
- package/src/rules/react/no-object-type-as-default-prop.js +1 -0
- package/src/rules/react/no-redundant-should-component-update.js +1 -0
- package/src/rules/react/no-render-return-value.js +1 -0
- package/src/rules/react/no-set-state.js +1 -0
- package/src/rules/react/no-string-refs.js +1 -0
- package/src/rules/react/no-this-in-sfc.js +1 -0
- package/src/rules/react/no-typos.js +1 -0
- package/src/rules/react/no-unescaped-entities.js +1 -0
- package/src/rules/react/no-unknown-property.js +1 -0
- package/src/rules/react/no-unsafe.js +1 -0
- package/src/rules/react/prefer-es6-class.js +1 -0
- package/src/rules/react/prefer-stateless-function.js +8 -3
- package/src/rules/react/prop-types.js +2 -0
- package/src/rules/react/react-in-jsx-scope.js +1 -0
- package/src/rules/react/require-default-props.js +4 -0
- package/src/rules/react/require-optimization.js +1 -0
- package/src/rules/react/require-render-return.js +1 -0
- package/src/rules/react/required-attributes.js +6 -0
- package/src/rules/react/sort-comp.js +17 -13
- package/src/rules/react/state-in-constructor.js +3 -0
- package/src/rules/react/static-property-placement.js +7 -0
- package/src/rules/react/void-dom-elements-no-children.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [1.1.4] - 2026-05-03
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- `jsx-no-target-blank`: replaced `/^\/\//.test(href)` with `href.startsWith('//')` (oxlint correctness rule).
|
|
6
|
+
|
|
7
|
+
## [1.1.3] - 2026-02-08
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- align codecov component IDs with full package names ([2831b968](https://github.com/ofri-peretz/eslint/commit/2831b968))
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- fix changelog header format across all packages ([c3a15082](https://github.com/ofri-peretz/eslint/commit/c3a15082))
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- Ofri Peretz
|
|
20
|
+
|
|
1
21
|
## [1.1.2] - 2026-02-06
|
|
2
22
|
|
|
3
23
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/eslint-plugin-react-features" target="_blank"><img src="https://img.shields.io/npm/v/eslint-plugin-react-features.svg" alt="NPM Version" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/eslint-plugin-react-features" target="_blank"><img src="https://img.shields.io/npm/dm/eslint-plugin-react-features.svg" alt="NPM Downloads" /></a>
|
|
12
12
|
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
|
|
13
|
-
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=react-features" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=
|
|
13
|
+
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=react-features" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=react-features" alt="Codecov" /></a>
|
|
14
14
|
<a href="https://github.com/ofri-peretz/eslint" target="_blank"><img src="https://img.shields.io/badge/Since-Dec_2025-blue?logo=rocket&logoColor=white" alt="Since Dec 2025" /></a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
## Description
|
|
18
18
|
|
|
19
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.
|
|
21
20
|
|
|
22
21
|
## Philosophy
|
|
23
22
|
|
|
@@ -41,6 +40,14 @@ npm install eslint-plugin-react-features --save-dev
|
|
|
41
40
|
| :------------ | :----------------------------------------------- |
|
|
42
41
|
| `recommended` | Recommended React patterns and performance rules |
|
|
43
42
|
|
|
43
|
+
## 📦 Compatibility
|
|
44
|
+
| Package | Version |
|
|
45
|
+
| :--- | :--- |
|
|
46
|
+
| ESLint | `^8.0.0 \|\| ^9.0.0 \|\| ^10.0.0` |
|
|
47
|
+
| Node.js | `>=18.0.0` |
|
|
48
|
+
|
|
49
|
+
See the [ESLint Version Support Policy](../../docs/ESLINT_VERSION_SUPPORT.md) — current ecosystem share data, the 20% gate, and the forward-looking exception that covers v10.
|
|
50
|
+
|
|
44
51
|
## Rules
|
|
45
52
|
|
|
46
53
|
**Legend**
|
|
@@ -48,17 +55,71 @@ npm install eslint-plugin-react-features --save-dev
|
|
|
48
55
|
| Icon | Description |
|
|
49
56
|
| :---: | :--- |
|
|
50
57
|
| 💼 | **Recommended**: Included in the recommended preset. |
|
|
51
|
-
| ⚠️ | **Warns**: Set
|
|
58
|
+
| ⚠️ | **Warns**: Set to warn in recommended preset. |
|
|
52
59
|
| 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
53
60
|
| 💡 | **Suggestions**: Providing code suggestions in IDE. |
|
|
54
61
|
| 🚫 | **Deprecated**: This rule is deprecated. |
|
|
55
|
-
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
|
61
|
-
|
|
62
|
+
| 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
|
|
63
|
+
| 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
|
|
64
|
+
| 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
|
|
65
|
+
|
|
66
|
+
<!-- AUTO-GENERATED:RULES_TABLE:START - Do not edit manually -->
|
|
67
|
+
| Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
|
|
68
|
+
| :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
|
|
69
|
+
| [checked-requires-onchange-or-readonly](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/checked-requires-onchange-or-readonly) | | | | checked-requires-onchange-or-readonly rule | 🟢 | | | | 💡 | |
|
|
70
|
+
| [default-props-match-prop-types](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/default-props-match-prop-types) | | | | default-props-match-prop-types rule | 🟢 | | | | 💡 | |
|
|
71
|
+
| [display-name](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/display-name) | | | | display-name rule | 🟢 | | | | 💡 | |
|
|
72
|
+
| [hooks-exhaustive-deps](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/hooks-exhaustive-deps) | | | | hooks-exhaustive-deps rule | 🟢 | | | | 💡 | |
|
|
73
|
+
| [jsx-handler-names](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-handler-names) | | | | jsx-handler-names rule | 🟢 | | | | 💡 | |
|
|
74
|
+
| [jsx-key](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-key) | | | | jsx-key rule | 🟢 | | | | 💡 | |
|
|
75
|
+
| [jsx-max-depth](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-max-depth) | | | | jsx-max-depth rule | 🟢 | | | | 💡 | |
|
|
76
|
+
| [jsx-no-bind](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-bind) | | | | jsx-no-bind rule | 🟢 | | | | 💡 | |
|
|
77
|
+
| [jsx-no-duplicate-props](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-duplicate-props) | | | | Prevent duplicate props in JSX elements. This rule is part of eslint-plugin-react-features and provides LLM… | 🟢 | | | | 💡 | |
|
|
78
|
+
| [jsx-no-literals](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-literals) | | | | jsx-no-literals rule | 🟢 | | | | 💡 | |
|
|
79
|
+
| [jsx-no-script-url](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-script-url) | | | | Prevent javascript: URLs in JSX. This rule is part of eslint-plugin-react-features and provides LLM-optimiz… | 🟢 | | | | 💡 | |
|
|
80
|
+
| [jsx-no-target-blank](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-target-blank) | | | | Require rel='noopener noreferrer' with target='_blank'. This rule is part of eslint-plugin-react-features a… | 🟢 | | | | 💡 | |
|
|
81
|
+
| [no-access-state-in-setstate](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-access-state-in-setstate) | | | | no-access-state-in-setstate rule | 🟢 | | | | 💡 | |
|
|
82
|
+
| [no-adjacent-inline-elements](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-adjacent-inline-elements) | | | | no-adjacent-inline-elements rule | 🟢 | | | | 💡 | |
|
|
83
|
+
| [no-arrow-function-lifecycle](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-arrow-function-lifecycle) | | | | no-arrow-function-lifecycle rule | 🟢 | | | | 💡 | |
|
|
84
|
+
| [no-children-prop](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-children-prop) | | | | no-children-prop rule | 🟢 | | | | 💡 | |
|
|
85
|
+
| [no-danger](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-danger) | CWE-79 | | | no-danger rule | 🟢 | | | | 💡 | |
|
|
86
|
+
| [no-danger-with-children](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-danger-with-children) | | | | Prevent using children and dangerouslySetInnerHTML together. This rule is part of eslint-plugin-react-featu… | 🟢 | | | | 💡 | |
|
|
87
|
+
| [no-deprecated](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-deprecated) | | | | Warn about using deprecated React APIs. This rule is part of eslint-plugin-react-features and provides LLM-… | 🟢 | | | | 💡 | |
|
|
88
|
+
| [no-did-mount-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-did-mount-set-state) | | | | no-did-mount-set-state rule | 🟢 | | | | 💡 | |
|
|
89
|
+
| [no-did-update-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-did-update-set-state) | | | | no-did-update-set-state rule | 🟢 | | | | 💡 | |
|
|
90
|
+
| [no-direct-mutation-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-direct-mutation-state) | | | | no-direct-mutation-state rule | 🟢 | | | | 💡 | |
|
|
91
|
+
| [no-find-dom-node](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-find-dom-node) | | | | Prevent using findDOMNode. This rule is part of eslint-plugin-react-features and provides LLM-optimized err… | 🟢 | | | | 💡 | |
|
|
92
|
+
| [no-invalid-html-attribute](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-invalid-html-attribute) | | | | no-invalid-html-attribute rule | 🟢 | | | | 💡 | |
|
|
93
|
+
| [no-is-mounted](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-is-mounted) | | | | no-is-mounted rule | 🟢 | | | | 💡 | |
|
|
94
|
+
| [no-multi-comp](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-multi-comp) | | | | no-multi-comp rule | 🟢 | | | | 💡 | |
|
|
95
|
+
| [no-namespace](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-namespace) | | | | no-namespace rule | 🟢 | | | | 💡 | |
|
|
96
|
+
| [no-object-type-as-default-prop](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-object-type-as-default-prop) | | | | no-object-type-as-default-prop rule | 🟢 | | | | 💡 | |
|
|
97
|
+
| [no-redundant-should-component-update](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-redundant-should-component-update) | | | | no-redundant-should-component-update rule | 🟢 | | | | 💡 | |
|
|
98
|
+
| [no-render-return-value](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-render-return-value) | | | | no-render-return-value rule | 🟢 | | | | 💡 | |
|
|
99
|
+
| [no-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-set-state) | | | | no-set-state rule | 🟢 | | | | 💡 | |
|
|
100
|
+
| [no-string-refs](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-string-refs) | | | | no-string-refs rule | 🟢 | | | | 💡 | |
|
|
101
|
+
| [no-this-in-sfc](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-this-in-sfc) | | | | no-this-in-sfc rule | 🟢 | | | | 💡 | |
|
|
102
|
+
| [no-typos](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-typos) | | | | no-typos rule | 🟢 | | | | 💡 | |
|
|
103
|
+
| [no-unescaped-entities](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unescaped-entities) | | | | no-unescaped-entities rule | 🟢 | | | | 💡 | |
|
|
104
|
+
| [no-unknown-property](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unknown-property) | | | | no-unknown-property rule | 🟢 | | | | 💡 | |
|
|
105
|
+
| [no-unnecessary-rerenders](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unnecessary-rerenders) | | | | no-unnecessary-rerenders rule | 🟢 | | | | 💡 | |
|
|
106
|
+
| [no-unsafe](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unsafe) | | | | Warn about UNSAFE_ lifecycle methods. This rule is part of eslint-plugin-react-features and provides LLM-op… | 🟢 | | | | 💡 | |
|
|
107
|
+
| [prefer-es6-class](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prefer-es6-class) | | | | prefer-es6-class rule | 🟢 | | | | 💡 | |
|
|
108
|
+
| [prefer-stateless-function](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prefer-stateless-function) | | | | prefer-stateless-function rule | 🟢 | | | | 💡 | |
|
|
109
|
+
| [prop-types](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prop-types) | | | | prop-types rule | 🟢 | | | | 💡 | |
|
|
110
|
+
| [react-class-to-hooks](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-class-to-hooks) | | | | react-class-to-hooks rule | 🟢 | | | | 💡 | |
|
|
111
|
+
| [react-in-jsx-scope](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-in-jsx-scope) | | | | react-in-jsx-scope rule | 🟢 | | | | 💡 | |
|
|
112
|
+
| [react-no-inline-functions](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-no-inline-functions) | | | | react-no-inline-functions rule | 🟢 | | | | 💡 | |
|
|
113
|
+
| [react-render-optimization](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-render-optimization) | | | | react-render-optimization rule | 🟢 | | | | 💡 | |
|
|
114
|
+
| [require-default-props](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-default-props) | | | | require-default-props rule | 🟢 | | | | 💡 | |
|
|
115
|
+
| [require-optimization](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-optimization) | | | | require-optimization rule | 🟢 | | | | 💡 | |
|
|
116
|
+
| [require-render-return](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-render-return) | | | | require-render-return rule | 🟢 | | | | 💡 | |
|
|
117
|
+
| [required-attributes](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/required-attributes) | | | | required-attributes rule | 🟢 | | | | 💡 | |
|
|
118
|
+
| [sort-comp](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/sort-comp) | | | | sort-comp rule | 🟢 | | | | 💡 | |
|
|
119
|
+
| [state-in-constructor](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/state-in-constructor) | | | | state-in-constructor rule | 🟢 | | | | 💡 | |
|
|
120
|
+
| [static-property-placement](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/static-property-placement) | | | | static-property-placement rule | 🟢 | | | | 💡 | |
|
|
121
|
+
| [void-dom-elements-no-children](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/void-dom-elements-no-children) | | | | Prevent void DOM elements from receiving children. This rule is part of eslint-plugin-react-features and pr… | 🟢 | | | | 💡 | |
|
|
122
|
+
<!-- AUTO-GENERATED:RULES_TABLE:END -->
|
|
62
123
|
## 🔗 Related ESLint Plugins
|
|
63
124
|
|
|
64
125
|
Part of the **Interlace ESLint Ecosystem** — AI-native security plugins with LLM-optimized error messages:
|
|
@@ -67,7 +128,7 @@ Part of the **Interlace ESLint Ecosystem** — AI-native security plugins with L
|
|
|
67
128
|
| :--- | :---: | :--- |
|
|
68
129
|
| [`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. |
|
|
69
130
|
| [`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-
|
|
131
|
+
| [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [](https://www.npmjs.com/package/eslint-plugin-node-security) | Node.js core-module security (fs, child_process, vm, crypto, Buffer). |
|
|
71
132
|
| [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [](https://www.npmjs.com/package/eslint-plugin-jwt) | JWT security & best practices. |
|
|
72
133
|
| [`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
134
|
| [`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. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-features",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "ESLint React rules for modern react features, hooks, and patterns.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"./types": {
|
|
14
14
|
"types": "./src/types/index.d.ts",
|
|
15
15
|
"default": "./src/types/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./oxlint": {
|
|
18
|
+
"types": "./src/oxlint.d.ts",
|
|
19
|
+
"default": "./src/oxlint.js"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
@@ -39,7 +43,9 @@
|
|
|
39
43
|
"engines": {
|
|
40
44
|
"node": ">=18.0.0"
|
|
41
45
|
},
|
|
42
|
-
"peerDependencies": {
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"eslint": "^8.0.0 || ^9.0.0 || ^10.0.0"
|
|
48
|
+
},
|
|
43
49
|
"peerDependenciesMeta": {
|
|
44
50
|
"typescript": {
|
|
45
51
|
"optional": true
|
|
@@ -61,5 +67,11 @@
|
|
|
61
67
|
"homepage": "https://github.com/ofri-peretz/eslint/tree/main/packages/eslint-plugin-react-features#readme",
|
|
62
68
|
"bugs": {
|
|
63
69
|
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "tsx ../../scripts/build-package.ts",
|
|
73
|
+
"test": "vitest run",
|
|
74
|
+
"test:coverage": "vitest run --coverage",
|
|
75
|
+
"typecheck": "tsc -p tsconfig.lib.json --noEmit"
|
|
64
76
|
}
|
|
65
|
-
}
|
|
77
|
+
}
|