oxlint-plugin-modernization 3.1.9 → 3.2.0
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/README.md +217 -11
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/package.json +22 -11
package/README.md
CHANGED
|
@@ -1,22 +1,228 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://eslint.interlace.tools/docs/quality/plugin-modernization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="90" /></picture></a>
|
|
3
|
+
|
|
4
|
+
<a href="https://oxc.rs" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/oxlint-dark.svg"><img src="https://eslint.interlace.tools/logos/oxlint-light.svg" alt="oxlint" height="90" /></picture></a>
|
|
5
|
+
</p>
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
Modernization rules — prefer modern ES idioms over legacy patterns.
|
|
9
|
+
</p>
|
|
5
10
|
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-modernization" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-modernization.svg" alt="NPM Version" /></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-modernization" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-modernization.svg" alt="NPM Downloads" /></a>
|
|
14
|
+
<a href="https://packagephobia.com/result?p=oxlint-plugin-modernization" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-modernization" alt="Install Size" /></a>
|
|
15
|
+
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
|
|
16
|
+
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-modernization" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-modernization" alt="Codecov" /></a>
|
|
17
|
+
<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>
|
|
18
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/ofri-peretz/eslint" target="_blank"><img src="https://api.securityscorecards.dev/projects/github.com/ofri-peretz/eslint/badge" alt="OpenSSF Scorecard" /></a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
> ⭐ If this plugin caught a real bug for you, [**star the repo**](https://github.com/ofri-peretz/eslint) — it's the signal that keeps these rules maintained.
|
|
22
|
+
|
|
23
|
+
## Description
|
|
24
|
+
|
|
25
|
+
`oxlint-plugin-modernization` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization). It carries the same rules under the same IDs (`modernization/<rule>`), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
|
|
26
|
+
|
|
27
|
+
## Why These Rules?
|
|
28
|
+
|
|
29
|
+
### `no-instanceof-array`
|
|
30
|
+
|
|
31
|
+
`instanceof Array` fails across different realms (iframes, workers). `Array.isArray()` is the correct, reliable check.
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
// ❌ Bad: Fails across realms
|
|
35
|
+
if (value instanceof Array) {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ✅ Good: Works everywhere
|
|
39
|
+
if (Array.isArray(value)) {
|
|
40
|
+
}
|
|
8
41
|
```
|
|
9
42
|
|
|
10
|
-
|
|
43
|
+
### `prefer-at`
|
|
11
44
|
|
|
12
|
-
|
|
13
|
-
|
|
45
|
+
`Array.at()` provides cleaner negative index access (ES2022+).
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
// ❌ Bad: Verbose negative index access
|
|
49
|
+
const last = arr[arr.length - 1];
|
|
50
|
+
|
|
51
|
+
// ✅ Good: Clean ES2022+ syntax
|
|
52
|
+
const last = arr.at(-1);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### `prefer-event-target`
|
|
56
|
+
|
|
57
|
+
`EventTarget` is the native browser API and doesn't require Node.js polyfills.
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
// ❌ Bad: Requires polyfill in browsers
|
|
61
|
+
import { EventEmitter } from 'events';
|
|
62
|
+
|
|
63
|
+
// ✅ Good: Native browser API
|
|
64
|
+
const target = new EventTarget();
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Covered natively by oxlint
|
|
70
|
+
|
|
71
|
+
oxlint already ships 3 of these 4 rules as built-ins. Enable the built-in instead: it is the same check, runs natively, and running both would report every finding twice. Each rule carries the mapping as `meta.interop.nativeEquivalent`.
|
|
72
|
+
|
|
73
|
+
| This plugin | oxlint built-in |
|
|
74
|
+
| :---------------------------------- | :---------------------------- |
|
|
75
|
+
| `modernization/no-instanceof-array` | `unicorn/no-instanceof-array` |
|
|
76
|
+
| `modernization/prefer-at` | `unicorn/prefer-at` |
|
|
77
|
+
| `modernization/prefer-event-target` | `unicorn/prefer-event-target` |
|
|
78
|
+
|
|
79
|
+
What this package adds to oxlint is the other 1: every rule in the table below that is not listed here.
|
|
80
|
+
|
|
81
|
+
- **Why** — a linter nobody reads protects nothing. We would rather miss a finding
|
|
82
|
+
than spend your attention on one that was never real.
|
|
83
|
+
- **How** — evidence, not names. A rule fires on what the code _does_, resolved
|
|
84
|
+
through the AST and ESLint's own scope analysis.
|
|
85
|
+
- **What** — every finding carries its fix, in prose for a human and as structured
|
|
86
|
+
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
|
|
87
|
+
|
|
88
|
+
That trade costs recall, and we measure it:
|
|
89
|
+
[methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
|
|
90
|
+
· [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
|
|
91
|
+
· [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
|
|
92
|
+
|
|
93
|
+
## Getting Started
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install oxlint-plugin-modernization --save-dev
|
|
14
97
|
```
|
|
15
98
|
|
|
16
|
-
|
|
99
|
+
### Vite+
|
|
17
100
|
|
|
18
101
|
```ts
|
|
19
|
-
|
|
102
|
+
// vite.config.ts
|
|
103
|
+
import { defineConfig } from 'vite-plus';
|
|
104
|
+
|
|
105
|
+
export default defineConfig({
|
|
106
|
+
lint: {
|
|
107
|
+
jsPlugins: ['oxlint-plugin-modernization'],
|
|
108
|
+
rules: {
|
|
109
|
+
'modernization/prefer-template-literal': 'error',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
});
|
|
20
113
|
```
|
|
21
114
|
|
|
22
|
-
|
|
115
|
+
### oxlint
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"jsPlugins": ["oxlint-plugin-modernization"],
|
|
120
|
+
"rules": {
|
|
121
|
+
"modernization/prefer-template-literal": "error"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
That enables one rule as an example; add the ones you want from the table below.
|
|
127
|
+
|
|
128
|
+
### ESLint
|
|
129
|
+
|
|
130
|
+
Install [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) instead. It has the same rules, plus presets for ESLint's flat config.
|
|
131
|
+
|
|
132
|
+
## 📦 Compatibility
|
|
133
|
+
|
|
134
|
+
| Package | Version |
|
|
135
|
+
| :------ | :--------------------------------------------------------------- |
|
|
136
|
+
| oxlint | verified on `1.88.0`: CI loads every rule ID through `jsPlugins` |
|
|
137
|
+
| Vite+ | `lint.jsPlugins` in `vite.config.ts` |
|
|
138
|
+
| Node.js | `>=18.0.0` |
|
|
139
|
+
|
|
140
|
+
## Rules
|
|
141
|
+
|
|
142
|
+
**Legend**
|
|
143
|
+
|
|
144
|
+
| Icon | Description |
|
|
145
|
+
| :--: | :------------------------------------------------------------------------ |
|
|
146
|
+
| 💼 | **Recommended**: Included in the recommended preset. |
|
|
147
|
+
| ⚠️ | **Warns**: Set to warn in recommended preset. |
|
|
148
|
+
| 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
149
|
+
| 💡 | **Suggestions**: Providing code suggestions in IDE. |
|
|
150
|
+
| 🚫 | **Deprecated**: This rule is deprecated. |
|
|
151
|
+
| 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
|
|
152
|
+
| 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
|
|
153
|
+
| 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
|
|
154
|
+
|
|
155
|
+
| Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
|
|
156
|
+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-: | :---: | :--: | :---------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
|
|
157
|
+
| [no-instanceof-array](https://eslint.interlace.tools/docs/quality/plugin-modernization/rules/no-instanceof-array?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization) | | | | Prefer Array.isArray() over instanceof Array for reliable type checking across different JavaScript realms… | 🟢 | 💼 | | | 💡 | |
|
|
158
|
+
| [prefer-at](https://eslint.interlace.tools/docs/quality/plugin-modernization/rules/prefer-at?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization) | | | | Prefer using Array.at() for accessing elements, especially with negative indices | 🟢 | | ⚠️ | | 💡 | |
|
|
159
|
+
| [prefer-event-target](https://eslint.interlace.tools/docs/quality/plugin-modernization/rules/prefer-event-target?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization) | | | | Prefer EventTarget over EventEmitter for isomorphic code | 🟢 | | ⚠️ | | 💡 | |
|
|
160
|
+
| [prefer-template-literal](https://eslint.interlace.tools/docs/quality/plugin-modernization/rules/prefer-template-literal?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization) | | | | Prefer template literals over string concatenation with runtime values | 🟢 | | ⚠️ | | | |
|
|
161
|
+
|
|
162
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
|
|
163
|
+
|
|
164
|
+
## 🔗 Related ESLint Plugins
|
|
165
|
+
|
|
166
|
+
Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
|
|
167
|
+
|
|
168
|
+
**Security**
|
|
169
|
+
|
|
170
|
+
| Plugin | Downloads | Description |
|
|
171
|
+
| :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
|
|
172
|
+
| [`eslint-plugin-anthropic-security`](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | [](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | Anthropic SDK security. |
|
|
173
|
+
| [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [](https://www.npmjs.com/package/eslint-plugin-browser-security) | XSS, DOM security. |
|
|
174
|
+
| [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
|
|
175
|
+
| [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [](https://www.npmjs.com/package/eslint-plugin-express-security) | Express middleware hardening. |
|
|
176
|
+
| [`eslint-plugin-gemini-security`](https://www.npmjs.com/package/eslint-plugin-gemini-security) | [](https://www.npmjs.com/package/eslint-plugin-gemini-security) | Google Gemini SDK security. |
|
|
177
|
+
| [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
|
|
178
|
+
| [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
|
|
179
|
+
| [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda hardening. |
|
|
180
|
+
| [`eslint-plugin-mcp-sdk-security`](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | [](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | MCP SDK security. |
|
|
181
|
+
| [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB injection. |
|
|
182
|
+
| [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
|
|
183
|
+
| [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS framework hardening. |
|
|
184
|
+
| [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [](https://www.npmjs.com/package/eslint-plugin-node-security) | Server-side patterns. |
|
|
185
|
+
| [`eslint-plugin-openai-security`](https://www.npmjs.com/package/eslint-plugin-openai-security) | [](https://www.npmjs.com/package/eslint-plugin-openai-security) | OpenAI SDK security. |
|
|
186
|
+
| [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
|
|
187
|
+
| [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
|
|
188
|
+
| [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [](https://www.npmjs.com/package/eslint-plugin-secure-coding) | Injection prevention. |
|
|
189
|
+
| [`eslint-plugin-sequelize-security`](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | [](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | Sequelize ORM security. |
|
|
190
|
+
| [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
|
|
191
|
+
| [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
|
|
192
|
+
| [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
|
|
193
|
+
| [`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) | AI SDK security. |
|
|
194
|
+
|
|
195
|
+
**Code quality**
|
|
196
|
+
|
|
197
|
+
| Plugin | Downloads | Description |
|
|
198
|
+
| :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------- |
|
|
199
|
+
| [`eslint-plugin-cli-floor`](https://www.npmjs.com/package/eslint-plugin-cli-floor) | [](https://www.npmjs.com/package/eslint-plugin-cli-floor) | CLI floor for commander, yargs and burgee. |
|
|
200
|
+
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
201
|
+
| [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [](https://www.npmjs.com/package/eslint-plugin-import-next) | Fast cycle + import-graph analysis. |
|
|
202
|
+
| [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
|
|
203
|
+
| [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
|
|
204
|
+
| [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
|
|
205
|
+
| [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
|
|
206
|
+
| [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility / WCAG. |
|
|
207
|
+
| [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
|
|
208
|
+
| [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
|
|
209
|
+
|
|
210
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
|
|
211
|
+
|
|
212
|
+
## ⭐ Support & follow
|
|
213
|
+
|
|
214
|
+
If this plugin caught a real bug for you, **[star the repo](https://github.com/ofri-peretz/eslint)** — stars are the signal that keeps the Interlace ESLint ecosystem maintained — and **[follow the writeups on Dev.to](https://dev.to/ofri-peretz)** for the benchmarks and security research behind these rules.
|
|
215
|
+
|
|
216
|
+
[](https://github.com/ofri-peretz/eslint)
|
|
217
|
+
|
|
218
|
+
## 📄 License
|
|
219
|
+
|
|
220
|
+
MIT © [Ofri Peretz](https://github.com/ofri-peretz)
|
|
221
|
+
|
|
222
|
+
<p align="center">
|
|
223
|
+
<a href="https://eslint.interlace.tools/docs/quality/plugin-modernization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization"><img src="https://eslint.interlace.tools/images/og-modernization.png" alt="ESLint Interlace Plugin" width="100%" /></a>
|
|
224
|
+
</p>
|
|
225
|
+
|
|
226
|
+
<p align="center">
|
|
227
|
+
<a href="https://eslint.interlace.tools/docs/quality/plugin-modernization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modernization" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="70" /></picture></a>
|
|
228
|
+
</p>
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports
|
|
1
|
+
module.exports=require("eslint-plugin-modernization/oxlint");
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-modernization",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "The modernization rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-modernization.",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"index.js",
|
|
9
10
|
"index.d.ts",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"oxlint",
|
|
15
16
|
"oxlint-plugin",
|
|
16
17
|
"vite-plus",
|
|
17
|
-
"
|
|
18
|
+
"eslint",
|
|
18
19
|
"static-analysis",
|
|
19
20
|
"linting",
|
|
20
21
|
"code-quality",
|
|
@@ -31,18 +32,28 @@
|
|
|
31
32
|
"ai-assistant",
|
|
32
33
|
"typescript"
|
|
33
34
|
],
|
|
34
|
-
"
|
|
35
|
-
"eslint-plugin-modernization": "3.1.9"
|
|
36
|
-
},
|
|
37
|
-
"license": "MIT",
|
|
35
|
+
"homepage": "https://eslint.interlace.tools/docs/quality/plugin-modernization?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-modernization",
|
|
38
36
|
"repository": {
|
|
39
37
|
"type": "git",
|
|
40
38
|
"url": "git+https://github.com/ofri-peretz/eslint.git",
|
|
41
39
|
"directory": "packages/oxlint-plugin-modernization"
|
|
42
40
|
},
|
|
43
|
-
"homepage": "https://eslint.interlace.tools/docs/quality/plugin-modernization?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-modernization",
|
|
44
41
|
"bugs": {
|
|
45
42
|
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
46
43
|
},
|
|
47
|
-
"author": "Ofri Peretz <ofriperetzdev@gmail.com>"
|
|
44
|
+
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"funding": {
|
|
50
|
+
"type": "github",
|
|
51
|
+
"url": "git+https://github.com/ofri-peretz/eslint.git"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"eslint-plugin-modernization": "3.2.0"
|
|
58
|
+
}
|
|
48
59
|
}
|