eslint-plugin-reliability 3.0.0 โ†’ 3.0.2

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 (2) hide show
  1. package/README.md +48 -37
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,33 +3,40 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
- Error handling, null safety, and runtime reliability rules for robust applications.
6
+ Security-focused ESLint plugin.
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/eslint-plugin-reliability" target="_blank"><img src="https://img.shields.io/npm/v/eslint-plugin-reliability.svg" alt="NPM Version" /></a>
11
11
  <a href="https://www.npmjs.com/package/eslint-plugin-reliability" target="_blank"><img src="https://img.shields.io/npm/dm/eslint-plugin-reliability.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=reliability" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=reliability" alt="Codecov" /></a>
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>
13
15
  </p>
14
16
 
15
17
  ## Description
16
18
 
17
- This plugin enforces reliable code patterns by detecting unhandled promises, silent error swallowing, missing null checks, and network timeouts. It helps teams build applications that fail gracefully and recover predictably.
19
+ This plugin provides Security-focused ESLint plugin.
20
+ By using this plugin, you can proactively identify and mitigate security risks across your entire codebase.
18
21
 
19
22
  ## Philosophy
20
23
 
21
- **Interlace** fosters **strength through integration**. Reliability isn't optional โ€” it's foundational. These rules catch common runtime failure patterns before they cause incidents in production.
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.
22
25
 
23
26
  ## Getting Started
24
27
 
25
- - To check out the [guide](https://eslint.interlace.tools/docs/reliability), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
28
+ - To check out the [guide](https://eslint.interlace.tools/docs/quality/plugin-reliability), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
29
+ - ่ฆๆŸฅ็œ‹ไธญๆ–‡ [ๆŒ‡ๅ—](https://eslint.interlace.tools/docs/quality/plugin-reliability), ่ฏท่ฎฟ้—ฎ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
30
+ - [๊ฐ€์ด๋“œ](https://eslint.interlace.tools/docs/quality/plugin-reliability) ๋ฌธ์„œ๋Š” [eslint.interlace.tools](https://eslint.interlace.tools)์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ“š
31
+ - [ใ‚ฌใ‚คใƒ‰](https://eslint.interlace.tools/docs/quality/plugin-reliability)ใฏ [eslint.interlace.tools](https://eslint.interlace.tools)ใงใ”็ขบ่ชใใ ใ•ใ„ใ€‚ ๐Ÿ“š
32
+ - Para ver la [guรญa](https://eslint.interlace.tools/docs/quality/plugin-reliability), visita [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
33
+ - ู„ู„ุงุทู„ุงุน ุนู„ู‰ [ุงู„ุฏู„ูŠู„](https://eslint.interlace.tools/docs/quality/plugin-reliability)ุŒ ู‚ู… ุจุฒูŠุงุฑุฉ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
26
34
 
27
35
  ```bash
28
36
  npm install eslint-plugin-reliability --save-dev
29
37
  ```
30
38
 
31
39
  ## โš™๏ธ Configuration Presets
32
-
33
40
  | Preset | Description |
34
41
  | :------------ | :-------------------------------------------- |
35
42
  | `recommended` | Balanced reliability checks for most projects |
@@ -37,7 +44,6 @@ npm install eslint-plugin-reliability --save-dev
37
44
  ---
38
45
 
39
46
  ## ๐Ÿข Usage Example
40
-
41
47
  ```js
42
48
  // eslint.config.js
43
49
  import reliability from 'eslint-plugin-reliability';
@@ -47,32 +53,7 @@ export default [reliability.configs.recommended];
47
53
 
48
54
  ---
49
55
 
50
- ## Rules
51
-
52
- ### Error Handling
53
-
54
- | Rule | Description | ๐Ÿ’ผ | โš ๏ธ |
55
- | :------------------------------------------------------------------- | :-------------------------------------------- | :-: | :-: |
56
- | [no-unhandled-promise](./docs/rules/no-unhandled-promise.md) | Detect unhandled promise rejections | | |
57
- | [no-silent-errors](./docs/rules/no-silent-errors.md) | Detect empty catch blocks that swallow errors | ๐Ÿ’ผ | โš ๏ธ |
58
- | [no-missing-error-context](./docs/rules/no-missing-error-context.md) | Require error context when re-throwing | | |
59
- | [error-message](./docs/rules/error-message.md) | Require meaningful error messages | | |
60
-
61
- ### Runtime Safety
62
-
63
- | Rule | Description | ๐Ÿ’ผ | โš ๏ธ |
64
- | :------------------------------------------------------------------- | :--------------------------------------------- | :-: | :-: |
65
- | [no-missing-null-checks](./docs/rules/no-missing-null-checks.md) | Detect potential null/undefined dereferences | ๐Ÿ’ผ | โš ๏ธ |
66
- | [no-unsafe-type-narrowing](./docs/rules/no-unsafe-type-narrowing.md) | Detect unsafe type narrowing patterns | | |
67
- | [require-network-timeout](./docs/rules/require-network-timeout.md) | Require timeouts on network requests | ๐Ÿ’ผ | |
68
- | [no-await-in-loop](./docs/rules/no-await-in-loop.md) | Detect sequential await in loops (performance) | | |
69
-
70
- **Legend**: ๐Ÿ’ผ Recommended | โš ๏ธ Warns (not error)
71
-
72
- ---
73
-
74
56
  ## Why These Rules?
75
-
76
57
  ### `no-silent-errors`
77
58
 
78
59
  Empty catch blocks hide errors, making debugging impossible.
@@ -145,15 +126,45 @@ const results = await Promise.all(userIds.map((id) => fetchUser(id)));
145
126
 
146
127
  ---
147
128
 
148
- ## ๐Ÿ”— Related ESLint Plugins
129
+ ## Rules
130
+
131
+ **Legend**
149
132
 
150
- Part of the **Interlace ESLint Ecosystem** โ€” AI-native quality plugins with LLM-optimized error messages:
133
+ | Icon | Description |
134
+ | :---: | :--- |
135
+ | ๐Ÿ’ผ | **Recommended**: Included in the recommended preset. |
136
+ | โš ๏ธ | **Warns**: Set towarn in recommended preset. |
137
+ | ๐Ÿ”ง | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
138
+ | ๐Ÿ’ก | **Suggestions**: Providing code suggestions in IDE. |
139
+ | ๐Ÿšซ | **Deprecated**: This rule is deprecated. |
151
140
 
152
- | Plugin | Description |
153
- | :--------------------------------------------------------------------------------------------- | :---------------------------------- |
154
- | [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness & debug code |
155
- | [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive complexity & code quality |
141
+ | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
142
+ | :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: |
143
+ | [error-handling](https://eslint.interlace.tools/docs/quality/plugin-reliability/rules/error-handling) | | | | Enforce error handling | | | | | |
144
+ | [reliability](https://eslint.interlace.tools/docs/quality/plugin-reliability/rules/reliability) | | | | Enforce reliability | | | | | |
145
+
146
+ ## ๐Ÿ”— Related ESLint Plugins
147
+
148
+ Part of the **Interlace ESLint Ecosystem** โ€” AI-native security plugins with LLM-optimized error messages:
149
+
150
+ | Plugin | Downloads | Description |
151
+ | :--- | :---: | :--- |
152
+ | [`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. |
153
+ | [`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. |
154
+ | [`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. |
155
+ | [`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. |
156
+ | [`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. |
157
+ | [`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. |
158
+ | [`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. |
159
+ | [`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. |
160
+ | [`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. |
161
+ | [`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. |
162
+ | [`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. |
156
163
 
157
164
  ## ๐Ÿ“„ License
158
165
 
159
166
  MIT ยฉ [Ofri Peretz](https://github.com/ofri-peretz)
167
+
168
+ <p align="center">
169
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-reliability"><img src="https://eslint.interlace.tools/images/og-reliability.png" alt="ESLint Interlace Plugin" width="100%" /></a>
170
+ </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-reliability",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "ESLint rules for runtime stability, fault tolerance, and type safety.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",