eslint-plugin-intlayer 9.4.3 → 9.5.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 (31) hide show
  1. package/dist/types/index.d.ts +6 -6
  2. package/dist/types/index.d.ts.map +1 -1
  3. package/dist/types/node_modules/.bun/@types_estree@1.0.9/node_modules/@types/estree/index.d.ts +112 -113
  4. package/dist/types/node_modules/.bun/@types_estree@1.0.9/node_modules/@types/estree/index.d.ts.map +1 -1
  5. package/dist/types/preset.d.ts +5 -6
  6. package/dist/types/preset.d.ts.map +1 -1
  7. package/dist/types/rules/enforceAdapterImport.d.ts +1 -2
  8. package/dist/types/rules/enforceAdapterImport.d.ts.map +1 -1
  9. package/dist/types/rules/noDynamicFieldAccess.d.ts +1 -2
  10. package/dist/types/rules/noDynamicFieldAccess.d.ts.map +1 -1
  11. package/dist/types/rules/noRawText.d.ts +2 -3
  12. package/dist/types/rules/noRawText.d.ts.map +1 -1
  13. package/dist/types/rules/noUnusedContent.d.ts +2 -3
  14. package/dist/types/rules/noUnusedContent.d.ts.map +1 -1
  15. package/dist/types/rules/staticDictionaryKey.d.ts +1 -2
  16. package/dist/types/rules/staticDictionaryKey.d.ts.map +1 -1
  17. package/dist/types/utils/ast.d.ts +13 -14
  18. package/dist/types/utils/ast.d.ts.map +1 -1
  19. package/dist/types/utils/callerMatcher.d.ts +6 -7
  20. package/dist/types/utils/callerMatcher.d.ts.map +1 -1
  21. package/dist/types/utils/contentDeclaration.d.ts +3 -4
  22. package/dist/types/utils/contentDeclaration.d.ts.map +1 -1
  23. package/dist/types/utils/createRule.d.ts +2 -3
  24. package/dist/types/utils/createRule.d.ts.map +1 -1
  25. package/dist/types/utils/projectUsage.d.ts +9 -10
  26. package/dist/types/utils/projectUsage.d.ts.map +1 -1
  27. package/dist/types/utils/reactVersion.d.ts +1 -2
  28. package/dist/types/utils/reactVersion.d.ts.map +1 -1
  29. package/dist/types/utils/templates.d.ts +6 -7
  30. package/dist/types/utils/templates.d.ts.map +1 -1
  31. package/package.json +7 -7
@@ -24,7 +24,7 @@ import { ESLint, Linter } from "eslint";
24
24
  * already makes all three compile errors, and `@intlayer/lsp` reports the first
25
25
  * as an editor diagnostic — a third report would only add noise.
26
26
  */
27
- declare const rules: {
27
+ export declare const rules: {
28
28
  'no-raw-text': IntlayerRule<[NoRawTextOptions?], "rawText" | "rawAttribute" | "rawStringLiteral">;
29
29
  'static-dictionary-key': IntlayerRule<[], "dynamicKey" | "dynamicTemplateKey" | "dynamicJsxKey">;
30
30
  'no-dynamic-field-access': IntlayerRule<[], "dynamicField" | "dynamicMessageId">;
@@ -32,13 +32,13 @@ declare const rules: {
32
32
  'no-unused-content': IntlayerRule<[NoUnusedContentOptions?], "unusedDictionary" | "unusedField" | "duplicateDictionary">;
33
33
  };
34
34
  /** Rule names this plugin exposes. */
35
- type IntlayerRuleName = keyof typeof rules;
35
+ export type IntlayerRuleName = keyof typeof rules;
36
36
  declare const meta: {
37
37
  name: string;
38
38
  version: string;
39
39
  };
40
40
  /** The flat configs this plugin ships. */
41
- type IntlayerConfigName = 'recommended' | 'strict' | 'contract-only';
41
+ export type IntlayerConfigName = 'recommended' | 'strict' | 'contract-only';
42
42
  /**
43
43
  * Flat configs, for `eslint.config.js`:
44
44
  *
@@ -64,9 +64,9 @@ type IntlayerConfigName = 'recommended' | 'strict' | 'contract-only';
64
64
  * output for its duplicate report — spreading a preset should never quietly
65
65
  * turn that on.
66
66
  */
67
- declare const configs: Record<IntlayerConfigName, Linter.Config[]>;
67
+ export declare const configs: Record<IntlayerConfigName, Linter.Config[]>;
68
68
  /** The plugin object, as consumed by `eslint.config.js`. */
69
- type IntlayerPlugin = ESLint.Plugin & Iterable<Linter.Config> & {
69
+ export type IntlayerPlugin = ESLint.Plugin & Iterable<Linter.Config> & {
70
70
  meta: {
71
71
  name: string;
72
72
  version: string;
@@ -76,5 +76,5 @@ type IntlayerPlugin = ESLint.Plugin & Iterable<Linter.Config> & {
76
76
  };
77
77
  declare const intlayerPlugin: IntlayerPlugin;
78
78
  //#endregion
79
- export { GENERATED_OUTPUT_GLOBS, IntlayerConfigName, IntlayerPlugin, IntlayerRuleName, type NoRawTextOptions, type NoUnusedContentOptions, PLUGIN_NAMESPACE, PLUGIN_PACKAGE_NAME, RECOMMENDED_RULES, configs, intlayerPlugin as default, getReactVersion, getRecommendedRules, meta, rules };
79
+ export { GENERATED_OUTPUT_GLOBS, type NoRawTextOptions, type NoUnusedContentOptions, PLUGIN_NAMESPACE, PLUGIN_PACKAGE_NAME, RECOMMENDED_RULES, intlayerPlugin as default, getReactVersion, getRecommendedRules, meta };
80
80
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;cA+Ba;+BAAA;;;;;;;KASD,gCAAgC;cAEtC;EAAQ;EAAc;;;KAQhB;;;;;;;;;;;;;;;;;;;;;;;;;;cA4DC,SAAS,OAAO,oBAAoB,OAAO;;KA2B5C,iBAAiB,OAAO,SAClC,SAAS,OAAO;EACd;IAAQ;IAAc;;EACtB,cAAc;EACd,SAAS,OAAO,oBAAoB,OAAO;;cAGzC,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Ba;+BAAA;;;;;;;YASD,gCAAgC;cAEtC;EAAQ;EAAc;;;YAQhB;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DC,SAAS,OAAO,oBAAoB,OAAO;;YA2B5C,iBAAiB,OAAO,SAClC,SAAS,OAAO;EACd;IAAQ;IAAc;;EACtB,cAAc;EACd,SAAS,OAAO,oBAAoB,OAAO;;cAGzC,gBAAgB"}
@@ -16,7 +16,7 @@
16
16
  // This makes the definitions file here somewhat more difficult to maintain,
17
17
  // but it has the notable advantage of making ESTree much easier to use as
18
18
  // an end user.
19
- interface BaseNodeWithoutComments {
19
+ export interface BaseNodeWithoutComments {
20
20
  // Every leaf interface that extends BaseNode must specify a type property.
21
21
  // The type property should be a string literal. For example, Identifier
22
22
  // has: `type: "Identifier"`
@@ -24,11 +24,11 @@ interface BaseNodeWithoutComments {
24
24
  loc?: SourceLocation | null | undefined;
25
25
  range?: [number, number] | undefined;
26
26
  }
27
- interface BaseNode extends BaseNodeWithoutComments {
27
+ export interface BaseNode extends BaseNodeWithoutComments {
28
28
  leadingComments?: Comment[] | undefined;
29
29
  trailingComments?: Comment[] | undefined;
30
30
  }
31
- interface NodeMap {
31
+ export interface NodeMap {
32
32
  AssignmentProperty: AssignmentProperty;
33
33
  CatchClause: CatchClause;
34
34
  Class: Class;
@@ -52,34 +52,34 @@ interface NodeMap {
52
52
  TemplateElement: TemplateElement;
53
53
  VariableDeclarator: VariableDeclarator;
54
54
  }
55
- type Node = NodeMap[keyof NodeMap];
56
- interface Comment extends BaseNodeWithoutComments {
55
+ export type Node = NodeMap[keyof NodeMap];
56
+ export interface Comment extends BaseNodeWithoutComments {
57
57
  type: "Line" | "Block";
58
58
  value: string;
59
59
  }
60
- interface SourceLocation {
60
+ export interface SourceLocation {
61
61
  source?: string | null | undefined;
62
62
  start: Position;
63
63
  end: Position;
64
64
  }
65
- interface Position {
65
+ export interface Position {
66
66
  /** >= 1 */
67
67
  line: number;
68
68
  /** >= 0 */
69
69
  column: number;
70
70
  }
71
- interface Program extends BaseNode {
71
+ export interface Program extends BaseNode {
72
72
  type: "Program";
73
73
  sourceType: "script" | "module";
74
74
  body: Array<Directive | Statement | ModuleDeclaration>;
75
75
  comments?: Comment[] | undefined;
76
76
  }
77
- interface Directive extends BaseNode {
77
+ export interface Directive extends BaseNode {
78
78
  type: "ExpressionStatement";
79
79
  expression: Literal;
80
80
  directive: string;
81
81
  }
82
- interface BaseFunction extends BaseNode {
82
+ export interface BaseFunction extends BaseNode {
83
83
  params: Pattern[];
84
84
  generator?: boolean | undefined;
85
85
  async?: boolean | undefined;
@@ -88,117 +88,117 @@ interface BaseFunction extends BaseNode {
88
88
  // FunctionExpressions have only BlockStatement bodies.
89
89
  body: BlockStatement | Expression;
90
90
  }
91
- type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
92
- type Statement = ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | Declaration;
93
- interface BaseStatement extends BaseNode {}
94
- interface EmptyStatement extends BaseStatement {
91
+ export type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
92
+ export type Statement = ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | Declaration;
93
+ export interface BaseStatement extends BaseNode {}
94
+ export interface EmptyStatement extends BaseStatement {
95
95
  type: "EmptyStatement";
96
96
  }
97
- interface BlockStatement extends BaseStatement {
97
+ export interface BlockStatement extends BaseStatement {
98
98
  type: "BlockStatement";
99
99
  body: Statement[];
100
100
  innerComments?: Comment[] | undefined;
101
101
  }
102
- interface StaticBlock extends Omit<BlockStatement, "type"> {
102
+ export interface StaticBlock extends Omit<BlockStatement, "type"> {
103
103
  type: "StaticBlock";
104
104
  }
105
- interface ExpressionStatement extends BaseStatement {
105
+ export interface ExpressionStatement extends BaseStatement {
106
106
  type: "ExpressionStatement";
107
107
  expression: Expression;
108
108
  }
109
- interface IfStatement extends BaseStatement {
109
+ export interface IfStatement extends BaseStatement {
110
110
  type: "IfStatement";
111
111
  test: Expression;
112
112
  consequent: Statement;
113
113
  alternate?: Statement | null | undefined;
114
114
  }
115
- interface LabeledStatement extends BaseStatement {
115
+ export interface LabeledStatement extends BaseStatement {
116
116
  type: "LabeledStatement";
117
117
  label: Identifier;
118
118
  body: Statement;
119
119
  }
120
- interface BreakStatement extends BaseStatement {
120
+ export interface BreakStatement extends BaseStatement {
121
121
  type: "BreakStatement";
122
122
  label?: Identifier | null | undefined;
123
123
  }
124
- interface ContinueStatement extends BaseStatement {
124
+ export interface ContinueStatement extends BaseStatement {
125
125
  type: "ContinueStatement";
126
126
  label?: Identifier | null | undefined;
127
127
  }
128
- interface WithStatement extends BaseStatement {
128
+ export interface WithStatement extends BaseStatement {
129
129
  type: "WithStatement";
130
130
  object: Expression;
131
131
  body: Statement;
132
132
  }
133
- interface SwitchStatement extends BaseStatement {
133
+ export interface SwitchStatement extends BaseStatement {
134
134
  type: "SwitchStatement";
135
135
  discriminant: Expression;
136
136
  cases: SwitchCase[];
137
137
  }
138
- interface ReturnStatement extends BaseStatement {
138
+ export interface ReturnStatement extends BaseStatement {
139
139
  type: "ReturnStatement";
140
140
  argument?: Expression | null | undefined;
141
141
  }
142
- interface ThrowStatement extends BaseStatement {
142
+ export interface ThrowStatement extends BaseStatement {
143
143
  type: "ThrowStatement";
144
144
  argument: Expression;
145
145
  }
146
- interface TryStatement extends BaseStatement {
146
+ export interface TryStatement extends BaseStatement {
147
147
  type: "TryStatement";
148
148
  block: BlockStatement;
149
149
  handler?: CatchClause | null | undefined;
150
150
  finalizer?: BlockStatement | null | undefined;
151
151
  }
152
- interface WhileStatement extends BaseStatement {
152
+ export interface WhileStatement extends BaseStatement {
153
153
  type: "WhileStatement";
154
154
  test: Expression;
155
155
  body: Statement;
156
156
  }
157
- interface DoWhileStatement extends BaseStatement {
157
+ export interface DoWhileStatement extends BaseStatement {
158
158
  type: "DoWhileStatement";
159
159
  body: Statement;
160
160
  test: Expression;
161
161
  }
162
- interface ForStatement extends BaseStatement {
162
+ export interface ForStatement extends BaseStatement {
163
163
  type: "ForStatement";
164
164
  init?: VariableDeclaration | Expression | null | undefined;
165
165
  test?: Expression | null | undefined;
166
166
  update?: Expression | null | undefined;
167
167
  body: Statement;
168
168
  }
169
- interface BaseForXStatement extends BaseStatement {
169
+ export interface BaseForXStatement extends BaseStatement {
170
170
  left: VariableDeclaration | Pattern;
171
171
  right: Expression;
172
172
  body: Statement;
173
173
  }
174
- interface ForInStatement extends BaseForXStatement {
174
+ export interface ForInStatement extends BaseForXStatement {
175
175
  type: "ForInStatement";
176
176
  }
177
- interface DebuggerStatement extends BaseStatement {
177
+ export interface DebuggerStatement extends BaseStatement {
178
178
  type: "DebuggerStatement";
179
179
  }
180
- type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
181
- interface BaseDeclaration extends BaseStatement {}
182
- interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
180
+ export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
181
+ export interface BaseDeclaration extends BaseStatement {}
182
+ export interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
183
183
  type: "FunctionDeclaration";
184
184
  /** It is null when a function declaration is a part of the `export default function` statement */
185
185
  id: Identifier | null;
186
186
  body: BlockStatement;
187
187
  }
188
- interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
188
+ export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
189
189
  id: Identifier;
190
190
  }
191
- interface VariableDeclaration extends BaseDeclaration {
191
+ export interface VariableDeclaration extends BaseDeclaration {
192
192
  type: "VariableDeclaration";
193
193
  declarations: VariableDeclarator[];
194
194
  kind: "var" | "let" | "const" | "using" | "await using";
195
195
  }
196
- interface VariableDeclarator extends BaseNode {
196
+ export interface VariableDeclarator extends BaseNode {
197
197
  type: "VariableDeclarator";
198
198
  id: Pattern;
199
199
  init?: Expression | null | undefined;
200
200
  }
201
- interface ExpressionMap {
201
+ export interface ExpressionMap {
202
202
  ArrayExpression: ArrayExpression;
203
203
  ArrowFunctionExpression: ArrowFunctionExpression;
204
204
  AssignmentExpression: AssignmentExpression;
@@ -225,29 +225,29 @@ interface ExpressionMap {
225
225
  UpdateExpression: UpdateExpression;
226
226
  YieldExpression: YieldExpression;
227
227
  }
228
- type Expression = ExpressionMap[keyof ExpressionMap];
229
- interface BaseExpression extends BaseNode {}
230
- type ChainElement = SimpleCallExpression | MemberExpression;
231
- interface ChainExpression extends BaseExpression {
228
+ export type Expression = ExpressionMap[keyof ExpressionMap];
229
+ export interface BaseExpression extends BaseNode {}
230
+ export type ChainElement = SimpleCallExpression | MemberExpression;
231
+ export interface ChainExpression extends BaseExpression {
232
232
  type: "ChainExpression";
233
233
  expression: ChainElement;
234
234
  }
235
- interface ThisExpression extends BaseExpression {
235
+ export interface ThisExpression extends BaseExpression {
236
236
  type: "ThisExpression";
237
237
  }
238
- interface ArrayExpression extends BaseExpression {
238
+ export interface ArrayExpression extends BaseExpression {
239
239
  type: "ArrayExpression";
240
240
  elements: Array<Expression | SpreadElement | null>;
241
241
  }
242
- interface ObjectExpression extends BaseExpression {
242
+ export interface ObjectExpression extends BaseExpression {
243
243
  type: "ObjectExpression";
244
244
  properties: Array<Property | SpreadElement>;
245
245
  }
246
- interface PrivateIdentifier extends BaseNode {
246
+ export interface PrivateIdentifier extends BaseNode {
247
247
  type: "PrivateIdentifier";
248
248
  name: string;
249
249
  }
250
- interface Property extends BaseNode {
250
+ export interface Property extends BaseNode {
251
251
  type: "Property";
252
252
  key: Expression;
253
253
  value: Expression | Pattern; // Could be an AssignmentProperty
@@ -256,100 +256,100 @@ interface Property extends BaseNode {
256
256
  shorthand: boolean;
257
257
  computed: boolean;
258
258
  }
259
- interface PropertyDefinition extends BaseNode {
259
+ export interface PropertyDefinition extends BaseNode {
260
260
  type: "PropertyDefinition";
261
261
  key: Expression | PrivateIdentifier;
262
262
  value?: Expression | null | undefined;
263
263
  computed: boolean;
264
264
  static: boolean;
265
265
  }
266
- interface FunctionExpression extends BaseFunction, BaseExpression {
266
+ export interface FunctionExpression extends BaseFunction, BaseExpression {
267
267
  id?: Identifier | null | undefined;
268
268
  type: "FunctionExpression";
269
269
  body: BlockStatement;
270
270
  }
271
- interface SequenceExpression extends BaseExpression {
271
+ export interface SequenceExpression extends BaseExpression {
272
272
  type: "SequenceExpression";
273
273
  expressions: Expression[];
274
274
  }
275
- interface UnaryExpression extends BaseExpression {
275
+ export interface UnaryExpression extends BaseExpression {
276
276
  type: "UnaryExpression";
277
277
  operator: UnaryOperator;
278
278
  prefix: true;
279
279
  argument: Expression;
280
280
  }
281
- interface BinaryExpression extends BaseExpression {
281
+ export interface BinaryExpression extends BaseExpression {
282
282
  type: "BinaryExpression";
283
283
  operator: BinaryOperator;
284
284
  left: Expression | PrivateIdentifier;
285
285
  right: Expression;
286
286
  }
287
- interface AssignmentExpression extends BaseExpression {
287
+ export interface AssignmentExpression extends BaseExpression {
288
288
  type: "AssignmentExpression";
289
289
  operator: AssignmentOperator;
290
290
  left: Pattern | MemberExpression;
291
291
  right: Expression;
292
292
  }
293
- interface UpdateExpression extends BaseExpression {
293
+ export interface UpdateExpression extends BaseExpression {
294
294
  type: "UpdateExpression";
295
295
  operator: UpdateOperator;
296
296
  argument: Expression;
297
297
  prefix: boolean;
298
298
  }
299
- interface LogicalExpression extends BaseExpression {
299
+ export interface LogicalExpression extends BaseExpression {
300
300
  type: "LogicalExpression";
301
301
  operator: LogicalOperator;
302
302
  left: Expression;
303
303
  right: Expression;
304
304
  }
305
- interface ConditionalExpression extends BaseExpression {
305
+ export interface ConditionalExpression extends BaseExpression {
306
306
  type: "ConditionalExpression";
307
307
  test: Expression;
308
308
  alternate: Expression;
309
309
  consequent: Expression;
310
310
  }
311
- interface BaseCallExpression extends BaseExpression {
311
+ export interface BaseCallExpression extends BaseExpression {
312
312
  callee: Expression | Super;
313
313
  arguments: Array<Expression | SpreadElement>;
314
314
  }
315
- type CallExpression = SimpleCallExpression | NewExpression;
316
- interface SimpleCallExpression extends BaseCallExpression {
315
+ export type CallExpression = SimpleCallExpression | NewExpression;
316
+ export interface SimpleCallExpression extends BaseCallExpression {
317
317
  type: "CallExpression";
318
318
  optional: boolean;
319
319
  }
320
- interface NewExpression extends BaseCallExpression {
320
+ export interface NewExpression extends BaseCallExpression {
321
321
  type: "NewExpression";
322
322
  }
323
- interface MemberExpression extends BaseExpression, BasePattern {
323
+ export interface MemberExpression extends BaseExpression, BasePattern {
324
324
  type: "MemberExpression";
325
325
  object: Expression | Super;
326
326
  property: Expression | PrivateIdentifier;
327
327
  computed: boolean;
328
328
  optional: boolean;
329
329
  }
330
- type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
331
- interface BasePattern extends BaseNode {}
332
- interface SwitchCase extends BaseNode {
330
+ export type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
331
+ export interface BasePattern extends BaseNode {}
332
+ export interface SwitchCase extends BaseNode {
333
333
  type: "SwitchCase";
334
334
  test?: Expression | null | undefined;
335
335
  consequent: Statement[];
336
336
  }
337
- interface CatchClause extends BaseNode {
337
+ export interface CatchClause extends BaseNode {
338
338
  type: "CatchClause";
339
339
  param: Pattern | null;
340
340
  body: BlockStatement;
341
341
  }
342
- interface Identifier extends BaseNode, BaseExpression, BasePattern {
342
+ export interface Identifier extends BaseNode, BaseExpression, BasePattern {
343
343
  type: "Identifier";
344
344
  name: string;
345
345
  }
346
- type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
347
- interface SimpleLiteral extends BaseNode, BaseExpression {
346
+ export type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
347
+ export interface SimpleLiteral extends BaseNode, BaseExpression {
348
348
  type: "Literal";
349
349
  value: string | boolean | number | null;
350
350
  raw?: string | undefined;
351
351
  }
352
- interface RegExpLiteral extends BaseNode, BaseExpression {
352
+ export interface RegExpLiteral extends BaseNode, BaseExpression {
353
353
  type: "Literal";
354
354
  value?: RegExp | null | undefined;
355
355
  regex: {
@@ -358,49 +358,49 @@ interface RegExpLiteral extends BaseNode, BaseExpression {
358
358
  };
359
359
  raw?: string | undefined;
360
360
  }
361
- interface BigIntLiteral extends BaseNode, BaseExpression {
361
+ export interface BigIntLiteral extends BaseNode, BaseExpression {
362
362
  type: "Literal";
363
363
  value?: bigint | null | undefined;
364
364
  bigint: string;
365
365
  raw?: string | undefined;
366
366
  }
367
- type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
368
- type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof";
369
- type LogicalOperator = "||" | "&&" | "??";
370
- type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
371
- type UpdateOperator = "++" | "--";
372
- interface ForOfStatement extends BaseForXStatement {
367
+ export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
368
+ export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof";
369
+ export type LogicalOperator = "||" | "&&" | "??";
370
+ export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
371
+ export type UpdateOperator = "++" | "--";
372
+ export interface ForOfStatement extends BaseForXStatement {
373
373
  type: "ForOfStatement";
374
374
  await: boolean;
375
375
  }
376
- interface Super extends BaseNode {
376
+ export interface Super extends BaseNode {
377
377
  type: "Super";
378
378
  }
379
- interface SpreadElement extends BaseNode {
379
+ export interface SpreadElement extends BaseNode {
380
380
  type: "SpreadElement";
381
381
  argument: Expression;
382
382
  }
383
- interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
383
+ export interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
384
384
  type: "ArrowFunctionExpression";
385
385
  expression: boolean;
386
386
  body: BlockStatement | Expression;
387
387
  }
388
- interface YieldExpression extends BaseExpression {
388
+ export interface YieldExpression extends BaseExpression {
389
389
  type: "YieldExpression";
390
390
  argument?: Expression | null | undefined;
391
391
  delegate: boolean;
392
392
  }
393
- interface TemplateLiteral extends BaseExpression {
393
+ export interface TemplateLiteral extends BaseExpression {
394
394
  type: "TemplateLiteral";
395
395
  quasis: TemplateElement[];
396
396
  expressions: Expression[];
397
397
  }
398
- interface TaggedTemplateExpression extends BaseExpression {
398
+ export interface TaggedTemplateExpression extends BaseExpression {
399
399
  type: "TaggedTemplateExpression";
400
400
  tag: Expression;
401
401
  quasi: TemplateLiteral;
402
402
  }
403
- interface TemplateElement extends BaseNode {
403
+ export interface TemplateElement extends BaseNode {
404
404
  type: "TemplateElement";
405
405
  tail: boolean;
406
406
  value: {
@@ -409,38 +409,38 @@ interface TemplateElement extends BaseNode {
409
409
  raw: string;
410
410
  };
411
411
  }
412
- interface AssignmentProperty extends Property {
412
+ export interface AssignmentProperty extends Property {
413
413
  value: Pattern;
414
414
  kind: "init";
415
415
  method: boolean; // false
416
416
  }
417
- interface ObjectPattern extends BasePattern {
417
+ export interface ObjectPattern extends BasePattern {
418
418
  type: "ObjectPattern";
419
419
  properties: Array<AssignmentProperty | RestElement>;
420
420
  }
421
- interface ArrayPattern extends BasePattern {
421
+ export interface ArrayPattern extends BasePattern {
422
422
  type: "ArrayPattern";
423
423
  elements: Array<Pattern | null>;
424
424
  }
425
- interface RestElement extends BasePattern {
425
+ export interface RestElement extends BasePattern {
426
426
  type: "RestElement";
427
427
  argument: Pattern;
428
428
  }
429
- interface AssignmentPattern extends BasePattern {
429
+ export interface AssignmentPattern extends BasePattern {
430
430
  type: "AssignmentPattern";
431
431
  left: Pattern;
432
432
  right: Expression;
433
433
  }
434
- type Class = ClassDeclaration | ClassExpression;
435
- interface BaseClass extends BaseNode {
434
+ export type Class = ClassDeclaration | ClassExpression;
435
+ export interface BaseClass extends BaseNode {
436
436
  superClass?: Expression | null | undefined;
437
437
  body: ClassBody;
438
438
  }
439
- interface ClassBody extends BaseNode {
439
+ export interface ClassBody extends BaseNode {
440
440
  type: "ClassBody";
441
441
  body: Array<MethodDefinition | PropertyDefinition | StaticBlock>;
442
442
  }
443
- interface MethodDefinition extends BaseNode {
443
+ export interface MethodDefinition extends BaseNode {
444
444
  type: "MethodDefinition";
445
445
  key: Expression | PrivateIdentifier;
446
446
  value: FunctionExpression;
@@ -448,81 +448,80 @@ interface MethodDefinition extends BaseNode {
448
448
  computed: boolean;
449
449
  static: boolean;
450
450
  }
451
- interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
451
+ export interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
452
452
  type: "ClassDeclaration";
453
453
  /** It is null when a class declaration is a part of the `export default class` statement */
454
454
  id: Identifier | null;
455
455
  }
456
- interface ClassDeclaration extends MaybeNamedClassDeclaration {
456
+ export interface ClassDeclaration extends MaybeNamedClassDeclaration {
457
457
  id: Identifier;
458
458
  }
459
- interface ClassExpression extends BaseClass, BaseExpression {
459
+ export interface ClassExpression extends BaseClass, BaseExpression {
460
460
  type: "ClassExpression";
461
461
  id?: Identifier | null | undefined;
462
462
  }
463
- interface MetaProperty extends BaseExpression {
463
+ export interface MetaProperty extends BaseExpression {
464
464
  type: "MetaProperty";
465
465
  meta: Identifier;
466
466
  property: Identifier;
467
467
  }
468
- type ModuleDeclaration = ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration;
469
- interface BaseModuleDeclaration extends BaseNode {}
470
- type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier;
471
- interface BaseModuleSpecifier extends BaseNode {
468
+ export type ModuleDeclaration = ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration;
469
+ export interface BaseModuleDeclaration extends BaseNode {}
470
+ export type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier;
471
+ export interface BaseModuleSpecifier extends BaseNode {
472
472
  local: Identifier;
473
473
  }
474
- interface ImportDeclaration extends BaseModuleDeclaration {
474
+ export interface ImportDeclaration extends BaseModuleDeclaration {
475
475
  type: "ImportDeclaration";
476
476
  specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
477
477
  attributes: ImportAttribute[];
478
478
  source: Literal;
479
479
  }
480
- interface ImportSpecifier extends BaseModuleSpecifier {
480
+ export interface ImportSpecifier extends BaseModuleSpecifier {
481
481
  type: "ImportSpecifier";
482
482
  imported: Identifier | Literal;
483
483
  }
484
- interface ImportAttribute extends BaseNode {
484
+ export interface ImportAttribute extends BaseNode {
485
485
  type: "ImportAttribute";
486
486
  key: Identifier | Literal;
487
487
  value: Literal;
488
488
  }
489
- interface ImportExpression extends BaseExpression {
489
+ export interface ImportExpression extends BaseExpression {
490
490
  type: "ImportExpression";
491
491
  source: Expression;
492
492
  options?: Expression | null | undefined;
493
493
  }
494
- interface ImportDefaultSpecifier extends BaseModuleSpecifier {
494
+ export interface ImportDefaultSpecifier extends BaseModuleSpecifier {
495
495
  type: "ImportDefaultSpecifier";
496
496
  }
497
- interface ImportNamespaceSpecifier extends BaseModuleSpecifier {
497
+ export interface ImportNamespaceSpecifier extends BaseModuleSpecifier {
498
498
  type: "ImportNamespaceSpecifier";
499
499
  }
500
- interface ExportNamedDeclaration extends BaseModuleDeclaration {
500
+ export interface ExportNamedDeclaration extends BaseModuleDeclaration {
501
501
  type: "ExportNamedDeclaration";
502
502
  declaration?: Declaration | null | undefined;
503
503
  specifiers: ExportSpecifier[];
504
504
  attributes: ImportAttribute[];
505
505
  source?: Literal | null | undefined;
506
506
  }
507
- interface ExportSpecifier extends Omit<BaseModuleSpecifier, "local"> {
507
+ export interface ExportSpecifier extends Omit<BaseModuleSpecifier, "local"> {
508
508
  type: "ExportSpecifier";
509
509
  local: Identifier | Literal;
510
510
  exported: Identifier | Literal;
511
511
  }
512
- interface ExportDefaultDeclaration extends BaseModuleDeclaration {
512
+ export interface ExportDefaultDeclaration extends BaseModuleDeclaration {
513
513
  type: "ExportDefaultDeclaration";
514
514
  declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression;
515
515
  }
516
- interface ExportAllDeclaration extends BaseModuleDeclaration {
516
+ export interface ExportAllDeclaration extends BaseModuleDeclaration {
517
517
  type: "ExportAllDeclaration";
518
518
  exported: Identifier | Literal | null;
519
519
  attributes: ImportAttribute[];
520
520
  source: Literal;
521
521
  }
522
- interface AwaitExpression extends BaseExpression {
522
+ export interface AwaitExpression extends BaseExpression {
523
523
  type: "AwaitExpression";
524
524
  argument: Expression;
525
525
  }
526
526
  //#endregion
527
- export { ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentProperty, AwaitExpression, BaseCallExpression, BaseClass, BaseDeclaration, BaseExpression, BaseForXStatement, BaseFunction, BaseModuleDeclaration, BaseModuleSpecifier, BaseNode, BaseNodeWithoutComments, BasePattern, BaseStatement, BigIntLiteral, BinaryExpression, BinaryOperator, BlockStatement, BreakStatement, CallExpression, CatchClause, ChainElement, ChainExpression, Class, ClassBody, ClassDeclaration, ClassExpression, Comment, ConditionalExpression, ContinueStatement, DebuggerStatement, Declaration, Directive, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ExportSpecifier, Expression, ExpressionMap, ExpressionStatement, ForInStatement, ForOfStatement, ForStatement, Function, FunctionDeclaration, FunctionExpression, Identifier, IfStatement, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, ImportExpression, ImportNamespaceSpecifier, ImportSpecifier, LabeledStatement, Literal, LogicalExpression, LogicalOperator, MaybeNamedClassDeclaration, MaybeNamedFunctionDeclaration, MemberExpression, MetaProperty, MethodDefinition, ModuleDeclaration, ModuleSpecifier, NewExpression, Node, NodeMap, ObjectExpression, ObjectPattern, Pattern, Position, PrivateIdentifier, Program, Property, PropertyDefinition, RegExpLiteral, RestElement, ReturnStatement, SequenceExpression, SimpleCallExpression, SimpleLiteral, SourceLocation, SpreadElement, Statement, StaticBlock, Super, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateElement, TemplateLiteral, ThisExpression, ThrowStatement, TryStatement, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, VariableDeclaration, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
528
527
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@types+estree@1.0.9/node_modules/@types/estree/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;UAkBiB;;;;EAIb;EACA,MAAM;EACN;;UAGa,iBAAiB;EAC9B,kBAAkB;EAClB,mBAAmB;;UAGN;EACb,oBAAoB;EACpB,aAAa;EACb,OAAO;EACP,WAAW;EACX,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,SAAS;EACT,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,SAAS;EACT,mBAAmB;EACnB,SAAS;EACT,UAAU;EACV,oBAAoB;EACpB,eAAe;EACf,WAAW;EACX,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,oBAAoB;;KAGZ,OAAO,cAAc;UAEhB,gBAAgB;EAC7B;EACA;;UAGa;EACb;EACA,OAAO;EACP,KAAK;;UAGQ;;EAEb;;EAEA;;UAGa,gBAAgB;EAC7B;EACA;EACA,MAAM,MAAM,YAAY,YAAY;EACpC,WAAW;;UAGE,kBAAkB;EAC/B;EACA,YAAY;EACZ;;UAGa,qBAAqB;EAClC,QAAQ;EACR;EACA;;;;EAIA,MAAM,iBAAiB;;KAGf,WAAW,sBAAsB,qBAAqB;KAEtD,YACN,sBACA,iBACA,cACA,iBACA,oBACA,gBACA,kBACA,mBACA,iBACA,oBACA,cACA,kBACA,iBACA,eAC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4BAA4B;EACzC,OAAO;;UAGM,0BAA0B;EACvC;EACA,YAAY,MAAM,kBAAkB,yBAAyB;EAC7D,YAAY;EACZ,QAAQ;;UAGK,wBAAwB;EACrC;EACA,UAAU,aAAa;;UAGV,wBAAwB;EACrC;EACA,KAAK,aAAa;EAClB,OAAO;;UAGM,yBAAyB;EACtC;EACA,QAAQ;EACR,UAAU;;UAGG,+BAA+B;EAC5C;;UAGa,iCAAiC;EAC9C;;UAGa,+BAA+B;EAC5C;EACA,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,SAAS;;UAGI,wBAAwB,KAAK;EAC1C;EACA,OAAO,aAAa;EACpB,UAAU,aAAa;;UAGV,iCAAiC;EAC9C;EACA,aAAa,gCAAgC,6BAA6B;;UAG7D,6BAA6B;EAC1C;EACA,UAAU,aAAa;EACvB,YAAY;EACZ,QAAQ;;UAGK,wBAAwB;EACrC;EACA,UAAU"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@types+estree@1.0.9/node_modules/@types/estree/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;iBAkBiB;;;;EAIb;EACA,MAAM;EACN;;iBAGa,iBAAiB;EAC9B,kBAAkB;EAClB,mBAAmB;;iBAGN;EACb,oBAAoB;EACpB,aAAa;EACb,OAAO;EACP,WAAW;EACX,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,SAAS;EACT,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB;EACjB,SAAS;EACT,mBAAmB;EACnB,SAAS;EACT,UAAU;EACV,oBAAoB;EACpB,eAAe;EACf,WAAW;EACX,OAAO;EACP,YAAY;EACZ,iBAAiB;EACjB,oBAAoB;;YAGZ,OAAO,cAAc;iBAEhB,gBAAgB;EAC7B;EACA;;iBAGa;EACb;EACA,OAAO;EACP,KAAK;;iBAGQ;;EAEb;;EAEA;;iBAGa,gBAAgB;EAC7B;EACA;EACA,MAAM,MAAM,YAAY,YAAY;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qBAAqB;;iBAGvC,yBAAyB;EACtC;EACA,KAAK,aAAa;EAClB,OAAO;EACP;EACA;EACA;;iBAGa,mCAAmC,WAAW;EAC3D;;EAEA,IAAI;;iBAGS,yBAAyB;EACtC,IAAI;;iBAGS,wBAAwB,WAAW;EAChD;EACA,KAAK;;iBAGQ,qBAAqB;EAClC;EACA,MAAM;EACN,UAAU;;YAGF,oBACN,oBACA,yBACA,2BACA;iBACW,8BAA8B;YAEnC,kBAAkB,kBAAkB,yBAAyB,2BAA2B;iBACnF,4BAA4B;EACzC,OAAO;;iBAGM,0BAA0B;EACvC;EACA,YAAY,MAAM,kBAAkB,yBAAyB;EAC7D,YAAY;EACZ,QAAQ;;iBAGK,wBAAwB;EACrC;EACA,UAAU,aAAa;;iBAGV,wBAAwB;EACrC;EACA,KAAK,aAAa;EAClB,OAAO;;iBAGM,yBAAyB;EACtC;EACA,QAAQ;EACR,UAAU;;iBAGG,+BAA+B;EAC5C;;iBAGa,iCAAiC;EAC9C;;iBAGa,+BAA+B;EAC5C;EACA,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,SAAS;;iBAGI,wBAAwB,KAAK;EAC1C;EACA,OAAO,aAAa;EACpB,UAAU,aAAa;;iBAGV,iCAAiC;EAC9C;EACA,aAAa,gCAAgC,6BAA6B;;iBAG7D,6BAA6B;EAC1C;EACA,UAAU,aAAa;EACvB,YAAY;EACZ,QAAQ;;iBAGK,wBAAwB;EACrC;EACA,UAAU"}
@@ -2,9 +2,9 @@ import { IntlayerRuleName } from "./index.js";
2
2
  import { Linter } from "eslint";
3
3
  //#region src/preset.d.ts
4
4
  /** npm package name of this plugin. */
5
- declare const PLUGIN_PACKAGE_NAME = "eslint-plugin-intlayer";
5
+ export declare const PLUGIN_PACKAGE_NAME = "eslint-plugin-intlayer";
6
6
  /** Prefix the rules are registered under, e.g. `intlayer/no-raw-text`. */
7
- declare const PLUGIN_NAMESPACE = "intlayer";
7
+ export declare const PLUGIN_NAMESPACE = "intlayer";
8
8
  /**
9
9
  * Intlayer's generated output, which every preset ignores.
10
10
  *
@@ -15,7 +15,7 @@ declare const PLUGIN_NAMESPACE = "intlayer";
15
15
  * directory (`content.watchExclude`, the build globs), so the lint preset
16
16
  * matches.
17
17
  */
18
- declare const GENERATED_OUTPUT_GLOBS: string[];
18
+ export declare const GENERATED_OUTPUT_GLOBS: string[];
19
19
  /**
20
20
  * Rules enabled by the `recommended` preset, keyed by unprefixed rule name.
21
21
  *
@@ -31,7 +31,7 @@ declare const GENERATED_OUTPUT_GLOBS: string[];
31
31
  * opt-in through the `strict` preset. `no-unused-content` is absent from every
32
32
  * preset — it scans the project from disk, which no preset should impose.
33
33
  */
34
- declare const RECOMMENDED_RULES: Partial<Record<IntlayerRuleName, Linter.RuleEntry>>;
34
+ export declare const RECOMMENDED_RULES: Partial<Record<IntlayerRuleName, Linter.RuleEntry>>;
35
35
  /**
36
36
  * The `recommended` preset with every rule name prefixed by the plugin
37
37
  * namespace — the shape both ESLint flat config and `.oxlintrc.json` expect.
@@ -39,7 +39,6 @@ declare const RECOMMENDED_RULES: Partial<Record<IntlayerRuleName, Linter.RuleEnt
39
39
  * `intlayer init` uses this to write the preset into `.oxlintrc.json`, since
40
40
  * oxlint resolves a plugin's rules but not its configs.
41
41
  */
42
- declare const getRecommendedRules: () => Record<string, Linter.RuleEntry>;
42
+ export declare const getRecommendedRules: () => Record<string, Linter.RuleEntry>;
43
43
  //#endregion
44
- export { GENERATED_OUTPUT_GLOBS, PLUGIN_NAMESPACE, PLUGIN_PACKAGE_NAME, RECOMMENDED_RULES, getRecommendedRules };
45
44
  //# sourceMappingURL=preset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","names":[],"sources":["../../src/preset.ts"],"mappings":";;;;cAIa;;cAGA;;;;;;;;;;;cAYA;;;;;;;;;;;;;;;;cAiBA,mBAAmB,QAC9B,OAAO,kBAAkB,OAAO;;;;;;;;cAcrB,2BAA0B,eAAe,OAAO"}
1
+ {"version":3,"file":"preset.d.ts","names":[],"sources":["../../src/preset.ts"],"mappings":";;;;qBAIa;;qBAGA;;;;;;;;;;;qBAYA;;;;;;;;;;;;;;;;qBAiBA,mBAAmB,QAC9B,OAAO,kBAAkB,OAAO;;;;;;;;qBAcrB,2BAA0B,eAAe,OAAO"}
@@ -1,6 +1,5 @@
1
1
  import { IntlayerRule } from "../utils/createRule.js";
2
2
  //#region src/rules/enforceAdapterImport.d.ts
3
- declare const enforceAdapterImport: IntlayerRule<[], "useAdapterImport">;
3
+ export declare const enforceAdapterImport: IntlayerRule<[], "useAdapterImport">;
4
4
  //#endregion
5
- export { enforceAdapterImport };
6
5
  //# sourceMappingURL=enforceAdapterImport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enforceAdapterImport.d.ts","names":[],"sources":["../../../src/rules/enforceAdapterImport.ts"],"mappings":";;cA8Da,sBAAA"}
1
+ {"version":3,"file":"enforceAdapterImport.d.ts","names":[],"sources":["../../../src/rules/enforceAdapterImport.ts"],"mappings":";;qBA8Da,sBAAA"}
@@ -1,7 +1,6 @@
1
1
  import { IntlayerRule } from "../utils/createRule.js";
2
2
  //#region src/rules/noDynamicFieldAccess.d.ts
3
3
  type MessageIds = 'dynamicField' | 'dynamicMessageId';
4
- declare const noDynamicFieldAccess: IntlayerRule<[], MessageIds>;
4
+ export declare const noDynamicFieldAccess: IntlayerRule<[], MessageIds>;
5
5
  //#endregion
6
- export { noDynamicFieldAccess };
7
6
  //# sourceMappingURL=noDynamicFieldAccess.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noDynamicFieldAccess.d.ts","names":[],"sources":["../../../src/rules/noDynamicFieldAccess.ts"],"mappings":";;KAcK;cAiFQ,sBAAoB,iBAAA"}
1
+ {"version":3,"file":"noDynamicFieldAccess.d.ts","names":[],"sources":["../../../src/rules/noDynamicFieldAccess.ts"],"mappings":";;KAcK;qBAiFQ,sBAAoB,iBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IntlayerRule } from "../utils/createRule.js";
2
2
  //#region src/rules/noRawText.d.ts
3
- type NoRawTextOptions = {
3
+ export type NoRawTextOptions = {
4
4
  /**
5
5
  * JSX attributes whose string value is user-facing copy.
6
6
  * Defaults to the compiler's own list, so the linter flags exactly what
@@ -19,7 +19,6 @@ type NoRawTextOptions = {
19
19
  includeStringLiterals?: boolean;
20
20
  };
21
21
  type MessageIds = 'rawText' | 'rawAttribute' | 'rawStringLiteral';
22
- declare const noRawText: IntlayerRule<[NoRawTextOptions?], MessageIds>;
22
+ export declare const noRawText: IntlayerRule<[NoRawTextOptions?], MessageIds>;
23
23
  //#endregion
24
- export { NoRawTextOptions, noRawText };
25
24
  //# sourceMappingURL=noRawText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noRawText.d.ts","names":[],"sources":["../../../src/rules/noRawText.ts"],"mappings":";;KAwBY;;;;;;EAMV;;EAEA;;EAEA;;;;;;EAMA;;KAGG;cAsEQ,WAAS,cAAA,oBAAA"}
1
+ {"version":3,"file":"noRawText.d.ts","names":[],"sources":["../../../src/rules/noRawText.ts"],"mappings":";;YAwBY;;;;;;EAMV;;EAEA;;EAEA;;;;;;EAMA;;KAGG;qBAsEQ,WAAS,cAAA,oBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IntlayerRule } from "../utils/createRule.js";
2
2
  //#region src/rules/noUnusedContent.d.ts
3
- type NoUnusedContentOptions = {
3
+ export type NoUnusedContentOptions = {
4
4
  /** Report a dictionary whose key is never referenced anywhere. Default: `true`. */
5
5
  reportUnusedDictionaries?: boolean;
6
6
  /** Report a content field that is never read anywhere. Default: `true`. */
@@ -27,7 +27,6 @@ type NoUnusedContentOptions = {
27
27
  cacheTtl?: number;
28
28
  };
29
29
  type MessageIds = 'unusedDictionary' | 'unusedField' | 'duplicateDictionary';
30
- declare const noUnusedContent: IntlayerRule<[NoUnusedContentOptions?], MessageIds>;
30
+ export declare const noUnusedContent: IntlayerRule<[NoUnusedContentOptions?], MessageIds>;
31
31
  //#endregion
32
- export { NoUnusedContentOptions, noUnusedContent };
33
32
  //# sourceMappingURL=noUnusedContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noUnusedContent.d.ts","names":[],"sources":["../../../src/rules/noUnusedContent.ts"],"mappings":";;KAmBY;;EAEV;;EAEA;;;;;;EAMA;;EAEA;;;;;;EAMA;;;;;;EAMA;;KAGG;cAsDQ,iBAAe,cAAA,0BAAA"}
1
+ {"version":3,"file":"noUnusedContent.d.ts","names":[],"sources":["../../../src/rules/noUnusedContent.ts"],"mappings":";;YAmBY;;EAEV;;EAEA;;;;;;EAMA;;EAEA;;;;;;EAMA;;;;;;EAMA;;KAGG;qBAsDQ,iBAAe,cAAA,0BAAA"}
@@ -1,7 +1,6 @@
1
1
  import { IntlayerRule } from "../utils/createRule.js";
2
2
  //#region src/rules/staticDictionaryKey.d.ts
3
3
  type MessageIds = 'dynamicKey' | 'dynamicTemplateKey' | 'dynamicJsxKey';
4
- declare const staticDictionaryKey: IntlayerRule<[], MessageIds>;
4
+ export declare const staticDictionaryKey: IntlayerRule<[], MessageIds>;
5
5
  //#endregion
6
- export { staticDictionaryKey };
7
6
  //# sourceMappingURL=staticDictionaryKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staticDictionaryKey.d.ts","names":[],"sources":["../../../src/rules/staticDictionaryKey.ts"],"mappings":";;KAkBK;cAsBQ,qBAAmB,iBAAA"}
1
+ {"version":3,"file":"staticDictionaryKey.d.ts","names":[],"sources":["../../../src/rules/staticDictionaryKey.ts"],"mappings":";;KAkBK;qBAsBQ,qBAAmB,iBAAA"}
@@ -11,27 +11,27 @@ import { Node } from "../node_modules/.bun/@types_estree@1.0.9/node_modules/@typ
11
11
  * bridge, none of which agree on a type package.
12
12
  */
13
13
  /** Any AST node, whatever the parser. Narrowed through the guards below. */
14
- type AstNode = {
14
+ export type AstNode = {
15
15
  type: string;
16
16
  [key: string]: unknown;
17
17
  };
18
18
  /** An AST node as ESLint hands it to a visitor — always linked to its parent. */
19
- type AstNodeWithParent = AstNode & {
19
+ export type AstNodeWithParent = AstNode & {
20
20
  parent?: AstNodeWithParent;
21
21
  };
22
22
  /** `<div>Some text</div>` — the raw text between two JSX tags. */
23
- type JsxTextNode = AstNode & {
23
+ export type JsxTextNode = AstNode & {
24
24
  type: 'JSXText';
25
25
  value: string;
26
26
  };
27
27
  /** `title="Some text"` on a JSX element. */
28
- type JsxAttributeNode = AstNode & {
28
+ export type JsxAttributeNode = AstNode & {
29
29
  type: 'JSXAttribute';
30
30
  name: AstNode;
31
31
  value: AstNode | null;
32
32
  };
33
33
  /** The opening tag of a JSX element, holding its name and attributes. */
34
- type JsxOpeningElementNode = AstNode & {
34
+ export type JsxOpeningElementNode = AstNode & {
35
35
  type: 'JSXOpeningElement';
36
36
  name: AstNode;
37
37
  attributes: AstNode[];
@@ -42,7 +42,7 @@ type JsxOpeningElementNode = AstNode & {
42
42
  *
43
43
  * @param node - Expression to unwrap; `null`/`undefined` passes straight through.
44
44
  */
45
- declare const unwrapExpression: <T extends AstNode>(node: T | null | undefined) => T | null;
45
+ export declare const unwrapExpression: <T extends AstNode>(node: T | null | undefined) => T | null;
46
46
  /**
47
47
  * Read the compile-time string value of an expression, or `null` when the value
48
48
  * can only be known at runtime.
@@ -53,7 +53,7 @@ declare const unwrapExpression: <T extends AstNode>(node: T | null | undefined)
53
53
  *
54
54
  * @param node - Expression to evaluate.
55
55
  */
56
- declare const getStaticStringValue: (node: AstNode | null | undefined) => string | null;
56
+ export declare const getStaticStringValue: (node: AstNode | null | undefined) => string | null;
57
57
  /**
58
58
  * Name of the function being called, plus whether it was reached as a method.
59
59
  *
@@ -62,7 +62,7 @@ declare const getStaticStringValue: (node: AstNode | null | undefined) => string
62
62
  *
63
63
  * @param callee - The `callee` of a CallExpression.
64
64
  */
65
- declare const getCalleeName: (callee: AstNode | null | undefined) => {
65
+ export declare const getCalleeName: (callee: AstNode | null | undefined) => {
66
66
  name: string;
67
67
  isMethod: boolean;
68
68
  } | null;
@@ -76,30 +76,29 @@ declare const getCalleeName: (callee: AstNode | null | undefined) => {
76
76
  * @param node - The argument expected to be an object expression.
77
77
  * @param propertyName - Property to look up.
78
78
  */
79
- declare const getObjectPropertyValueNode: (node: AstNode | null | undefined, propertyName: string) => AstNode | null;
79
+ export declare const getObjectPropertyValueNode: (node: AstNode | null | undefined, propertyName: string) => AstNode | null;
80
80
  /**
81
81
  * Name of a JSX attribute, or `null` for spread attributes and namespaced
82
82
  * names the plugin does not target.
83
83
  *
84
84
  * @param attribute - A member of a JSX opening element's `attributes`.
85
85
  */
86
- declare const getJsxAttributeName: (attribute: AstNode | null | undefined) => string | null;
86
+ export declare const getJsxAttributeName: (attribute: AstNode | null | undefined) => string | null;
87
87
  /**
88
88
  * Value node of a JSX attribute, unwrapping `{'…'}` expression containers so
89
89
  * `title="Text"` and `title={'Text'}` are treated alike.
90
90
  *
91
91
  * @param attribute - A JSX attribute node.
92
92
  */
93
- declare const getJsxAttributeValueNode: (attribute: AstNode | null | undefined) => AstNode | null;
93
+ export declare const getJsxAttributeValueNode: (attribute: AstNode | null | undefined) => AstNode | null;
94
94
  /**
95
95
  * Tag name of the JSX element an attribute or child belongs to, e.g. `'code'`
96
96
  * for `<code>`. Member and namespaced element names are joined with `.`.
97
97
  *
98
98
  * @param openingElement - A JSXOpeningElement node.
99
99
  */
100
- declare const getJsxElementName: (openingElement: AstNode | null | undefined) => string | null;
100
+ export declare const getJsxElementName: (openingElement: AstNode | null | undefined) => string | null;
101
101
  /** Narrow an ESLint visitor node to the loose {@link AstNode} shape. */
102
- declare const toAstNode: (node: Node | AstNode) => AstNodeWithParent;
102
+ export declare const toAstNode: (node: Node | AstNode) => AstNodeWithParent;
103
103
  //#endregion
104
- export { AstNode, AstNodeWithParent, JsxAttributeNode, JsxOpeningElementNode, JsxTextNode, getCalleeName, getJsxAttributeName, getJsxAttributeValueNode, getJsxElementName, getObjectPropertyValueNode, getStaticStringValue, toAstNode, unwrapExpression };
105
104
  //# sourceMappingURL=ast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ast.d.ts","names":[],"sources":["../../../src/utils/ast.ts"],"mappings":";;;;;;;;;;;;;KAcY;EACV;GACC;;;KAIS,oBAAoB;EAC9B,SAAS;;;KAIC,cAAc;EACxB;EACA;;;KAIU,mBAAmB;EAC7B;EACA,MAAM;EACN,OAAO;;;KAIG,wBAAwB;EAClC;EACA,MAAM;EACN,YAAY;;;;;;;;cAsBD,mBAAoB,UAAU,SACzC,MAAM,yBACL;;;;;;;;;;;cAwBU,uBACX,MAAM;;;;;;;;;cAoCK,gBACX,QAAQ;EACL;EAAc;;;;;;;;;;;;cA8BN,6BACX,MAAM,4BACN,yBACC;;;;;;;cAkCU,sBACX,WAAW;;;;;;;cAeA,2BACX,WAAW,+BACV;;;;;;;cAgBU,oBACX,gBAAgB;;cAqBL,YAAa,MAAM,OAAa,YAAU"}
1
+ {"version":3,"file":"ast.d.ts","names":[],"sources":["../../../src/utils/ast.ts"],"mappings":";;;;;;;;;;;;;YAcY;EACV;GACC;;;YAIS,oBAAoB;EAC9B,SAAS;;;YAIC,cAAc;EACxB;EACA;;;YAIU,mBAAmB;EAC7B;EACA,MAAM;EACN,OAAO;;;YAIG,wBAAwB;EAClC;EACA,MAAM;EACN,YAAY;;;;;;;;qBAsBD,mBAAoB,UAAU,SACzC,MAAM,yBACL;;;;;;;;;;;qBAwBU,uBACX,MAAM;;;;;;;;;qBAoCK,gBACX,QAAQ;EACL;EAAc;;;;;;;;;;;;qBA8BN,6BACX,MAAM,4BACN,yBACC;;;;;;;qBAkCU,sBACX,WAAW;;;;;;;qBAeA,2BACX,WAAW,+BACV;;;;;;;qBAgBU,oBACX,gBAAgB;;qBAqBL,YAAa,MAAM,OAAa,YAAU"}
@@ -5,7 +5,7 @@ import { CallerDescriptor, CallerValueSource } from "@intlayer/config/callers";
5
5
  * Where the dictionary key of a matched call site lives, and whether it is
6
6
  * statically knowable.
7
7
  */
8
- type NamespaceResolution = {
8
+ export type NamespaceResolution = {
9
9
  /** The node holding the key, or `null` when the call omits it entirely. */
10
10
  node: AstNode | null;
11
11
  /** The compile-time key, or `null` when it can only be known at runtime. */
@@ -14,7 +14,7 @@ type NamespaceResolution = {
14
14
  source: CallerValueSource;
15
15
  };
16
16
  /** A call expression recognised as an Intlayer content read. */
17
- type CallerMatch = {
17
+ export type CallerMatch = {
18
18
  descriptor: CallerDescriptor;
19
19
  /** Resolved namespace, or `null` for callers that take no namespace here. */
20
20
  namespace: NamespaceResolution | null;
@@ -27,13 +27,13 @@ type CallerMatch = {
27
27
  *
28
28
  * @param program - The Program node of the analysed file.
29
29
  */
30
- declare const collectImportSources: (program: AstNode) => Set<string>;
30
+ export declare const collectImportSources: (program: AstNode) => Set<string>;
31
31
  /**
32
32
  * The registry entries that may match inside a file, given what it imports.
33
33
  *
34
34
  * @param importSources - Specifiers collected by {@link collectImportSources}.
35
35
  */
36
- declare const getActiveDescriptors: (importSources: ReadonlySet<string>) => CallerDescriptor[];
36
+ export declare const getActiveDescriptors: (importSources: ReadonlySet<string>) => CallerDescriptor[];
37
37
  /**
38
38
  * Match a call expression against the shared caller registry.
39
39
  *
@@ -44,7 +44,7 @@ declare const getActiveDescriptors: (importSources: ReadonlySet<string>) => Call
44
44
  * @param callNode - A CallExpression (or TaggedTemplateExpression) node.
45
45
  * @param activeDescriptors - Result of {@link getActiveDescriptors}.
46
46
  */
47
- declare const matchCaller: (callNode: AstNode, activeDescriptors: CallerDescriptor[]) => CallerMatch | null;
47
+ export declare const matchCaller: (callNode: AstNode, activeDescriptors: CallerDescriptor[]) => CallerMatch | null;
48
48
  /**
49
49
  * Match a JSX element against the registry's JSX-shaped callers,
50
50
  * e.g. `<FormattedMessage id="home.title" />` or `<Trans ns="home" …/>`.
@@ -52,7 +52,6 @@ declare const matchCaller: (callNode: AstNode, activeDescriptors: CallerDescript
52
52
  * @param elementName - Tag name of the element.
53
53
  * @param activeDescriptors - Result of {@link getActiveDescriptors}.
54
54
  */
55
- declare const matchJsxCaller: (elementName: string | null, activeDescriptors: CallerDescriptor[]) => CallerDescriptor | null;
55
+ export declare const matchJsxCaller: (elementName: string | null, activeDescriptors: CallerDescriptor[]) => CallerDescriptor | null;
56
56
  //#endregion
57
- export { CallerMatch, NamespaceResolution, collectImportSources, getActiveDescriptors, matchCaller, matchJsxCaller };
58
57
  //# sourceMappingURL=callerMatcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callerMatcher.d.ts","names":[],"sources":["../../../src/utils/callerMatcher.ts"],"mappings":";;;;;;;KAkBY;;EAEV,MAAM;;EAEN;;EAEA,QAAQ;;;KAIE;EACV,YAAY;;EAEZ,WAAW;;;;;;;;;;cAWA,uBAAwB,SAAS,YAAU;;;;;;cA2B3C,uBACX,eAAe,wBACd;;;;;;;;;;;cAkFU,cACX,UAAU,SACV,mBAAmB,uBAClB;;;;;;;;cAuDU,iBACX,4BACA,mBAAmB,uBAClB"}
1
+ {"version":3,"file":"callerMatcher.d.ts","names":[],"sources":["../../../src/utils/callerMatcher.ts"],"mappings":";;;;;;;YAkBY;;EAEV,MAAM;;EAEN;;EAEA,QAAQ;;;YAIE;EACV,YAAY;;EAEZ,WAAW;;;;;;;;;;qBAWA,uBAAwB,SAAS,YAAU;;;;;;qBA2B3C,uBACX,eAAe,wBACd;;;;;;;;;;;qBAkFU,cACX,UAAU,SACV,mBAAmB,uBAClB;;;;;;;;qBAuDU,iBACX,4BACA,mBAAmB,uBAClB"}
@@ -9,14 +9,14 @@ import { AstNode } from "./ast.js";
9
9
  * every variant in between without caring how the object reaches the export.
10
10
  */
11
11
  /** One field declared inside a dictionary's `content`. */
12
- type DeclaredField = {
12
+ export type DeclaredField = {
13
13
  /** Dotted path from the content root, e.g. `hero.title`. */
14
14
  path: string;
15
15
  /** The property key node, so a report points at the field name. */
16
16
  keyNode: AstNode;
17
17
  };
18
18
  /** A dictionary declaration found in the linted file. */
19
- type ContentDeclaration = {
19
+ export type ContentDeclaration = {
20
20
  /** The static dictionary key. */
21
21
  dictionaryKey: string;
22
22
  /** The node holding the key, for reporting a fully unused dictionary. */
@@ -36,7 +36,6 @@ type ContentDeclaration = {
36
36
  *
37
37
  * @param objectExpression - Any `ObjectExpression` node from the linted file.
38
38
  */
39
- declare const readContentDeclaration: (objectExpression: AstNode) => ContentDeclaration | null;
39
+ export declare const readContentDeclaration: (objectExpression: AstNode) => ContentDeclaration | null;
40
40
  //#endregion
41
- export { ContentDeclaration, DeclaredField, readContentDeclaration };
42
41
  //# sourceMappingURL=contentDeclaration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentDeclaration.d.ts","names":[],"sources":["../../../src/utils/contentDeclaration.ts"],"mappings":";;;;;;;;;;;KAaY;;EAEV;;EAEA,SAAS;;;KAIC;;EAEV;;EAEA,SAAS;;EAET,QAAQ;;;;;;EAMR;;;;;;;;cA+GW,yBACX,kBAAkB,YACjB"}
1
+ {"version":3,"file":"contentDeclaration.d.ts","names":[],"sources":["../../../src/utils/contentDeclaration.ts"],"mappings":";;;;;;;;;;;YAaY;;EAEV;;EAEA,SAAS;;;YAIC;;EAEV;;EAEA,SAAS;;EAET,QAAQ;;;;;;EAMR;;;;;;;;qBA+GW,yBACX,kBAAkB,YACjB"}
@@ -5,7 +5,7 @@ import { JSRuleDefinition } from "eslint";
5
5
  * `context.options` and `context.report({ messageId })` are checked rather than
6
6
  * inferred as `any[]` / `string`.
7
7
  */
8
- type IntlayerRule<Options extends readonly unknown[] = [], MessageIds extends string = string> = JSRuleDefinition<{
8
+ export type IntlayerRule<Options extends readonly unknown[] = [], MessageIds extends string = string> = JSRuleDefinition<{
9
9
  RuleOptions: [...Options];
10
10
  MessageIds: MessageIds;
11
11
  }>;
@@ -17,7 +17,6 @@ type IntlayerRule<Options extends readonly unknown[] = [], MessageIds extends st
17
17
  * @param name - The rule name as it appears in config, e.g. `'no-raw-text'`.
18
18
  * @param rule - The rule definition.
19
19
  */
20
- declare const createRule: <Options extends readonly unknown[] = [], MessageIds extends string = string>(name: string, rule: IntlayerRule<Options, MessageIds>) => IntlayerRule<Options, MessageIds>;
20
+ export declare const createRule: <Options extends readonly unknown[] = [], MessageIds extends string = string>(name: string, rule: IntlayerRule<Options, MessageIds>) => IntlayerRule<Options, MessageIds>;
21
21
  //#endregion
22
- export { IntlayerRule, createRule };
23
22
  //# sourceMappingURL=createRule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRule.d.ts","names":[],"sources":["../../../src/utils/createRule.ts"],"mappings":";;;;;;;KAUY,aACV,yCACA,sCACE;EACF,iBAAiB;EACjB,YAAY;;;;;;;;;;cAWD,aACX,yCACA,oCAEA,cACA,MAAM,aAAa,SAAS,gBAC3B,aAAa,SAAS"}
1
+ {"version":3,"file":"createRule.d.ts","names":[],"sources":["../../../src/utils/createRule.ts"],"mappings":";;;;;;;YAUY,aACV,yCACA,sCACE;EACF,iBAAiB;EACjB,YAAY;;;;;;;;;;qBAWD,aACX,yCACA,oCAEA,cACA,MAAM,aAAa,SAAS,gBAC3B,aAAa,SAAS"}
@@ -6,7 +6,7 @@
6
6
  * plugin keeps its single runtime dependency, and so the exact surface this
7
7
  * rule depends on stays visible in one place.
8
8
  */
9
- type IntlayerProjectConfig = {
9
+ export type IntlayerProjectConfig = {
10
10
  content: {
11
11
  fileExtensions?: string[];
12
12
  codeDir?: string[];
@@ -23,7 +23,7 @@ type IntlayerProjectConfig = {
23
23
  };
24
24
  };
25
25
  /** How one dictionary key is consumed across the project. */
26
- type DictionaryUsage = {
26
+ export type DictionaryUsage = {
27
27
  /**
28
28
  * Dotted content-field paths read somewhere, every parent prefix included —
29
29
  * reading `hero.title` marks `hero` used too.
@@ -38,7 +38,7 @@ type DictionaryUsage = {
38
38
  tracksEveryField: boolean;
39
39
  };
40
40
  /** The result of one project scan. */
41
- type ProjectUsageIndex = {
41
+ export type ProjectUsageIndex = {
42
42
  /** Every dictionary key referenced by the project, and how. */
43
43
  byDictionaryKey: Map<string, DictionaryUsage>;
44
44
  /**
@@ -55,7 +55,7 @@ type ProjectUsageIndex = {
55
55
  isAvailable: boolean;
56
56
  };
57
57
  /** One other place a dictionary key is declared. */
58
- type DuplicateDeclaration = {
58
+ export type DuplicateDeclaration = {
59
59
  /** Path as recorded in the unmerged dictionary, or `'remote'` for CMS entries. */
60
60
  filePath: string;
61
61
  /** Whether the other declaration lives in the project or in the CMS. */
@@ -67,9 +67,9 @@ type DuplicateDeclaration = {
67
67
  *
68
68
  * @param filePath - Absolute or relative path.
69
69
  */
70
- declare const stripModuleExtension: (filePath: string) => string;
70
+ export declare const stripModuleExtension: (filePath: string) => string;
71
71
  /** Drop every cached configuration and usage index. Exposed for tests. */
72
- declare const clearProjectUsageCache: () => void;
72
+ export declare const clearProjectUsageCache: () => void;
73
73
  /**
74
74
  * Load the Intlayer configuration for a project, or `null` when it cannot be
75
75
  * read — a project without Intlayer installed must not break the lint run.
@@ -77,14 +77,14 @@ declare const clearProjectUsageCache: () => void;
77
77
  * @param baseDir - Project root, normally ESLint's working directory.
78
78
  * @param cacheTtlMs - Lifetime of the cached configuration.
79
79
  */
80
- declare const getProjectConfiguration: (baseDir: string, cacheTtlMs: number) => IntlayerProjectConfig | null;
80
+ export declare const getProjectConfiguration: (baseDir: string, cacheTtlMs: number) => IntlayerProjectConfig | null;
81
81
  /**
82
82
  * Scan the project once and aggregate every dictionary reference it contains.
83
83
  *
84
84
  * @param baseDir - Project root, normally ESLint's working directory.
85
85
  * @param cacheTtlMs - Lifetime of the cached index.
86
86
  */
87
- declare const getProjectUsageIndex: (baseDir: string, cacheTtlMs: number) => ProjectUsageIndex;
87
+ export declare const getProjectUsageIndex: (baseDir: string, cacheTtlMs: number) => ProjectUsageIndex;
88
88
  /**
89
89
  * Other declarations of the same dictionary key, read from the unmerged
90
90
  * dictionaries the build writes to disk.
@@ -96,7 +96,6 @@ declare const getProjectUsageIndex: (baseDir: string, cacheTtlMs: number) => Pro
96
96
  * @param dictionaryKey - Key declared by the linted file.
97
97
  * @param currentFilePath - Absolute path of the linted file.
98
98
  */
99
- declare const getDuplicateDeclarations: (configuration: IntlayerProjectConfig, dictionaryKey: string, currentFilePath: string) => DuplicateDeclaration[];
99
+ export declare const getDuplicateDeclarations: (configuration: IntlayerProjectConfig, dictionaryKey: string, currentFilePath: string) => DuplicateDeclaration[];
100
100
  //#endregion
101
- export { DictionaryUsage, DuplicateDeclaration, IntlayerProjectConfig, ProjectUsageIndex, clearProjectUsageCache, getDuplicateDeclarations, getProjectConfiguration, getProjectUsageIndex, stripModuleExtension };
102
101
  //# sourceMappingURL=projectUsage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projectUsage.d.ts","names":[],"sources":["../../../src/utils/projectUsage.ts"],"mappings":";;;;;;;;KAiGY;EACV;IAAW;IAA2B;;EACtC;IAAS;;EACT;IAAa;;EACb;IAAU;IAAiB;;;;KAMjB;;;;;EAKV,gBAAgB;;;;;;;EAOhB;;;KAIU;;EAEV,iBAAiB,YAAY;;;;;;EAM7B,qBAAqB;;;;;;EAMrB;;;KAIU;;EAEV;;EAEA;;;;;;;;cA4CW,uBAAwB;;cA+FxB;;;;;;;;cAcA,0BACX,iBACA,uBACC;;;;;;;cAqUU,uBACX,iBACA,uBACC;;;;;;;;;;;;cA6HU,2BACX,eAAe,uBACf,uBACA,4BACC"}
1
+ {"version":3,"file":"projectUsage.d.ts","names":[],"sources":["../../../src/utils/projectUsage.ts"],"mappings":";;;;;;;;YAiGY;EACV;IAAW;IAA2B;;EACtC;IAAS;;EACT;IAAa;;EACb;IAAU;IAAiB;;;;YAMjB;;;;;EAKV,gBAAgB;;;;;;;EAOhB;;;YAIU;;EAEV,iBAAiB,YAAY;;;;;;EAM7B,qBAAqB;;;;;;EAMrB;;;YAIU;;EAEV;;EAEA;;;;;;;;qBA4CW,uBAAwB;;qBA+FxB;;;;;;;;qBAcA,0BACX,iBACA,uBACC;;;;;;;qBAqUU,uBACX,iBACA,uBACC;;;;;;;;;;;;qBA6HU,2BACX,eAAe,uBACf,uBACA,4BACC"}
@@ -12,7 +12,6 @@
12
12
  * Next.js and React projects using `eslint-config-next` / `eslint-plugin-react` to work
13
13
  * seamlessly under both ESLint 9 and ESLint 10 without needing manual configuration hacks.
14
14
  */
15
- declare const getReactVersion: (dir?: string) => string;
15
+ export declare const getReactVersion: (dir?: string) => string;
16
16
  //#endregion
17
- export { getReactVersion };
18
17
  //# sourceMappingURL=reactVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactVersion.d.ts","names":[],"sources":["../../../src/utils/reactVersion.ts"],"mappings":";;;;;;;;;;;;;;cAgBa,kBAAmB"}
1
+ {"version":3,"file":"reactVersion.d.ts","names":[],"sources":["../../../src/utils/reactVersion.ts"],"mappings":";;;;;;;;;;;;;;qBAgBa,kBAAmB"}
@@ -21,7 +21,7 @@ import { AstNode, AstNodeWithParent } from "./ast.js";
21
21
  * Svelte file simply never emits a `VText`.
22
22
  */
23
23
  /** One piece of literal text found in markup. */
24
- type TemplateTextFinding = {
24
+ export type TemplateTextFinding = {
25
25
  /** Node to report on. */
26
26
  node: AstNode;
27
27
  /** The literal text. */
@@ -32,9 +32,9 @@ type TemplateTextFinding = {
32
32
  elementName: string | null;
33
33
  };
34
34
  /** Callback invoked for every literal text node the visitors find. */
35
- type TemplateTextReporter = (finding: TemplateTextFinding) => void;
35
+ export type TemplateTextReporter = (finding: TemplateTextFinding) => void;
36
36
  /** A visitor object as returned from a rule's `create`. */
37
- type TemplateVisitor = Record<string, (node: never) => void>;
37
+ export type TemplateVisitor = Record<string, (node: never) => void>;
38
38
  /**
39
39
  * Walk up to the nearest enclosing element and return its tag name, or the
40
40
  * sentinel `false` when the text sits inside a `<script>`/`<style>` block that
@@ -42,7 +42,7 @@ type TemplateVisitor = Record<string, (node: never) => void>;
42
42
  *
43
43
  * @param node - The text or attribute node to start from.
44
44
  */
45
- declare const resolveEnclosingElement: (node: AstNodeWithParent | undefined) => string | null | false;
45
+ export declare const resolveEnclosingElement: (node: AstNodeWithParent | undefined) => string | null | false;
46
46
  /**
47
47
  * Visitors covering every non-JSX template language Intlayer supports.
48
48
  *
@@ -52,7 +52,7 @@ declare const resolveEnclosingElement: (node: AstNodeWithParent | undefined) =>
52
52
  *
53
53
  * @param report - Called for each literal text node found.
54
54
  */
55
- declare const createTemplateVisitor: (report: TemplateTextReporter) => TemplateVisitor;
55
+ export declare const createTemplateVisitor: (report: TemplateTextReporter) => TemplateVisitor;
56
56
  /**
57
57
  * Combine a script visitor and a template visitor into the single object the
58
58
  * active parser expects.
@@ -65,7 +65,6 @@ declare const createTemplateVisitor: (report: TemplateTextReporter) => TemplateV
65
65
  * @param scriptVisitor - Handlers for ordinary script nodes.
66
66
  * @param templateVisitor - Handlers for markup nodes.
67
67
  */
68
- declare const combineVisitors: (parserServices: unknown, scriptVisitor: TemplateVisitor, templateVisitor: TemplateVisitor) => TemplateVisitor;
68
+ export declare const combineVisitors: (parserServices: unknown, scriptVisitor: TemplateVisitor, templateVisitor: TemplateVisitor) => TemplateVisitor;
69
69
  //#endregion
70
- export { TemplateTextFinding, TemplateTextReporter, TemplateVisitor, combineVisitors, createTemplateVisitor, resolveEnclosingElement };
71
70
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../src/utils/templates.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAwBY;;EAEV,MAAM;;EAEN;;EAEA;;EAEA;;;KAIU,wBAAwB,SAAS;;KAGjC,kBAAkB,gBAAgB;;;;;;;;cAsDjC,0BACX,MAAM;;;;;;;;;;cA6CK,wBACX,QAAQ,yBACP;;;;;;;;;;;;;cAgGU,kBACX,yBACA,eAAe,iBACf,iBAAiB,oBAChB"}
1
+ {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../src/utils/templates.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAwBY;;EAEV,MAAM;;EAEN;;EAEA;;EAEA;;;YAIU,wBAAwB,SAAS;;YAGjC,kBAAkB,gBAAgB;;;;;;;;qBAsDjC,0BACX,MAAM;;;;;;;;;;qBA6CK,wBACX,QAAQ,yBACP;;;;;;;;;;;;;qBAgGU,kBACX,yBACA,eAAe,iBACf,iBAAiB,oBAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-intlayer",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "ESLint (and oxlint) plugin for Intlayer. Catches untranslated strings and the dynamic call shapes the Intlayer compiler cannot optimize.",
6
6
  "keywords": [
@@ -76,26 +76,26 @@
76
76
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
77
  },
78
78
  "dependencies": {
79
- "@intlayer/config": "9.4.3",
80
- "@intlayer/lsp": "9.4.3",
79
+ "@intlayer/config": "9.5.0",
80
+ "@intlayer/lsp": "9.5.0",
81
81
  "fast-glob": "3.3.3"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@angular-eslint/template-parser": "22.1.0",
85
85
  "@types/estree": "1.0.9",
86
- "@types/node": "26.4.1",
86
+ "@types/node": "26.5.0",
87
87
  "@utils/ts-config": "1.0.4",
88
88
  "@utils/ts-config-types": "1.0.4",
89
89
  "@utils/tsdown-config": "1.0.4",
90
90
  "astro-eslint-parser": "3.0.0",
91
- "eslint": "10.8.1",
91
+ "eslint": "10.10.0",
92
92
  "rimraf": "6.1.3",
93
93
  "svelte": "5.56.9",
94
94
  "svelte-eslint-parser": "1.8.0",
95
- "tsdown": "0.22.14",
95
+ "tsdown": "0.23.0",
96
96
  "typescript": "6.0.3",
97
97
  "typescript-eslint": "8.67.0",
98
- "vitest": "4.1.11",
98
+ "vitest": "5.0.0",
99
99
  "vue-eslint-parser": "10.4.1"
100
100
  },
101
101
  "peerDependencies": {