eslint-plugin-formatjs 8.1.3 → 8.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-formatjs",
3
- "version": "8.1.3",
3
+ "version": "8.2.0",
4
4
  "description": "ESLint plugin for formatjs",
5
5
  "keywords": [
6
6
  "eslint",
@@ -24,8 +24,8 @@
24
24
  "./util": "./util.js"
25
25
  },
26
26
  "dependencies": {
27
- "@formatjs/icu-messageformat-parser": "3.5.22",
28
- "@formatjs/ts-transformer": "4.5.2",
27
+ "@formatjs/icu-messageformat-parser": "3.5.23",
28
+ "@formatjs/ts-transformer": "4.5.3",
29
29
  "@types/estree-jsx": "1",
30
30
  "@types/picomatch": "4",
31
31
  "@unicode/unicode-17.0.0": "2",
package/util.d.ts CHANGED
@@ -69,10 +69,16 @@ interface Position {
69
69
  /** >= 0 */
70
70
  column: number;
71
71
  }
72
+ interface ProgramBodyMap {
73
+ Directive: Directive;
74
+ ModuleDeclaration: ModuleDeclaration;
75
+ Statement: Statement;
76
+ }
77
+ type ProgramBody = ProgramBodyMap[keyof ProgramBodyMap];
72
78
  interface Program extends BaseNode {
73
79
  type: "Program";
74
80
  sourceType: "script" | "module";
75
- body: Array<Directive | Statement | ModuleDeclaration>;
81
+ body: ProgramBody[];
76
82
  comments?: Comment[] | undefined;
77
83
  }
78
84
  interface Directive extends BaseNode {
@@ -651,5 +657,4 @@ export declare function extractMessages(node: Node, { additionalComponentNames,
651
657
  * it means that the patch cannot be applied.
652
658
  */
653
659
  export declare function patchMessage(messageNode: Node, ast: MessageFormatElement[], patcher: (messageContent: string, ast: MessageFormatElement[]) => string): string | null;
654
- export {};
655
- //# sourceMappingURL=util.d.ts.map
660
+ export {};