eslint-plugin-conventions 4.0.0 โ 4.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.
- package/README.md +44 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,33 +3,40 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
|
|
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-conventions" target="_blank"><img src="https://img.shields.io/npm/v/eslint-plugin-conventions.svg" alt="NPM Version" /></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/eslint-plugin-conventions" target="_blank"><img src="https://img.shields.io/npm/dm/eslint-plugin-conventions.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=conventions" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=conventions" 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
|
|
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**.
|
|
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/conventions), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐
|
|
28
|
+
- To check out the [guide](https://eslint.interlace.tools/docs/quality/plugin-conventions), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐
|
|
29
|
+
- ่ฆๆฅ็ไธญๆ [ๆๅ](https://eslint.interlace.tools/docs/quality/plugin-conventions), ่ฏท่ฎฟ้ฎ [eslint.interlace.tools](https://eslint.interlace.tools). ๐
|
|
30
|
+
- [๊ฐ์ด๋](https://eslint.interlace.tools/docs/quality/plugin-conventions) ๋ฌธ์๋ [eslint.interlace.tools](https://eslint.interlace.tools)์์ ํ์ธํ์ค ์ ์์ต๋๋ค. ๐
|
|
31
|
+
- [ใฌใคใ](https://eslint.interlace.tools/docs/quality/plugin-conventions)ใฏ [eslint.interlace.tools](https://eslint.interlace.tools)ใงใ็ขบ่ชใใ ใใใ ๐
|
|
32
|
+
- Para ver la [guรญa](https://eslint.interlace.tools/docs/quality/plugin-conventions), visita [eslint.interlace.tools](https://eslint.interlace.tools). ๐
|
|
33
|
+
- ููุงุทูุงุน ุนูู [ุงูุฏููู](https://eslint.interlace.tools/docs/quality/plugin-conventions)ุ ูู
ุจุฒูุงุฑุฉ [eslint.interlace.tools](https://eslint.interlace.tools). ๐
|
|
26
34
|
|
|
27
35
|
```bash
|
|
28
36
|
npm install eslint-plugin-conventions --save-dev
|
|
29
37
|
```
|
|
30
38
|
|
|
31
39
|
## โ๏ธ Configuration Presets
|
|
32
|
-
|
|
33
40
|
| Preset | Description |
|
|
34
41
|
| :------------ | :---------------------------------- |
|
|
35
42
|
| `recommended` | Balanced conventions for most teams |
|
|
@@ -37,7 +44,6 @@ npm install eslint-plugin-conventions --save-dev
|
|
|
37
44
|
---
|
|
38
45
|
|
|
39
46
|
## ๐ข Usage Example
|
|
40
|
-
|
|
41
47
|
```js
|
|
42
48
|
// eslint.config.js
|
|
43
49
|
import conventions from 'eslint-plugin-conventions';
|
|
@@ -49,32 +55,44 @@ export default [conventions.configs.recommended];
|
|
|
49
55
|
|
|
50
56
|
## Rules
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
| :--------------------------------------------------------------------------------------- | :-------------------------------------------------------- | :-: | :-: |
|
|
54
|
-
| [no-commented-code](./docs/rules/no-commented-code.md) | Disallow commented-out code blocks | ๐ผ | โ ๏ธ |
|
|
55
|
-
| [expiring-todo-comments](./docs/rules/expiring-todo-comments.md) | Enforce expiration dates on TODO comments | ๐ผ | โ ๏ธ |
|
|
56
|
-
| [prefer-code-point](./docs/rules/prefer-code-point.md) | Prefer `codePointAt` over `charCodeAt` for Unicode safety | | |
|
|
57
|
-
| [prefer-dom-node-text-content](./docs/rules/prefer-dom-node-text-content.md) | Prefer `textContent` over `innerText` for performance | | |
|
|
58
|
-
| [no-console-spaces](./docs/rules/no-console-spaces.md) | Disallow leading/trailing spaces in console calls | | |
|
|
59
|
-
| [no-deprecated-api](./docs/rules/no-deprecated-api.md) | Disallow usage of deprecated Node.js APIs | ๐ผ | โ ๏ธ |
|
|
60
|
-
| [prefer-dependency-version-strategy](./docs/rules/prefer-dependency-version-strategy.md) | Enforce consistent version strategies in package.json | | |
|
|
61
|
-
| [filename-case](./docs/rules/filename-case.md) | Enforce consistent file naming conventions | | |
|
|
62
|
-
| [consistent-existence-index-check](./docs/rules/consistent-existence-index-check.md) | Enforce consistent array index existence checks | | |
|
|
58
|
+
**Legend**
|
|
63
59
|
|
|
64
|
-
|
|
60
|
+
| Icon | Description |
|
|
61
|
+
| :---: | :--- |
|
|
62
|
+
| ๐ผ | **Recommended**: Included in the recommended preset. |
|
|
63
|
+
| โ ๏ธ | **Warns**: Set towarn in recommended preset. |
|
|
64
|
+
| ๐ง | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
65
|
+
| ๐ก | **Suggestions**: Providing code suggestions in IDE. |
|
|
66
|
+
| ๐ซ | **Deprecated**: This rule is deprecated. |
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
| Rule | CWE | OWASP | CVSS | Description | ๐ผ | โ ๏ธ | ๐ง | ๐ก | ๐ซ |
|
|
69
|
+
| :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
70
|
+
| [conventions](https://eslint.interlace.tools/docs/quality/plugin-conventions/rules/conventions) | | | | Enforce conventions | | | | | |
|
|
71
|
+
| [deprecation](https://eslint.interlace.tools/docs/quality/plugin-conventions/rules/deprecation) | | | | Enforce deprecation | | | | | |
|
|
72
|
+
| [development](https://eslint.interlace.tools/docs/quality/plugin-conventions/rules/development) | | | | Enforce development | | | | | |
|
|
67
73
|
|
|
68
74
|
## ๐ Related ESLint Plugins
|
|
69
75
|
|
|
70
|
-
Part of the **Interlace ESLint Ecosystem** โ AI-native
|
|
71
|
-
|
|
72
|
-
| Plugin
|
|
73
|
-
|
|
|
74
|
-
| [`eslint-plugin-
|
|
75
|
-
| [`eslint-plugin-
|
|
76
|
-
| [`eslint-plugin-
|
|
76
|
+
Part of the **Interlace ESLint Ecosystem** โ AI-native security plugins with LLM-optimized error messages:
|
|
77
|
+
|
|
78
|
+
| Plugin | Downloads | Description |
|
|
79
|
+
| :--- | :---: | :--- |
|
|
80
|
+
| [`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. |
|
|
81
|
+
| [`eslint-plugin-pg`](https://www.npmjs.com/package/eslint-plugin-pg) | [](https://www.npmjs.com/package/eslint-plugin-pg) | PostgreSQL security & best practices. |
|
|
82
|
+
| [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | [](https://www.npmjs.com/package/eslint-plugin-crypto) | NodeJS Cryptography security rules. |
|
|
83
|
+
| [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [](https://www.npmjs.com/package/eslint-plugin-jwt) | JWT security & best practices. |
|
|
84
|
+
| [`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. |
|
|
85
|
+
| [`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. |
|
|
86
|
+
| [`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. |
|
|
87
|
+
| [`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. |
|
|
88
|
+
| [`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. |
|
|
89
|
+
| [`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. |
|
|
90
|
+
| [`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. |
|
|
77
91
|
|
|
78
92
|
## ๐ License
|
|
79
93
|
|
|
80
94
|
MIT ยฉ [Ofri Peretz](https://github.com/ofri-peretz)
|
|
95
|
+
|
|
96
|
+
<p align="center">
|
|
97
|
+
<a href="https://eslint.interlace.tools/docs/quality/plugin-conventions"><img src="https://eslint.interlace.tools/images/og-conventions.png" alt="ESLint Interlace Plugin" width="100%" /></a>
|
|
98
|
+
</p>
|