oxlint-plugin-modularity 0.0.0-stage → 2.6.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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Ofri Peretz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+
package/README.md CHANGED
@@ -1,3 +1,265 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-modularity?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity" 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
+ &nbsp;&nbsp;
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
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
7
+ <p align="center">
8
+ Modularity rules — module boundaries, circular dependency detection, and layered architecture.
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/oxlint-plugin-modularity" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-modularity.svg" alt="NPM Version" /></a>
13
+ <a href="https://www.npmjs.com/package/oxlint-plugin-modularity" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-modularity.svg" alt="NPM Downloads" /></a>
14
+ <a href="https://packagephobia.com/result?p=oxlint-plugin-modularity" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-modularity" 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-modularity" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-modularity" 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-modularity` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity). It carries the same rules under the same IDs (`modularity/<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
+ ### `ddd-anemic-domain-model`
30
+
31
+ Detects domain entities that are just data containers without behavior — a common anti-pattern.
32
+
33
+ ```ts
34
+ // ❌ Bad: Anemic model, no behavior
35
+ class Order {
36
+ id: string;
37
+ items: OrderItem[];
38
+ status: OrderStatus;
39
+ }
40
+
41
+ // ✅ Good: Rich domain model with behavior
42
+ class Order {
43
+ id: string;
44
+ private items: OrderItem[];
45
+ private status: OrderStatus;
46
+
47
+ addItem(item: OrderItem): void {
48
+ /* ... */
49
+ }
50
+ submit(): void {
51
+ /* ... */
52
+ }
53
+ cancel(reason: string): void {
54
+ /* ... */
55
+ }
56
+ }
57
+ ```
58
+
59
+ ### `ddd-value-object-immutability`
60
+
61
+ Value objects should be immutable. This rule catches mutable value objects.
62
+
63
+ ```ts
64
+ // ❌ Bad: Mutable value object
65
+ class Money {
66
+ amount: number; // Can be mutated!
67
+ }
68
+
69
+ // ✅ Good: Immutable value object
70
+ class Money {
71
+ readonly amount: number;
72
+ readonly currency: string;
73
+
74
+ add(other: Money): Money {
75
+ return new Money(this.amount + other.amount, this.currency);
76
+ }
77
+ }
78
+ ```
79
+
80
+ ### `no-external-api-calls-in-utils`
81
+
82
+ Utility modules should be pure functions without side effects like API calls.
83
+
84
+ ```ts
85
+ // ❌ Bad: Utils with external dependencies
86
+ // src/utils/formatters.ts
87
+ import axios from 'axios';
88
+
89
+ export async function fetchAndFormat(id: string) {
90
+ const data = await axios.get(`/api/${id}`); // External API call!
91
+ return format(data);
92
+ }
93
+
94
+ // ✅ Good: Pure utility function
95
+ export function format(data: Data): FormattedData {
96
+ return {/* pure transformation */};
97
+ }
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Covered natively by oxlint
103
+
104
+ oxlint already ships 1 of these 6 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`.
105
+
106
+ | This plugin | oxlint built-in |
107
+ | :------------------------------ | :-------------------------- |
108
+ | `modularity/no-mutable-exports` | `import/no-mutable-exports` |
109
+
110
+ What this package adds to oxlint is the other 5: every rule in the table below that is not listed here.
111
+
112
+ - **Why** — a linter nobody reads protects nothing. We would rather miss a finding
113
+ than spend your attention on one that was never real.
114
+ - **How** — evidence, not names. A rule fires on what the code _does_, resolved
115
+ through the AST and ESLint's own scope analysis.
116
+ - **What** — every finding carries its fix, in prose for a human and as structured
117
+ JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
118
+
119
+ That trade costs recall, and we measure it:
120
+ [methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
121
+ · [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
122
+ · [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
123
+
124
+ ## Getting Started
125
+
126
+ ```bash
127
+ npm install oxlint-plugin-modularity --save-dev
128
+ ```
129
+
130
+ ### Vite+
131
+
132
+ ```ts
133
+ // vite.config.ts
134
+ import { defineConfig } from 'vite-plus';
135
+
136
+ export default defineConfig({
137
+ lint: {
138
+ jsPlugins: ['oxlint-plugin-modularity'],
139
+ rules: {
140
+ 'modularity/ddd-value-object-immutability': 'error',
141
+ 'modularity/enforce-rest-conventions': 'error',
142
+ 'modularity/no-external-api-calls-in-utils': 'error',
143
+ },
144
+ },
145
+ });
146
+ ```
147
+
148
+ ### oxlint
149
+
150
+ ```json
151
+ {
152
+ "jsPlugins": ["oxlint-plugin-modularity"],
153
+ "rules": {
154
+ "modularity/ddd-value-object-immutability": "error",
155
+ "modularity/enforce-rest-conventions": "error",
156
+ "modularity/no-external-api-calls-in-utils": "error"
157
+ }
158
+ }
159
+ ```
160
+
161
+ These are the rules the plugin recommends (💼 in the table below), minus the ones oxlint already ships natively.
162
+
163
+ ### ESLint
164
+
165
+ Install [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) instead. It has the same rules, plus presets for ESLint's flat config.
166
+
167
+ ## 📦 Compatibility
168
+
169
+ | Package | Version |
170
+ | :------ | :--------------------------------------------------------------- |
171
+ | oxlint | verified on `1.88.0`: CI loads every rule ID through `jsPlugins` |
172
+ | Vite+ | `lint.jsPlugins` in `vite.config.ts` |
173
+ | Node.js | `>=18.0.0` |
174
+
175
+ ## Rules
176
+
177
+ **Legend**
178
+
179
+ | Icon | Description |
180
+ | :--: | :------------------------------------------------------------------------ |
181
+ | 💼 | **Recommended**: Included in the recommended preset. |
182
+ | ⚠️ | **Warns**: Set to warn in recommended preset. |
183
+ | 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
184
+ | 💡 | **Suggestions**: Providing code suggestions in IDE. |
185
+ | 🚫 | **Deprecated**: This rule is deprecated. |
186
+ | 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
187
+ | 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
188
+ | 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
189
+
190
+ | Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
191
+ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-: | :---: | :--: | :---------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
192
+ | [ddd-anemic-domain-model](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/ddd-anemic-domain-model?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | Detects entities with only getters/setters and no business logic, enforcing the Rich Domain Model over the… | 🟢 | | ⚠️ | | 💡 | |
193
+ | [ddd-value-object-immutability](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/ddd-value-object-immutability?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | ESLint Rule: ddd-value-object-immutability with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | 💼 | | | 💡 | |
194
+ | [enforce-naming](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/enforce-naming?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | Enforce domain-specific naming conventions with business context | 🟢 | | ⚠️ | | 💡 | |
195
+ | [enforce-rest-conventions](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/enforce-rest-conventions?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | ESLint Rule: enforce-rest-conventions with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | 💼 | | | 💡 | |
196
+ | [no-external-api-calls-in-utils](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/no-external-api-calls-in-utils?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | ESLint Rule: no-external-api-calls-in-utils with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | 💼 | | | 💡 | |
197
+ | [no-mutable-exports](https://eslint.interlace.tools/docs/quality/plugin-modularity/rules/no-mutable-exports?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity) | | | | Disallow mutable let/var declarations on exported bindings | 🟢 | | ⚠️ | | | |
198
+
199
+ <!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
200
+
201
+ ## 🔗 Related ESLint Plugins
202
+
203
+ Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
204
+
205
+ **Security**
206
+
207
+ | Plugin | Downloads | Description |
208
+ | :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
209
+ | [`eslint-plugin-anthropic-security`](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-anthropic-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | Anthropic SDK security. |
210
+ | [`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) | XSS, DOM security. |
211
+ | [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-drizzle-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
212
+ | [`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 middleware hardening. |
213
+ | [`eslint-plugin-gemini-security`](https://www.npmjs.com/package/eslint-plugin-gemini-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-gemini-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-gemini-security) | Google Gemini SDK security. |
214
+ | [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-jwt-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
215
+ | [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-knex-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
216
+ | [`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 hardening. |
217
+ | [`eslint-plugin-mcp-sdk-security`](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mcp-sdk-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | MCP SDK security. |
218
+ | [`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 injection. |
219
+ | [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mysql-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
220
+ | [`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 framework hardening. |
221
+ | [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-node-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-node-security) | Server-side patterns. |
222
+ | [`eslint-plugin-openai-security`](https://www.npmjs.com/package/eslint-plugin-openai-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-openai-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-openai-security) | OpenAI SDK security. |
223
+ | [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-postgresql-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
224
+ | [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-prisma-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
225
+ | [`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) | Injection prevention. |
226
+ | [`eslint-plugin-sequelize-security`](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-sequelize-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | Sequelize ORM security. |
227
+ | [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-sqlite-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
228
+ | [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-supabase-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
229
+ | [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-typeorm-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
230
+ | [`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) | AI SDK security. |
231
+
232
+ **Code quality**
233
+
234
+ | Plugin | Downloads | Description |
235
+ | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------- |
236
+ | [`eslint-plugin-cli-floor`](https://www.npmjs.com/package/eslint-plugin-cli-floor) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-cli-floor.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-cli-floor) | CLI floor for commander, yargs and burgee. |
237
+ | [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-conventions.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
238
+ | [`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) | Fast cycle + import-graph analysis. |
239
+ | [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-maintainability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
240
+ | [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-modernization.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
241
+ | [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-modularity.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
242
+ | [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-operability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
243
+ | [`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. |
244
+ | [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-react-features.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
245
+ | [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-reliability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
246
+
247
+ <!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
248
+
249
+ ## ⭐ Support & follow
250
+
251
+ 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.
252
+
253
+ [![GitHub stars](https://img.shields.io/github/stars/ofri-peretz/eslint?style=social)](https://github.com/ofri-peretz/eslint)
254
+
255
+ ## 📄 License
256
+
257
+ MIT © [Ofri Peretz](https://github.com/ofri-peretz)
258
+
259
+ <p align="center">
260
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-modularity?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity"><img src="https://eslint.interlace.tools/images/og-modularity.png" alt="ESLint Interlace Plugin" width="100%" /></a>
261
+ </p>
262
+
263
+ <p align="center">
264
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-modularity?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-modularity" 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>
265
+ </p>
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ // Generated by scripts/generate-oxlint-aliases.mts. Do not edit by hand.
2
+ // The rules live in eslint-plugin-modularity; this package only gives them an oxlint name.
3
+ import plugin = require('eslint-plugin-modularity/oxlint');
4
+
5
+ export = plugin;
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports=require("eslint-plugin-modularity/oxlint");
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "oxlint-plugin-modularity",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.6.0",
4
+ "description": "The modularity rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-modularity.",
5
+ "type": "commonjs",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "files": [
9
+ "index.js",
10
+ "index.d.ts",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "keywords": [
15
+ "oxlint",
16
+ "oxlint-plugin",
17
+ "vite-plus",
18
+ "eslint",
19
+ "static-analysis",
20
+ "linting",
21
+ "code-quality",
22
+ "interlace-quality",
23
+ "modularity",
24
+ "architecture",
25
+ "clean-architecture",
26
+ "boundaries",
27
+ "ddd",
28
+ "domain-driven-design",
29
+ "module-boundaries",
30
+ "rest-conventions",
31
+ "llm-optimized",
32
+ "ai-assistant",
33
+ "typescript"
34
+ ],
35
+ "homepage": "https://eslint.interlace.tools/docs/quality/plugin-modularity?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-modularity",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/ofri-peretz/eslint.git",
39
+ "directory": "packages/oxlint-plugin-modularity"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/ofri-peretz/eslint/issues"
43
+ },
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-modularity": "2.6.0"
58
+ }
59
+ }