@interlace/eslint-devkit 1.3.0 → 1.3.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/AGENTS.md +1 -1
- package/README.md +2 -2
- package/package.json +9 -12
- package/src/rule-creation/rule-creator.d.ts +6 -2
- package/CHANGELOG.md +0 -88
package/AGENTS.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @interlace/eslint-devkit
|
|
2
|
-
[](https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint_devkit)
|
|
3
2
|
|
|
4
3
|
**Build ESLint plugins that write themselves** - TypeScript utilities for creating rules that AI assistants can understand and auto-fix.
|
|
5
4
|
|
|
6
5
|
[](https://www.npmjs.com/package/@interlace/eslint-devkit)
|
|
7
6
|
[](https://www.npmjs.com/package/@interlace/eslint-devkit)
|
|
7
|
+
[](https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-devkit)
|
|
8
8
|
|
|
9
9
|
> **Keywords:** ESLint utilities, LLM-optimized, AI assistant, auto-fix, TypeScript ESLint, AST utilities, type checking, rule creation, GitHub Copilot, Cursor AI, Claude AI, structured error messages, deterministic fixes
|
|
10
10
|
|
|
@@ -27,7 +27,7 @@ Create your first LLM-optimized rule in 2 minutes:
|
|
|
27
27
|
```bash
|
|
28
28
|
npm install --save-dev @interlace/eslint-devkit @typescript-eslint/parser typescript
|
|
29
29
|
# or
|
|
30
|
-
|
|
30
|
+
npm add -D @interlace/eslint-devkit @typescript-eslint/parser typescript
|
|
31
31
|
# or
|
|
32
32
|
yarn add -D @interlace/eslint-devkit @typescript-eslint/parser typescript
|
|
33
33
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interlace/eslint-devkit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "TypeScript utilities for building LLM-optimized ESLint plugins - AST helpers, type utilities, security benchmarks, and SARIF output",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
22
22
|
"license": "MIT",
|
|
23
|
-
"homepage": "https://github.com/ofri-peretz/eslint#readme",
|
|
23
|
+
"homepage": "https://github.com/ofri-peretz/eslint/tree/main/packages/eslint-devkit#readme",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "
|
|
26
|
+
"url": "https://github.com/ofri-peretz/eslint",
|
|
27
27
|
"directory": "packages/eslint-devkit"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"node": ">=18.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"
|
|
65
|
-
"@typescript-eslint/utils": "^8.46.2",
|
|
66
|
-
"get-tsconfig": "^4.13.0",
|
|
67
|
-
"enhanced-resolve": "^5.18.3"
|
|
64
|
+
"tslib": "^2.3.0"
|
|
68
65
|
},
|
|
69
66
|
"peerDependenciesMeta": {
|
|
67
|
+
"typescript": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
70
|
"get-tsconfig": {
|
|
71
71
|
"optional": true
|
|
72
72
|
},
|
|
@@ -74,12 +74,9 @@
|
|
|
74
74
|
"optional": true
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
"optionalDependencies": {
|
|
78
|
-
"get-tsconfig": "^4.13.0",
|
|
79
|
-
"enhanced-resolve": "^5.18.3"
|
|
80
|
-
},
|
|
77
|
+
"optionalDependencies": {},
|
|
81
78
|
"dependencies": {
|
|
82
|
-
"
|
|
79
|
+
"@typescript-eslint/utils": "^7.0.0 || ^8.0.0"
|
|
83
80
|
},
|
|
84
81
|
"devDependencies": {
|
|
85
82
|
"@typescript-eslint/parser": "^8.46.2"
|
|
@@ -34,13 +34,17 @@ type DocsUrl = (ruleName: string) => string;
|
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
export declare function createRuleCreator(urlCreator: DocsUrl): <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener
|
|
37
|
+
export declare function createRuleCreator(urlCreator: DocsUrl): <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
38
40
|
/**
|
|
39
41
|
* Default rule creator with a generic documentation URL pattern
|
|
40
42
|
*
|
|
41
43
|
* This can be used directly if you don't need custom URL generation
|
|
42
44
|
*/
|
|
43
|
-
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener
|
|
45
|
+
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, unknown>>) => ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
44
48
|
/**
|
|
45
49
|
* Re-export the base RuleCreator from @typescript-eslint/utils
|
|
46
50
|
*/
|
package/CHANGELOG.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to `@interlace/eslint-devkit` are documented here.
|
|
4
|
-
|
|
5
|
-
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and [SemVer](https://semver.org/spec/v2.0.0.html).
|
|
6
|
-
|
|
7
|
-
## [1.0.0] - 2025-11-30
|
|
8
|
-
|
|
9
|
-
### 🚀 Features
|
|
10
|
-
|
|
11
|
-
- Enhanced LLM message formatting utilities.
|
|
12
|
-
- Improved TypeScript typings for IDE support.
|
|
13
|
-
|
|
14
|
-
### 🩹 Fixes
|
|
15
|
-
|
|
16
|
-
- Compatibility fixes for TS strict mode.
|
|
17
|
-
- More accurate type guards for AST checking.
|
|
18
|
-
|
|
19
|
-
### 📌 Notes
|
|
20
|
-
|
|
21
|
-
- Package name aligned to `@interlace/eslint-devkit` (formerly eslint-plugin-utils).
|
|
22
|
-
|
|
23
|
-
### ❤️ Thank You
|
|
24
|
-
|
|
25
|
-
- Ofri Peretz
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## [0.3.0] - 2025-11-15
|
|
30
|
-
|
|
31
|
-
### 🚀 Features
|
|
32
|
-
|
|
33
|
-
- Enhanced type utilities.
|
|
34
|
-
- Improved AST helpers.
|
|
35
|
-
- Better LLM-oriented error messaging.
|
|
36
|
-
|
|
37
|
-
### 🩹 Fixes
|
|
38
|
-
|
|
39
|
-
- Type checking edge cases.
|
|
40
|
-
- Documentation improvements.
|
|
41
|
-
|
|
42
|
-
### ❤️ Thank You
|
|
43
|
-
|
|
44
|
-
- Ofri Peretz
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## [0.2.2] - 2025-11-07
|
|
49
|
-
|
|
50
|
-
### 🩹 Fixes
|
|
51
|
-
|
|
52
|
-
- Config fixes; removed codecov vite plugin.
|
|
53
|
-
- Adjusted ignore patterns in dependency checks.
|
|
54
|
-
- Added vitest to peerDependencies.
|
|
55
|
-
|
|
56
|
-
### ❤️ Thank You
|
|
57
|
-
|
|
58
|
-
- Ofri Peretz
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## [0.2.1] - 2025-11-07
|
|
63
|
-
|
|
64
|
-
### 🩹 Fixes
|
|
65
|
-
|
|
66
|
-
- Config and dependency-check adjustments.
|
|
67
|
-
|
|
68
|
-
### ❤️ Thank You
|
|
69
|
-
|
|
70
|
-
- Ofri Peretz
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## [0.2.0] - 2025-11-02
|
|
75
|
-
|
|
76
|
-
Version bump to align packages; no code changes.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## [0.1.1] - 2025-11-02
|
|
81
|
-
|
|
82
|
-
Version bump to align packages; no code changes.
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## [0.1.0] - 2025-11-02
|
|
87
|
-
|
|
88
|
-
Initial prerelease for the devkit utilities.
|