@interlace/eslint-devkit 1.4.4 → 1.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.
Files changed (43) hide show
  1. package/package.json +22 -12
  2. package/src/aria-definitions.js +0 -14
  3. package/src/ast/ast-utils.js +0 -72
  4. package/src/ast/index.js +0 -6
  5. package/src/ast-node-types.d.ts +29 -0
  6. package/src/ast-node-types.js +174 -0
  7. package/src/index.d.ts +11 -2
  8. package/src/index.js +5 -38
  9. package/src/messaging/config.js +0 -88
  10. package/src/messaging/constants.js +20 -142
  11. package/src/messaging/formatters-ai.js +0 -89
  12. package/src/messaging/formatters-v2.js +0 -151
  13. package/src/messaging/formatters.js +2 -145
  14. package/src/messaging/index.js +0 -6
  15. package/src/messaging/types-v2.js +0 -5
  16. package/src/messaging/types.js +0 -5
  17. package/src/node/fs.js +0 -61
  18. package/src/node/index.js +0 -6
  19. package/src/node/os.js +0 -33
  20. package/src/node/path.js +0 -126
  21. package/src/resolver/dependency-analysis.js +64 -562
  22. package/src/resolver/index.js +0 -6
  23. package/src/resolver/resolver-adapter.js +0 -39
  24. package/src/resolver/resolver-detection.js +0 -48
  25. package/src/resolver/resolver.d.ts +11 -0
  26. package/src/resolver/resolver.js +49 -112
  27. package/src/resolver.js +0 -5
  28. package/src/rule-creation/index.d.ts +1 -0
  29. package/src/rule-creation/index.js +1 -6
  30. package/src/rule-creation/mock-context.d.ts +5 -0
  31. package/src/rule-creation/mock-context.js +1 -9
  32. package/src/rule-creation/rule-creator.d.ts +59 -10
  33. package/src/rule-creation/rule-creator.js +64 -40
  34. package/src/rule-creation/sql-injection-rule.d.ts +68 -0
  35. package/src/rule-creation/sql-injection-rule.js +116 -0
  36. package/src/security/index.js +0 -6
  37. package/src/security/security-utils.js +9 -287
  38. package/src/types/index.js +0 -9
  39. package/src/types/meta-augmentation.js +0 -5
  40. package/src/types/type-utils.d.ts +1 -1
  41. package/src/types/type-utils.js +34 -145
  42. package/AGENTS.md +0 -151
  43. package/CHANGELOG.md +0 -153
@@ -1,9 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * Copyright (c) 2025 Ofri Peretz
4
- * Licensed under the MIT License. Use of this source code is governed by the
5
- * MIT license that can be found in the LICENSE file.
6
- */
7
2
  Object.defineProperty(exports, "__esModule", { value: true });
8
3
  exports.getParserServices = getParserServices;
9
4
  exports.hasParserServices = hasParserServices;
@@ -25,15 +20,20 @@ exports.isUnionOfLiterals = isUnionOfLiterals;
25
20
  exports.isUnionOfStringLiterals = isUnionOfStringLiterals;
26
21
  exports.getStringLiteralValues = getStringLiteralValues;
27
22
  exports.isUnionOfSafeStringLiterals = isUnionOfSafeStringLiterals;
28
- const tslib_1 = require("tslib");
29
- const ts = tslib_1.__importStar(require("typescript"));
30
- /**
31
- * Get the TypeScript Program from ESLint parser services
32
- *
33
- * @throws Error if parser services are not available
34
- */
23
+ const TypeFlags = {
24
+ Any: 1,
25
+ Unknown: 2,
26
+ Undefined: 4,
27
+ Null: 8,
28
+ String: 32,
29
+ Number: 64,
30
+ Boolean: 256,
31
+ StringLiteral: 1024,
32
+ NumberLiteral: 2048,
33
+ BooleanLiteral: 8192,
34
+ Never: 262144,
35
+ };
35
36
  function getParserServices(context) {
36
- // Handle both ESLint 8 and ESLint 9 contexts
37
37
  const parserServices = context.sourceCode?.parserServices ?? context.parserServices;
38
38
  if (!parserServices ||
39
39
  !parserServices.program ||
@@ -41,21 +41,14 @@ function getParserServices(context) {
41
41
  throw new Error('You have used a rule which requires parserServices to be generated. ' +
42
42
  'You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.');
43
43
  }
44
- // At this point we've verified the required properties exist, safe to cast
45
44
  return parserServices;
46
45
  }
47
- /**
48
- * Check if parser services are available without throwing
49
- */
50
46
  function hasParserServices(context) {
51
47
  const parserServices = context.sourceCode?.parserServices ?? context.parserServices;
52
48
  return !!(parserServices &&
53
49
  parserServices.program &&
54
50
  parserServices.esTreeNodeToTSNodeMap);
55
51
  }
56
- /**
57
- * Get the TypeScript type of an ESTree node
58
- */
59
52
  function getTypeOfNode(node, parserServices) {
60
53
  const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
61
54
  const program = parserServices.program;
@@ -65,11 +58,8 @@ function getTypeOfNode(node, parserServices) {
65
58
  const checker = program.getTypeChecker();
66
59
  return checker.getTypeAtLocation(tsNode);
67
60
  }
68
- /**
69
- * Check if a type is any type
70
- */
71
61
  function isAnyType(type) {
72
- if (type.flags & ts.TypeFlags.Any) {
62
+ if (type.flags & TypeFlags.Any) {
73
63
  return true;
74
64
  }
75
65
  if (type.isUnion()) {
@@ -77,11 +67,8 @@ function isAnyType(type) {
77
67
  }
78
68
  return false;
79
69
  }
80
- /**
81
- * Check if a type is unknown type
82
- */
83
70
  function isUnknownType(type) {
84
- if (type.flags & ts.TypeFlags.Unknown) {
71
+ if (type.flags & TypeFlags.Unknown) {
85
72
  return true;
86
73
  }
87
74
  if (type.isUnion()) {
@@ -89,31 +76,22 @@ function isUnknownType(type) {
89
76
  }
90
77
  return false;
91
78
  }
92
- /**
93
- * Check if a type is never type
94
- */
95
79
  function isNeverType(type) {
96
- return (type.flags & ts.TypeFlags.Never) !== 0;
80
+ return (type.flags & TypeFlags.Never) !== 0;
97
81
  }
98
- /**
99
- * Check if a type is null or undefined
100
- */
101
82
  function isNullableType(type) {
102
83
  if (type.isUnion()) {
103
- return type.types.some((t) => (t.flags & ts.TypeFlags.Null) !== 0 ||
104
- (t.flags & ts.TypeFlags.Undefined) !== 0);
84
+ return type.types.some((t) => (t.flags & TypeFlags.Null) !== 0 ||
85
+ (t.flags & TypeFlags.Undefined) !== 0);
105
86
  }
106
- return ((type.flags & ts.TypeFlags.Null) !== 0 ||
107
- (type.flags & ts.TypeFlags.Undefined) !== 0);
87
+ return ((type.flags & TypeFlags.Null) !== 0 ||
88
+ (type.flags & TypeFlags.Undefined) !== 0);
108
89
  }
109
- /**
110
- * Check if a type is a string type
111
- */
112
90
  function isStringType(type) {
113
- if (type.flags & ts.TypeFlags.String) {
91
+ if (type.flags & TypeFlags.String) {
114
92
  return true;
115
93
  }
116
- if (type.flags & ts.TypeFlags.StringLiteral) {
94
+ if (type.flags & TypeFlags.StringLiteral) {
117
95
  return true;
118
96
  }
119
97
  if (type.isUnion()) {
@@ -121,14 +99,11 @@ function isStringType(type) {
121
99
  }
122
100
  return false;
123
101
  }
124
- /**
125
- * Check if a type is a number type
126
- */
127
102
  function isNumberType(type) {
128
- if (type.flags & ts.TypeFlags.Number) {
103
+ if (type.flags & TypeFlags.Number) {
129
104
  return true;
130
105
  }
131
- if (type.flags & ts.TypeFlags.NumberLiteral) {
106
+ if (type.flags & TypeFlags.NumberLiteral) {
132
107
  return true;
133
108
  }
134
109
  if (type.isUnion()) {
@@ -136,14 +111,11 @@ function isNumberType(type) {
136
111
  }
137
112
  return false;
138
113
  }
139
- /**
140
- * Check if a type is a boolean type
141
- */
142
114
  function isBooleanType(type) {
143
- if (type.flags & ts.TypeFlags.Boolean) {
115
+ if (type.flags & TypeFlags.Boolean) {
144
116
  return true;
145
117
  }
146
- if (type.flags & ts.TypeFlags.BooleanLiteral) {
118
+ if (type.flags & TypeFlags.BooleanLiteral) {
147
119
  return true;
148
120
  }
149
121
  if (type.isUnion()) {
@@ -151,9 +123,6 @@ function isBooleanType(type) {
151
123
  }
152
124
  return false;
153
125
  }
154
- /**
155
- * Check if a type is an array type
156
- */
157
126
  function isArrayType(type, checker) {
158
127
  const symbol = type.getSymbol();
159
128
  if (!symbol) {
@@ -161,9 +130,6 @@ function isArrayType(type, checker) {
161
130
  }
162
131
  return symbol.getName() === 'Array' && checker.isArrayType(type);
163
132
  }
164
- /**
165
- * Check if a type is a promise type
166
- */
167
133
  function isPromiseType(type) {
168
134
  const symbol = type.getSymbol();
169
135
  if (!symbol) {
@@ -171,9 +137,6 @@ function isPromiseType(type) {
171
137
  }
172
138
  return symbol.getName() === 'Promise';
173
139
  }
174
- /**
175
- * Get the type arguments of a generic type
176
- */
177
140
  function getTypeArguments(type, checker) {
178
141
  if (checker.isArrayType?.(type)) {
179
142
  return checker.getTypeArguments(type);
@@ -184,9 +147,6 @@ function getTypeArguments(type, checker) {
184
147
  }
185
148
  return [];
186
149
  }
187
- /**
188
- * Check if a type satisfies a predicate (including union types)
189
- */
190
150
  function typeMatchesPredicateRecursive(type, predicate) {
191
151
  if (predicate(type)) {
192
152
  return true;
@@ -199,97 +159,38 @@ function typeMatchesPredicateRecursive(type, predicate) {
199
159
  }
200
160
  return false;
201
161
  }
202
- /**
203
- * Check if a type is a string literal type (e.g., 'name', 'email')
204
- *
205
- * This is useful for detecting statically constrained property keys
206
- * that are safe from object injection attacks.
207
- */
208
162
  function isStringLiteralType(type) {
209
- return (type.flags & ts.TypeFlags.StringLiteral) !== 0;
163
+ return (type.flags & TypeFlags.StringLiteral) !== 0;
210
164
  }
211
- /**
212
- * Check if a type is a number literal type (e.g., 1, 2, 3)
213
- */
214
165
  function isNumberLiteralType(type) {
215
- return (type.flags & ts.TypeFlags.NumberLiteral) !== 0;
166
+ return (type.flags & TypeFlags.NumberLiteral) !== 0;
216
167
  }
217
- /**
218
- * Check if a type is a union of only literal types (string, number, or boolean literals)
219
- *
220
- * This is the key function for type-aware security rules.
221
- * A union like 'name' | 'email' is statically constrained and safe,
222
- * while string | number could be any value at runtime.
223
- *
224
- * @example
225
- * // Returns true - safe, statically constrained:
226
- * type Key = 'name' | 'email' | 'age';
227
- *
228
- * // Returns false - unsafe, could be any string:
229
- * type Key = string;
230
- * type Key = string | number;
231
- * type Key = 'name' | string; // string absorbs the literal
232
- */
233
168
  function isUnionOfLiterals(type) {
234
- // Single literal type
235
169
  if (isStringLiteralType(type) || isNumberLiteralType(type)) {
236
170
  return true;
237
171
  }
238
- // Boolean literal (true | false)
239
- if (type.flags & ts.TypeFlags.BooleanLiteral) {
172
+ if (type.flags & TypeFlags.BooleanLiteral) {
240
173
  return true;
241
174
  }
242
- // Union type - check if ALL members are literals
243
175
  if (type.isUnion()) {
244
176
  return type.types.every((t) => {
245
- // Each type in the union must be a literal
246
- return ((t.flags & ts.TypeFlags.StringLiteral) !== 0 ||
247
- (t.flags & ts.TypeFlags.NumberLiteral) !== 0 ||
248
- (t.flags & ts.TypeFlags.BooleanLiteral) !== 0);
177
+ return ((t.flags & TypeFlags.StringLiteral) !== 0 ||
178
+ (t.flags & TypeFlags.NumberLiteral) !== 0 ||
179
+ (t.flags & TypeFlags.BooleanLiteral) !== 0);
249
180
  });
250
181
  }
251
182
  return false;
252
183
  }
253
- /**
254
- * Check if a type is a union of only string literals
255
- *
256
- * More specific version of isUnionOfLiterals that only allows string literals.
257
- * This is useful for property key validation where only string keys are expected.
258
- *
259
- * @example
260
- * // Returns true:
261
- * type Key = 'name' | 'email';
262
- *
263
- * // Returns false:
264
- * type Key = 'name' | 1; // has number literal
265
- * type Key = string;
266
- */
267
184
  function isUnionOfStringLiterals(type) {
268
- // Single string literal
269
185
  if (isStringLiteralType(type)) {
270
186
  return true;
271
187
  }
272
- // Union type - check if ALL members are string literals
273
188
  if (type.isUnion()) {
274
189
  return type.types.every((t) => isStringLiteralType(t));
275
190
  }
276
191
  return false;
277
192
  }
278
- /**
279
- * Get the literal values from a union of string literals
280
- *
281
- * Extracts the actual string values from a type like 'name' | 'email'
282
- * Returns null if the type is not a union of string literals.
283
- *
284
- * @example
285
- * // For type 'name' | 'email':
286
- * getStringLiteralValues(type) // ['name', 'email']
287
- *
288
- * // For type string:
289
- * getStringLiteralValues(type) // null
290
- */
291
193
  function getStringLiteralValues(type) {
292
- // Single string literal
293
194
  if (isStringLiteralType(type)) {
294
195
  const literalType = type;
295
196
  if (typeof literalType.value === 'string') {
@@ -297,12 +198,11 @@ function getStringLiteralValues(type) {
297
198
  }
298
199
  return null;
299
200
  }
300
- // Union type - extract all string literal values
301
201
  if (type.isUnion()) {
302
202
  const values = [];
303
203
  for (const t of type.types) {
304
204
  if (!isStringLiteralType(t)) {
305
- return null; // Not all members are string literals
205
+ return null;
306
206
  }
307
207
  const literalType = t;
308
208
  if (typeof literalType.value === 'string') {
@@ -313,21 +213,10 @@ function getStringLiteralValues(type) {
313
213
  }
314
214
  return null;
315
215
  }
316
- /**
317
- * Check if a union of string literals contains any dangerous property names
318
- *
319
- * Even if a type is constrained to string literals, it could still be dangerous
320
- * if it includes properties like '__proto__', 'constructor', or 'prototype'.
321
- *
322
- * @param type - The TypeScript type to check
323
- * @param dangerousProperties - List of dangerous property names (defaults to common prototype pollution vectors)
324
- * @returns true if the type is safe (no dangerous properties), false otherwise
325
- */
326
216
  function isUnionOfSafeStringLiterals(type, dangerousProperties = ['__proto__', 'prototype', 'constructor']) {
327
217
  const values = getStringLiteralValues(type);
328
218
  if (!values) {
329
- return false; // Not a union of string literals
219
+ return false;
330
220
  }
331
- // Check if any literal value is dangerous
332
221
  return !values.some((value) => dangerousProperties.includes(value));
333
222
  }
package/AGENTS.md DELETED
@@ -1,151 +0,0 @@
1
- # AGENTS.md
2
-
3
- > Context for AI coding agents working on @interlace/eslint-devkit
4
-
5
- ## Setup Commands
6
-
7
- ```bash
8
- # Install dependencies (from monorepo root)
9
- npm install
10
-
11
- # Build this package
12
- nx build eslint-devkit
13
-
14
- # Run tests
15
- nx test eslint-devkit
16
-
17
- # Run tests with coverage
18
- nx test eslint-devkit --coverage
19
-
20
- # Lint this package
21
- nx lint eslint-devkit
22
- ```
23
-
24
- ## Code Style
25
-
26
- - TypeScript strict mode
27
- - Export all public utilities from `src/index.ts`
28
- - Use TSDoc comments for all public APIs
29
- - Use `c8 ignore` comments with documented reasons for untestable code
30
- - Tree-shakeable exports (no side effects)
31
-
32
- ## Testing Instructions
33
-
34
- - Tests use Vitest
35
- - Test files are in `__tests__/` directories or `*.test.ts` files
36
- - Coverage target: ≥90% lines, ≥95% functions
37
- - All tests must pass before committing
38
-
39
- ## Project Structure
40
-
41
- ```
42
- src/
43
- ├── index.ts # Main exports
44
- ├── rule-creator/ # createRule, createRuleCreator
45
- ├── ast-utils/ # AST analysis utilities
46
- ├── type-utils/ # TypeScript type utilities
47
- ├── message-utils/ # formatLLMMessage and icons
48
- └── types/ # Type definitions
49
- ```
50
-
51
- ## Package Purpose
52
-
53
- Utilities for building **LLM-optimized ESLint rules**. This is the foundation package used by all security plugins in the monorepo. It provides standardized rule creation, AST utilities, type checking helpers, and message formatting.
54
-
55
- ## Core Exports
56
-
57
- ### Rule Creation
58
-
59
- ```typescript
60
- import { createRule, createRuleCreator } from '@interlace/eslint-devkit';
61
- ```
62
-
63
- ### AST Utilities
64
-
65
- ```typescript
66
- import {
67
- isNodeOfType,
68
- isFunctionNode,
69
- isMemberExpression,
70
- isCallExpression,
71
- getIdentifierName,
72
- getFunctionName,
73
- getStaticValue,
74
- isInsideNode,
75
- getAncestorOfType,
76
- } from '@interlace/eslint-devkit';
77
- ```
78
-
79
- ### Type Utilities
80
-
81
- ```typescript
82
- import {
83
- hasParserServices,
84
- getParserServices,
85
- getTypeOfNode,
86
- isStringType,
87
- isNumberType,
88
- isPromiseType,
89
- isArrayType,
90
- } from '@interlace/eslint-devkit';
91
- ```
92
-
93
- ### Message Formatting
94
-
95
- ```typescript
96
- import { formatLLMMessage, MessageIcons } from '@interlace/eslint-devkit';
97
- ```
98
-
99
- ### Type Re-exports
100
-
101
- ```typescript
102
- import { TSESLint, TSESTree, AST_NODE_TYPES } from '@interlace/eslint-devkit';
103
- ```
104
-
105
- ## Creating a New Rule
106
-
107
- ```typescript
108
- import {
109
- createRule,
110
- formatLLMMessage,
111
- MessageIcons,
112
- AST_NODE_TYPES,
113
- } from '@interlace/eslint-devkit';
114
-
115
- export const myRule = createRule({
116
- name: 'my-rule',
117
- meta: {
118
- type: 'problem',
119
- docs: { description: 'My rule description' },
120
- hasSuggestions: true,
121
- messages: {
122
- error: formatLLMMessage({
123
- icon: MessageIcons.SECURITY,
124
- issueName: 'Security Issue',
125
- cwe: 'CWE-XXX',
126
- description: 'Description of the issue',
127
- severity: 'HIGH',
128
- fix: 'How to fix it',
129
- documentationLink: 'https://...',
130
- }),
131
- },
132
- schema: [],
133
- },
134
- defaultOptions: [],
135
- create(context) {
136
- return {
137
- CallExpression(node) {
138
- // Rule implementation
139
- },
140
- };
141
- },
142
- });
143
- ```
144
-
145
- ## Best Practices
146
-
147
- 1. **Use AST_NODE_TYPES**: Always use `AST_NODE_TYPES.Identifier` instead of string `'Identifier'`
148
- 2. **Use formatLLMMessage**: All security messages should use the structured format
149
- 3. **Check parser services**: Always check `hasParserServices()` before using type utilities
150
- 4. **Single-pass traversal**: Rules should visit nodes once (O(n) complexity)
151
- 5. **Export rule options types**: Export the Options interface for TypeScript users
package/CHANGELOG.md DELETED
@@ -1,153 +0,0 @@
1
- ## [1.4.0] - 2026-05-03
2
-
3
- ## 1.4.4
4
-
5
- ### Patch Changes
6
-
7
- - [#302](https://github.com/ofri-peretz/eslint/pull/302) [`09d2951`](https://github.com/ofri-peretz/eslint/commit/09d2951b3ac74efc9ba49b64e9089d66800b16cc) Thanks [@ofri-peretz](https://github.com/ofri-peretz)! - Add the Interlace OG banner to the README, so the npm page matches every
8
- published plugin in the ecosystem. devkit was the only published package
9
- carrying the closing Interlace mark but no banner. README-only change — no
10
- runtime, API, or type surface is affected; the release exists to get the
11
- updated README onto npm, where it is baked in at publish time.
12
-
13
- ## 1.4.3
14
-
15
- ### Patch Changes
16
-
17
- - [#304](https://github.com/ofri-peretz/eslint/pull/304) [`e1cdf83`](https://github.com/ofri-peretz/eslint/commit/e1cdf83e3db761907f0ab06f7fc6c1f1da7513a5) Thanks [@ofri-peretz](https://github.com/ofri-peretz)! - README: call the plugin family "the Interlace eslint-plugins" instead of
18
- `@interlace/eslint-plugin-*`.
19
-
20
- The plugins publish unscoped — `eslint-plugin-jwt`, not
21
- `@interlace/eslint-plugin-jwt` — so the scoped form named packages that do not
22
- exist on npm. This is a docs-only change; no runtime behaviour is affected. It
23
- ships as a patch so the corrected text reaches the package page on npm.
24
-
25
- - [#294](https://github.com/ofri-peretz/eslint/pull/294) [`659f6dc`](https://github.com/ofri-peretz/eslint/commit/659f6dc0181b03b675f72b5949fcf123dd066358) Thanks [@ofri-peretz](https://github.com/ofri-peretz)! - Rewrite `description` and `keywords` on every published package for npm search discovery. npm ranks on name, description, and keywords, and the registry only picks up these fields at publish — so this is metadata-only and takes effect for each package on its next release.
26
-
27
- **Descriptions now lead with the search phrase.** Every one starts `ESLint plugin for <the thing you'd search>` instead of a brand-first or category-first framing, and names the concrete vulnerabilities the plugin actually detects. Three were corrected while doing so:
28
-
29
- - `eslint-plugin-import-next` claimed "100x faster no-cycle detection". No 100x measurement exists: `CLAIMS.md` records **3.1x end-to-end** (8x in pure rule execution) on a 5,483-file React codebase, and the highest number in any benchmark result is 54.9x on the synthetic corpus. The description now states the real-codebase figure.
30
- - `eslint-plugin-secure-coding` claimed SQL injection, XSS and CSRF coverage — none of which are its rules. It now names what it does detect: LDAP, XPath, XXE, GraphQL and template injection, unsafe deserialization, ReDoS, missing authentication, and PII in logs.
31
- - `eslint-plugin-secure-coding` ("89 rules") and `eslint-plugin-react-a11y` ("37 rules") hard-coded rule counts that had drifted from reality. Counts are generated into `interlace-numbers.json`; hand-typed copies are removed rather than corrected.
32
-
33
- **Keywords now match the vocabulary of the plugins that rank.** `eslint-plugin-security`, `eslint-plugin-jsx-a11y`, `eslint-plugin-n` and `eslint-plugin-import` all carry the `eslint` / `eslintplugin` / `eslint-plugin` trio — six of our packages were missing `eslintplugin`, and every one now carries all three plus `static-analysis`, `linting` and `code-quality`. Security plugins add `sast`, `appsec` and `vulnerability`; `node-security` and `secure-coding` also carry `nodesecurity`, the exact keyword `eslint-plugin-security` ranks on. Each plugin gained the CWE identifiers and attack names for what it detects (`cwe-78` command injection, `cwe-22` path traversal, `cwe-89` SQL injection, `cwe-79` XSS, `cwe-347` JWT algorithm confusion, `cwe-352` CSRF, `cwe-943` NoSQL injection), and `node-security` gained the crypto vocabulary it had been missing entirely despite absorbing the crypto rule set (`crypto`, `cryptography`, `weak-hash`, `md5`, `sha1`, `timing-attack`).
34
-
35
- No rule behavior, exports, or configuration changes.
36
-
37
- ## 1.4.2
38
-
39
- ### Patch Changes
40
-
41
- - [#269](https://github.com/ofri-peretz/eslint/pull/269) [`7028fe2`](https://github.com/ofri-peretz/eslint/commit/7028fe2668a42266d831014184dcef70e73101ad) Thanks [@ofri-peretz](https://github.com/ofri-peretz)! - docs: dual-logo README header (Interlace mark + ESLint mark side by side) and closing Interlace footer — refreshes the README rendered on npmjs.com. No runtime changes.
42
-
43
- ## 1.4.1
44
-
45
- ### Patch Changes
46
-
47
- - [#155](https://github.com/ofri-peretz/eslint/pull/155) [`736a5fe`](https://github.com/ofri-peretz/eslint/commit/736a5fed47e673f6157ea900b29fe2a54e4bc7df) Thanks [@ofri-peretz](https://github.com/ofri-peretz)! - Fix `patternToRegex` (glob→regex) to escape **all** regex metacharacters, not just `.`. The previous chained `.replace()` left `\ + ( ) | [ ] { } ^ $` to leak through as regex syntax, so an ignore glob such as `a+b` or `(x)` compiled to a quantifier / capture group and matched the wrong files (CWE-116, surfaced by CodeQL `js/incomplete-sanitization`). The wildcard translation (`**`, `*`, `?`) is unchanged; a regression-lock test pins the metacharacter behavior.
48
-
49
- ### Changed
50
-
51
- - Module resolver swapped from `enhanced-resolve` + `get-tsconfig` to [`oxc-resolver`](https://www.npmjs.com/package/oxc-resolver) (Rust NAPI, ~18-30× faster). Per-tsconfig caching for monorepo path-alias correctness across package boundaries.
52
- - `peerDependenciesMeta` no longer lists `enhanced-resolve` and `get-tsconfig` (consumers don't need to peer-provide them; this is **technically breaking** but no consumer impact is expected).
53
-
54
- ### Added
55
-
56
- - `oxc-resolver` is now a hard `dependencies` entry. Note for adopters: NAPI prebuilds cover common targets (Linux x64/arm64 glibc + musl, macOS x64/arm64, Windows x64); rare targets may need to fall back to a build step.
57
-
58
- ## [1.3.3] - 2026-02-08
59
-
60
- This was a version bump only for eslint-devkit to align it with other projects, there were no code changes.
61
-
62
- ## [1.3.2] - 2026-02-06
63
-
64
- This was a version bump only for eslint-devkit to align it with other projects, there were no code changes.
65
-
66
- # Changelog
67
-
68
- All notable changes to `@interlace/eslint-devkit` are documented here.
69
-
70
- The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and [SemVer](https://semver.org/spec/v2.0.0.html).
71
-
72
- ## [1.0.0] - 2025-11-30
73
-
74
- ### 🚀 Features
75
-
76
- - Enhanced LLM message formatting utilities.
77
- - Improved TypeScript typings for IDE support.
78
-
79
- ### 🩹 Fixes
80
-
81
- - Compatibility fixes for TS strict mode.
82
- - More accurate type guards for AST checking.
83
-
84
- ### 📌 Notes
85
-
86
- - Package name aligned to `@interlace/eslint-devkit` (formerly eslint-plugin-utils).
87
-
88
- ### ❤️ Thank You
89
-
90
- - Ofri Peretz
91
-
92
- ---
93
-
94
- ## [0.3.0] - 2025-11-15
95
-
96
- ### 🚀 Features
97
-
98
- - Enhanced type utilities.
99
- - Improved AST helpers.
100
- - Better LLM-oriented error messaging.
101
-
102
- ### 🩹 Fixes
103
-
104
- - Type checking edge cases.
105
- - Documentation improvements.
106
-
107
- ### ❤️ Thank You
108
-
109
- - Ofri Peretz
110
-
111
- ---
112
-
113
- ## [0.2.2] - 2025-11-07
114
-
115
- ### 🩹 Fixes
116
-
117
- - Config fixes; removed codecov vite plugin.
118
- - Adjusted ignore patterns in dependency checks.
119
- - Added vitest to peerDependencies.
120
-
121
- ### ❤️ Thank You
122
-
123
- - Ofri Peretz
124
-
125
- ---
126
-
127
- ## [0.2.1] - 2025-11-07
128
-
129
- ### 🩹 Fixes
130
-
131
- - Config and dependency-check adjustments.
132
-
133
- ### ❤️ Thank You
134
-
135
- - Ofri Peretz
136
-
137
- ---
138
-
139
- ## [0.2.0] - 2025-11-02
140
-
141
- Version bump to align packages; no code changes.
142
-
143
- ---
144
-
145
- ## [0.1.1] - 2025-11-02
146
-
147
- Version bump to align packages; no code changes.
148
-
149
- ---
150
-
151
- ## [0.1.0] - 2025-11-02
152
-
153
- Initial prerelease for the devkit utilities.