@interlace/eslint-devkit 1.0.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 (77) hide show
  1. package/AGENTS.md +352 -0
  2. package/CHANGELOG.md +88 -0
  3. package/LICENSE +22 -0
  4. package/README.md +528 -0
  5. package/package.json +88 -0
  6. package/src/aria-definitions.d.ts +9 -0
  7. package/src/aria-definitions.js +973 -0
  8. package/src/aria-definitions.js.map +1 -0
  9. package/src/ast/ast-utils.d.ts +81 -0
  10. package/src/ast/ast-utils.js +201 -0
  11. package/src/ast/ast-utils.js.map +1 -0
  12. package/src/ast/index.d.ts +1 -0
  13. package/src/ast/index.js +6 -0
  14. package/src/ast/index.js.map +1 -0
  15. package/src/index.d.ts +30 -0
  16. package/src/index.js +54 -0
  17. package/src/index.js.map +1 -0
  18. package/src/messaging/constants.d.ts +120 -0
  19. package/src/messaging/constants.js +744 -0
  20. package/src/messaging/constants.js.map +1 -0
  21. package/src/messaging/formatters.d.ts +124 -0
  22. package/src/messaging/formatters.js +330 -0
  23. package/src/messaging/formatters.js.map +1 -0
  24. package/src/messaging/index.d.ts +3 -0
  25. package/src/messaging/index.js +8 -0
  26. package/src/messaging/index.js.map +1 -0
  27. package/src/messaging/types.d.ts +122 -0
  28. package/src/messaging/types.js +8 -0
  29. package/src/messaging/types.js.map +1 -0
  30. package/src/node/fs.d.ts +65 -0
  31. package/src/node/fs.js +129 -0
  32. package/src/node/fs.js.map +1 -0
  33. package/src/node/index.d.ts +3 -0
  34. package/src/node/index.js +8 -0
  35. package/src/node/index.js.map +1 -0
  36. package/src/node/os.d.ts +24 -0
  37. package/src/node/os.js +49 -0
  38. package/src/node/os.js.map +1 -0
  39. package/src/node/path.d.ts +121 -0
  40. package/src/node/path.js +209 -0
  41. package/src/node/path.js.map +1 -0
  42. package/src/resolver/dependency-analysis.d.ts +421 -0
  43. package/src/resolver/dependency-analysis.js +934 -0
  44. package/src/resolver/dependency-analysis.js.map +1 -0
  45. package/src/resolver/index.d.ts +4 -0
  46. package/src/resolver/index.js +9 -0
  47. package/src/resolver/index.js.map +1 -0
  48. package/src/resolver/resolver-adapter.d.ts +53 -0
  49. package/src/resolver/resolver-adapter.js +126 -0
  50. package/src/resolver/resolver-adapter.js.map +1 -0
  51. package/src/resolver/resolver-detection.d.ts +36 -0
  52. package/src/resolver/resolver-detection.js +219 -0
  53. package/src/resolver/resolver-detection.js.map +1 -0
  54. package/src/resolver/resolver.d.ts +52 -0
  55. package/src/resolver/resolver.js +294 -0
  56. package/src/resolver/resolver.js.map +1 -0
  57. package/src/resolver.d.ts +1 -0
  58. package/src/resolver.js +5 -0
  59. package/src/resolver.js.map +1 -0
  60. package/src/rule-creation/index.d.ts +1 -0
  61. package/src/rule-creation/index.js +6 -0
  62. package/src/rule-creation/index.js.map +1 -0
  63. package/src/rule-creation/rule-creator.d.ts +42 -0
  64. package/src/rule-creation/rule-creator.js +42 -0
  65. package/src/rule-creation/rule-creator.js.map +1 -0
  66. package/src/security/index.d.ts +1 -0
  67. package/src/security/index.js +6 -0
  68. package/src/security/index.js.map +1 -0
  69. package/src/security/security-utils.d.ts +303 -0
  70. package/src/security/security-utils.js +607 -0
  71. package/src/security/security-utils.js.map +1 -0
  72. package/src/types/index.d.ts +1 -0
  73. package/src/types/index.js +6 -0
  74. package/src/types/index.js.map +1 -0
  75. package/src/types/type-utils.d.ts +146 -0
  76. package/src/types/type-utils.js +329 -0
  77. package/src/types/type-utils.js.map +1 -0
package/README.md ADDED
@@ -0,0 +1,528 @@
1
+ # @interlace/eslint-devkit
2
+
3
+ **Build ESLint plugins that write themselves** - TypeScript utilities for creating rules that AI assistants can understand and auto-fix.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@interlace/eslint-devkit.svg)](https://www.npmjs.com/package/@interlace/eslint-devkit)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@interlace/eslint-devkit.svg)](https://www.npmjs.com/package/@interlace/eslint-devkit)
7
+
8
+ > **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
9
+
10
+ ## What is this?
11
+
12
+ Most ESLint utilities help you **write rules**. This package helps you write rules that **LLMs can fix automatically**.
13
+
14
+ **Core principle:** Every error message should teach, not just warn.
15
+
16
+ Inspired by [@typescript-eslint/utils](https://typescript-eslint.io/packages/utils/), enhanced for the AI-assisted development era.
17
+
18
+ ---
19
+
20
+ ## 🚀 Quick Start
21
+
22
+ Create your first LLM-optimized rule in 2 minutes:
23
+
24
+ ### Step 1: Install
25
+
26
+ ```bash
27
+ npm install --save-dev @interlace/eslint-devkit @typescript-eslint/parser typescript
28
+ # or
29
+ pnpm add -D @interlace/eslint-devkit @typescript-eslint/parser typescript
30
+ # or
31
+ yarn add -D @interlace/eslint-devkit @typescript-eslint/parser typescript
32
+ ```
33
+
34
+ ### Step 2: Create Your Rule
35
+
36
+ ```typescript
37
+ import { createRule, isMemberExpression } from '@interlace/eslint-devkit';
38
+
39
+ export default createRule({
40
+ name: 'no-console-log',
41
+ meta: {
42
+ type: 'problem',
43
+ docs: {
44
+ description: 'Disallow console.log - use logger.debug() instead',
45
+ recommended: 'warn',
46
+ },
47
+ fixable: 'code',
48
+ messages: {
49
+ useLogger: 'Replace console.log with logger.debug() on line {{line}}',
50
+ },
51
+ schema: [],
52
+ },
53
+ defaultOptions: [],
54
+ create(context) {
55
+ return {
56
+ CallExpression(node) {
57
+ if (isMemberExpression(node.callee, 'console', 'log')) {
58
+ context.report({
59
+ node,
60
+ messageId: 'useLogger',
61
+ data: { line: node.loc.start.line },
62
+ fix(fixer) {
63
+ return fixer.replaceText(node.callee, 'logger.debug');
64
+ },
65
+ });
66
+ }
67
+ },
68
+ };
69
+ },
70
+ });
71
+ ```
72
+
73
+ **That's it!** Your rule now provides structured error messages that AI assistants can automatically fix.
74
+
75
+ ### Step 3: Use in ESLint Config
76
+
77
+ ```typescript
78
+ // eslint.config.js
79
+ import myPlugin from './my-plugin';
80
+
81
+ export default [
82
+ {
83
+ plugins: {
84
+ 'my-plugin': myPlugin,
85
+ },
86
+ rules: {
87
+ 'my-plugin/no-console-log': 'warn',
88
+ },
89
+ },
90
+ ];
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Why LLM-Optimized Matters
96
+
97
+ ### Traditional ESLint Rule
98
+
99
+ ```typescript
100
+ // Error output
101
+ {
102
+ message: "Unexpected console statement",
103
+ line: 42
104
+ }
105
+
106
+ // AI Assistant thinks: "Remove it? Comment it? Replace with what?"
107
+ // Result: ❌ AI can't fix it automatically
108
+ ```
109
+
110
+ ### LLM-Optimized Rule
111
+
112
+ ```typescript
113
+ // Error output
114
+ {
115
+ message: "Replace console.log with logger.debug() on line 42",
116
+ line: 42,
117
+ fix: { /* auto-fix available */ }
118
+ }
119
+
120
+ // AI Assistant thinks: "Replace with logger.debug(), add import if needed"
121
+ // Result: ✅ AI auto-applies fix
122
+ ```
123
+
124
+ **Key Benefits:**
125
+
126
+ - **60-80% auto-fix rate** vs 20-30% for traditional rules
127
+ - **Deterministic fixes** - Same violation = same fix every time
128
+ - **Lower review burden** - Most violations fixed before human review
129
+ - **Faster onboarding** - Developers learn patterns from error messages
130
+
131
+ ---
132
+
133
+ ## 📈 Benchmarks
134
+
135
+ Rules built with this utility package achieve:
136
+
137
+ | Metric | LLM-Optimized Rules | Standard ESLint Rules |
138
+ | ----------------------- | ------------------- | --------------------- |
139
+ | **AI Fix Success Rate** | 94% | 67% |
140
+ | **First Attempt Fix** | 89% | 52% |
141
+ | **Parse Success Rate** | 100% | 100% |
142
+ | **Field Extraction** | 100% | 23% |
143
+
144
+ ### Enterprise Features Included
145
+
146
+ | Feature | Support Level | Description |
147
+ | ----------------------- | -------------- | ------------------------------------- |
148
+ | **SARIF Export** | ✅ Full | GitHub Advanced Security integration |
149
+ | **CWE Auto-Enrichment** | ✅ Automatic | Security benchmarks from CWE ID |
150
+ | **OWASP Mapping** | ✅ 2021 + 2025 | Forward-compatible security standards |
151
+ | **Compliance Tags** | ✅ Auto | SOC2, HIPAA, PCI-DSS, GDPR, ISO27001 |
152
+
153
+ > 📊 **[Full Benchmarks →](https://github.com/ofri-peretz/forge-js/blob/main/docs/BENCHMARK.md)**
154
+
155
+ ---
156
+
157
+ ## Installation
158
+
159
+ ```bash
160
+ npm install --save-dev @interlace/eslint-devkit
161
+ ```
162
+
163
+ **Peer dependencies (required):**
164
+
165
+ ```bash
166
+ npm install --save-dev @typescript-eslint/parser typescript
167
+ npm install --save-dev @typescript-eslint/utils
168
+ ```
169
+
170
+ ### Optional: Resolver helpers
171
+
172
+ If you need module resolution utilities, use the dedicated entry point and opt into the resolver peer deps:
173
+
174
+ ```bash
175
+ npm install --save-dev get-tsconfig enhanced-resolve
176
+ ```
177
+
178
+ ```ts
179
+ import { createResolver } from '@interlace/eslint-devkit/resolver';
180
+ ```
181
+
182
+ If you don’t import `@interlace/eslint-devkit/resolver`, the resolver code and peer deps stay out of your bundle/install surface.
183
+
184
+ ---
185
+
186
+ ## API Reference
187
+
188
+ ### Rule Creation
189
+
190
+ #### `createRule(options)`
191
+
192
+ Creates a well-typed ESLint rule with automatic documentation links.
193
+
194
+ **Parameters:**
195
+
196
+ - `name` (string): Rule name (e.g., 'no-console-log')
197
+ - `meta` (object): Rule metadata (type, docs, messages, schema)
198
+ - `defaultOptions` (array): Default rule options
199
+ - `create` (function): Rule implementation function
200
+
201
+ **Returns:** ESLint rule object
202
+
203
+ **Example:**
204
+
205
+ ```typescript
206
+ import { createRule } from '@interlace/eslint-devkit';
207
+
208
+ const rule = createRule({
209
+ name: 'my-rule',
210
+ meta: {
211
+ type: 'problem',
212
+ docs: { description: 'My custom rule' },
213
+ messages: { error: 'Error message' },
214
+ schema: [],
215
+ },
216
+ defaultOptions: [],
217
+ create(context) {
218
+ return {
219
+ // Your rule implementation
220
+ };
221
+ },
222
+ });
223
+ ```
224
+
225
+ #### `createRuleCreator(urlCreator)`
226
+
227
+ Creates a custom rule factory with your documentation URL pattern.
228
+
229
+ **Parameters:**
230
+
231
+ - `urlCreator` (function): Function that takes rule name and returns documentation URL
232
+
233
+ **Returns:** Rule creation function
234
+
235
+ **Example:**
236
+
237
+ ```typescript
238
+ import { createRuleCreator } from '@interlace/eslint-devkit';
239
+
240
+ const createRule = createRuleCreator(
241
+ (ruleName) => `https://your-plugin.dev/rules/${ruleName}`,
242
+ );
243
+
244
+ export default createRule({
245
+ name: 'my-rule',
246
+ // ...
247
+ });
248
+ ```
249
+
250
+ ---
251
+
252
+ ### AST Utilities
253
+
254
+ Helper functions for traversing and analyzing ESTree/TSESTree nodes.
255
+
256
+ #### Node Type Checks
257
+
258
+ | Function | Description | Example |
259
+ | -------------------------- | ---------------------------------- | ---------------------------------- |
260
+ | `isNodeOfType(node, type)` | Type guard for AST nodes | `isNodeOfType(node, 'Identifier')` |
261
+ | `isFunctionNode(node)` | Check if node is any function type | `isFunctionNode(node)` |
262
+ | `isClassNode(node)` | Check if node is a class | `isClassNode(node)` |
263
+ | `isLiteral(node)` | Check if literal value | `isLiteral(node)` |
264
+ | `isTemplateLiteral(node)` | Check if template literal | `isTemplateLiteral(node)` |
265
+
266
+ #### Pattern Matching
267
+
268
+ | Function | Description | Example |
269
+ | -------------------------------------------- | --------------------------------- | -------------------------------------------- |
270
+ | `isMemberExpression(node, object, property)` | Match patterns like `console.log` | `isMemberExpression(node, 'console', 'log')` |
271
+ | `isCallExpression(node, name)` | Check function call by name | `isCallExpression(node, 'fetch')` |
272
+
273
+ #### Value Extraction
274
+
275
+ | Function | Description | Example |
276
+ | ------------------------- | ----------------------- | ------------------------------------ |
277
+ | `getIdentifierName(node)` | Extract identifier name | `getIdentifierName(node) // 'myVar'` |
278
+ | `getFunctionName(node)` | Get function name | `getFunctionName(node) // 'myFunc'` |
279
+ | `getStaticValue(node)` | Extract static value | `getStaticValue(node) // 'hello'` |
280
+
281
+ #### Ancestor Navigation
282
+
283
+ | Function | Description | Example |
284
+ | ------------------------------------------- | ------------------------------- | ----------------------------------------------------- |
285
+ | `isInsideNode(node, parentType, ancestors)` | Check if inside specific parent | `isInsideNode(node, 'TryStatement', ancestors)` |
286
+ | `getAncestorOfType(type, ancestors)` | Find first ancestor of type | `getAncestorOfType('FunctionDeclaration', ancestors)` |
287
+
288
+ **Complete Example:**
289
+
290
+ ```typescript
291
+ import {
292
+ isMemberExpression,
293
+ isInsideNode,
294
+ getAncestorOfType,
295
+ getIdentifierName,
296
+ } from '@interlace/eslint-devkit';
297
+
298
+ create(context) {
299
+ return {
300
+ CallExpression(node) {
301
+ // Detect console.log() calls
302
+ if (isMemberExpression(node.callee, 'console', 'log')) {
303
+ // Check if inside try-catch (might be intentional logging)
304
+ const ancestors = context.getAncestors();
305
+ const insideTry = isInsideNode(node, 'TryStatement', ancestors);
306
+
307
+ if (!insideTry) {
308
+ const functionAncestor = getAncestorOfType('FunctionDeclaration', ancestors);
309
+ const functionName = functionAncestor
310
+ ? getIdentifierName(functionAncestor.id)
311
+ : 'anonymous';
312
+
313
+ context.report({
314
+ node,
315
+ message: `Avoid console.log outside error handlers in ${functionName}`,
316
+ });
317
+ }
318
+ }
319
+ },
320
+ };
321
+ }
322
+ ```
323
+
324
+ ---
325
+
326
+ ### Type Utilities
327
+
328
+ Type-aware analysis using TypeScript compiler API. These utilities require TypeScript parser services.
329
+
330
+ #### Service Access
331
+
332
+ | Function | Description | Example |
333
+ | ------------------------------- | ------------------------------------------- | --------------------------------------------- |
334
+ | `hasParserServices(context)` | Check if type info available | `if (hasParserServices(context))` |
335
+ | `getParserServices(context)` | Get parser services (throws if unavailable) | `const services = getParserServices(context)` |
336
+ | `getTypeOfNode(node, services)` | Get TypeScript type of node | `const type = getTypeOfNode(node, services)` |
337
+
338
+ #### Type Checks
339
+
340
+ | Function | Description | Example |
341
+ | --------------------------------- | -------------------------- | --------------------------------- |
342
+ | `isStringType(type)` | Check if type is string | `isStringType(type)` |
343
+ | `isNumberType(type)` | Check if type is number | `isNumberType(type)` |
344
+ | `isBooleanType(type)` | Check if type is boolean | `isBooleanType(type)` |
345
+ | `isArrayType(type, checker)` | Check if type is array | `isArrayType(type, checker)` |
346
+ | `isPromiseType(type, checker)` | Check if type is Promise | `isPromiseType(type, checker)` |
347
+ | `isAnyType(type)` | Check if type is any | `isAnyType(type)` |
348
+ | `isUnknownType(type)` | Check if type is unknown | `isUnknownType(type)` |
349
+ | `isNullableType(type)` | Check if type is nullable | `isNullableType(type)` |
350
+ | `getTypeArguments(type, checker)` | Get generic type arguments | `getTypeArguments(type, checker)` |
351
+
352
+ **Complete Example:**
353
+
354
+ ```typescript
355
+ import {
356
+ hasParserServices,
357
+ getParserServices,
358
+ getTypeOfNode,
359
+ isPromiseType,
360
+ } from '@interlace/eslint-devkit';
361
+
362
+ create(context) {
363
+ // Gracefully handle projects without TypeScript
364
+ if (!hasParserServices(context)) {
365
+ return {};
366
+ }
367
+
368
+ const services = getParserServices(context);
369
+ const checker = services.program.getTypeChecker();
370
+
371
+ return {
372
+ CallExpression(node) {
373
+ const type = getTypeOfNode(node, services);
374
+
375
+ // Detect unawaited promises by TYPE, not syntax
376
+ if (isPromiseType(type, checker)) {
377
+ const parent = node.parent;
378
+ const isAwaited = parent?.type === 'AwaitExpression';
379
+
380
+ if (!isAwaited) {
381
+ context.report({
382
+ node,
383
+ message: 'Promise is not awaited - add "await" or handle with .then()',
384
+ fix(fixer) {
385
+ return fixer.insertTextBefore(node, 'await ');
386
+ },
387
+ });
388
+ }
389
+ }
390
+ },
391
+ };
392
+ }
393
+ ```
394
+
395
+ ---
396
+
397
+ ## Best Practices
398
+
399
+ ### 1. Provide Specific Error Messages
400
+
401
+ ```typescript
402
+ // ❌ Vague - AI can't determine fix
403
+ message: 'Invalid usage';
404
+
405
+ // ✅ Specific - AI knows exactly what to do
406
+ message: 'Replace fetch() with apiClient.get() for automatic error handling';
407
+ ```
408
+
409
+ ### 2. Include Auto-Fixes When Possible
410
+
411
+ ```typescript
412
+ context.report({
413
+ node,
414
+ message: 'Use const instead of let for immutable variables',
415
+ fix(fixer) {
416
+ return fixer.replaceText(letToken, 'const');
417
+ },
418
+ });
419
+ ```
420
+
421
+ ### 3. Structure Error Data for AI
422
+
423
+ ```typescript
424
+ context.report({
425
+ node,
426
+ messageId: 'circularDependency',
427
+ data: {
428
+ chain: 'A.ts → B.ts → C.ts → A.ts',
429
+ breakAt: 'C.ts',
430
+ suggestion: 'Extract shared types to types.ts',
431
+ },
432
+ });
433
+ ```
434
+
435
+ ### 4. Use Type Information When Available
436
+
437
+ ```typescript
438
+ // Detect issues semantically, not just syntactically
439
+ if (hasParserServices(context)) {
440
+ const type = getTypeOfNode(node, services);
441
+ if (isPromiseType(type, checker)) {
442
+ // Type-aware detection is more accurate
443
+ }
444
+ }
445
+ ```
446
+
447
+ ### 5. Provide Context in Messages
448
+
449
+ ```typescript
450
+ // ❌ Missing context
451
+ message: 'Use logger instead';
452
+
453
+ // ✅ Includes context
454
+ message: 'Replace console.log with logger.debug() on line {{line}} in function {{functionName}}';
455
+ ```
456
+
457
+ ---
458
+
459
+ ## TypeScript Support
460
+
461
+ Full TypeScript support with comprehensive type definitions:
462
+
463
+ ```typescript
464
+ import type { TSESTree } from '@typescript-eslint/utils';
465
+ import {
466
+ createRule,
467
+ isMemberExpression,
468
+ type RuleContext,
469
+ } from '@interlace/eslint-devkit';
470
+
471
+ // Fully typed rule creation
472
+ const rule = createRule<[], 'messageId'>({
473
+ name: 'my-rule',
474
+ meta: {
475
+ type: 'problem',
476
+ messages: {
477
+ messageId: 'Error message',
478
+ },
479
+ schema: [],
480
+ },
481
+ defaultOptions: [],
482
+ create(context: RuleContext<'messageId', []>) {
483
+ return {
484
+ Identifier(node: TSESTree.Identifier) {
485
+ // Fully typed node visitors
486
+ },
487
+ };
488
+ },
489
+ });
490
+ ```
491
+
492
+ ---
493
+
494
+ ## Compatibility
495
+
496
+ | Package | Version |
497
+ | ------------------------- | ------------------ |
498
+ | ESLint | ^8.0.0 \|\| ^9.0.0 |
499
+ | TypeScript | >=4.0.0 |
500
+ | @typescript-eslint/parser | >=6.0.0 |
501
+ | @typescript-eslint/utils | ^8.0.0 |
502
+ | Node.js | >=18.0.0 |
503
+
504
+ ---
505
+
506
+ ## Related Packages
507
+
508
+ - **[@forge-js/eslint-plugin-llm-optimized](https://www.npmjs.com/package/@forge-js/eslint-plugin-llm-optimized)** - Ready-to-use LLM-optimized rules built with this package
509
+ - **[@typescript-eslint/utils](https://www.npmjs.com/package/@typescript-eslint/utils)** - Official TypeScript ESLint utilities
510
+ - **[eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)** - Import/export validation
511
+
512
+ ---
513
+
514
+ ## License
515
+
516
+ MIT © [Ofri Peretz](https://github.com/ofri-peretz)
517
+
518
+ ---
519
+
520
+ ## Contributing
521
+
522
+ Contributions welcome! See [CONTRIBUTING.md](https://github.com/ofri-peretz/forge-js/blob/main/CONTRIBUTING.md).
523
+
524
+ ---
525
+
526
+ ## Changelog
527
+
528
+ See [CHANGELOG.md](./CHANGELOG.md) for a list of changes and version history.
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@interlace/eslint-devkit",
3
+ "version": "1.0.0",
4
+ "description": "TypeScript utilities for building LLM-optimized ESLint plugins - AST helpers, type utilities, security benchmarks, and SARIF output",
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./src/index.d.ts",
11
+ "require": "./src/index.js",
12
+ "import": "./src/index.js"
13
+ },
14
+ "./resolver": {
15
+ "types": "./src/resolver.d.ts",
16
+ "require": "./src/resolver.js",
17
+ "import": "./src/resolver.js"
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "author": "Ofri Peretz <ofriperetzdev@gmail.com>",
22
+ "license": "MIT",
23
+ "homepage": "https://github.com/ofri-peretz/eslint#readme",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/ofri-peretz/eslint.git",
27
+ "directory": "packages/eslint-devkit"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/ofri-peretz/eslint/issues"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "files": [
36
+ "src/",
37
+ "dist/",
38
+ "README.md",
39
+ "LICENSE",
40
+ "CHANGELOG.md",
41
+ "AGENTS.md"
42
+ ],
43
+ "keywords": [
44
+ "eslint",
45
+ "eslint-devkit",
46
+ "eslint-toolkit",
47
+ "typescript",
48
+ "utilities",
49
+ "ast",
50
+ "type-checking",
51
+ "plugin-development",
52
+ "llm-optimized",
53
+ "ai-assistant",
54
+ "auto-fix",
55
+ "sarif",
56
+ "owasp",
57
+ "cwe",
58
+ "security"
59
+ ],
60
+ "engines": {
61
+ "node": ">=18.0.0"
62
+ },
63
+ "peerDependencies": {
64
+ "typescript": ">=4.0.0",
65
+ "@typescript-eslint/utils": "^8.46.2",
66
+ "get-tsconfig": "^4.13.0",
67
+ "enhanced-resolve": "^5.18.3"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "get-tsconfig": {
71
+ "optional": true
72
+ },
73
+ "enhanced-resolve": {
74
+ "optional": true
75
+ }
76
+ },
77
+ "optionalDependencies": {
78
+ "get-tsconfig": "^4.13.0",
79
+ "enhanced-resolve": "^5.18.3"
80
+ },
81
+ "dependencies": {
82
+ "tslib": "^2.3.0"
83
+ },
84
+ "devDependencies": {
85
+ "@typescript-eslint/parser": "^8.46.2",
86
+ "vitest": "^4.0.4"
87
+ }
88
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * ARIA Definitions
3
+ * Lists of valid ARIA roles and attributes
4
+ */
5
+ export declare const ARIA_ROLES: Set<string>;
6
+ export declare const ARIA_ATTRIBUTES: Set<string>;
7
+ export declare const ARIA_REQUIRED_PROPS: Record<string, string[]>;
8
+ export declare const ARIA_UNSUPPORTED_ELEMENTS: Set<string>;
9
+ export declare const ROLE_SUPPORTED_ARIA_PROPS: Record<string, Set<string>>;