eslint-plugin-formatjs 4.10.1 → 4.10.3

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 (41) hide show
  1. package/index.d.ts +0 -1
  2. package/package.json +4 -4
  3. package/rules/blocklist-elements.d.ts +0 -1
  4. package/rules/enforce-default-message.d.ts +0 -1
  5. package/rules/enforce-description.d.ts +0 -1
  6. package/rules/enforce-id.d.ts +0 -1
  7. package/rules/enforce-placeholders.d.ts +0 -1
  8. package/rules/enforce-plural-rules.d.ts +0 -1
  9. package/rules/no-camel-case.d.ts +0 -1
  10. package/rules/no-complex-selectors.d.ts +0 -1
  11. package/rules/no-emoji.d.ts +0 -1
  12. package/rules/no-id.d.ts +0 -1
  13. package/rules/no-invalid-icu.d.ts +0 -1
  14. package/rules/no-literal-string-in-jsx.d.ts +0 -1
  15. package/rules/no-multiple-plurals.d.ts +0 -1
  16. package/rules/no-multiple-whitespaces.d.ts +0 -1
  17. package/rules/no-offset.d.ts +0 -1
  18. package/rules/no-useless-message.d.ts +0 -1
  19. package/rules/prefer-formatted-message.d.ts +0 -1
  20. package/rules/prefer-pound-in-plural.d.ts +0 -1
  21. package/util.d.ts +0 -1
  22. package/index.d.ts.map +0 -1
  23. package/rules/blocklist-elements.d.ts.map +0 -1
  24. package/rules/enforce-default-message.d.ts.map +0 -1
  25. package/rules/enforce-description.d.ts.map +0 -1
  26. package/rules/enforce-id.d.ts.map +0 -1
  27. package/rules/enforce-placeholders.d.ts.map +0 -1
  28. package/rules/enforce-plural-rules.d.ts.map +0 -1
  29. package/rules/no-camel-case.d.ts.map +0 -1
  30. package/rules/no-complex-selectors.d.ts.map +0 -1
  31. package/rules/no-emoji.d.ts.map +0 -1
  32. package/rules/no-id.d.ts.map +0 -1
  33. package/rules/no-invalid-icu.d.ts.map +0 -1
  34. package/rules/no-literal-string-in-jsx.d.ts.map +0 -1
  35. package/rules/no-multiple-plurals.d.ts.map +0 -1
  36. package/rules/no-multiple-whitespaces.d.ts.map +0 -1
  37. package/rules/no-offset.d.ts.map +0 -1
  38. package/rules/no-useless-message.d.ts.map +0 -1
  39. package/rules/prefer-formatted-message.d.ts.map +0 -1
  40. package/rules/prefer-pound-in-plural.d.ts.map +0 -1
  41. package/util.d.ts.map +0 -1
package/index.d.ts CHANGED
@@ -22,4 +22,3 @@ declare const plugin: {
22
22
  };
23
23
  export type Plugin = typeof plugin;
24
24
  export {};
25
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-formatjs",
3
- "version": "4.10.1",
3
+ "version": "4.10.3",
4
4
  "description": "ESLint plugin for formatjs",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,8 +20,6 @@
20
20
  },
21
21
  "homepage": "https://github.com/formatjs/formatjs#readme",
22
22
  "dependencies": {
23
- "@formatjs/icu-messageformat-parser": "2.4.0",
24
- "@formatjs/ts-transformer": "3.13.1",
25
23
  "@types/eslint": "7 || 8",
26
24
  "@types/picomatch": "^2.3.0",
27
25
  "@typescript-eslint/typescript-estree": "5.59.0",
@@ -30,7 +28,9 @@
30
28
  "picomatch": "^2.3.1",
31
29
  "tslib": "2.5.0",
32
30
  "typescript": "^4.7 || 5",
33
- "unicode-emoji-utils": "^1.1.1"
31
+ "unicode-emoji-utils": "^1.1.1",
32
+ "@formatjs/icu-messageformat-parser": "2.6.0",
33
+ "@formatjs/ts-transformer": "3.13.3"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "eslint": "7 || 8"
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=blocklist-elements.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=enforce-default-message.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const _default: Rule.RuleModule;
3
3
  export default _default;
4
- //# sourceMappingURL=enforce-description.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const _default: Rule.RuleModule;
3
3
  export default _default;
4
- //# sourceMappingURL=enforce-id.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=enforce-placeholders.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=enforce-plural-rules.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-camel-case.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-complex-selectors.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-emoji.d.ts.map
package/rules/no-id.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const _default: Rule.RuleModule;
3
3
  export default _default;
4
- //# sourceMappingURL=no-id.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-invalid-icu.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-literal-string-in-jsx.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-multiple-plurals.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-multiple-whitespaces.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-offset.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=no-useless-message.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=prefer-formatted-message.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
2
  declare const rule: Rule.RuleModule;
3
3
  export default rule;
4
- //# sourceMappingURL=prefer-pound-in-plural.d.ts.map
package/util.d.ts CHANGED
@@ -30,4 +30,3 @@ export declare function extractMessages(node: TSESTree.Node, { additionalCompone
30
30
  * it means that the patch cannot be applied.
31
31
  */
32
32
  export declare function patchMessage(messageNode: TSESTree.Node, ast: MessageFormatElement[], patcher: (messageContent: string, ast: MessageFormatElement[]) => string): string | null;
33
- //# sourceMappingURL=util.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAqBX,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocklist-elements.d.ts","sourceRoot":"","sources":["../rules/blocklist-elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAmH3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAyChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-default-message.d.ts","sourceRoot":"","sources":["../rules/enforce-default-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAiC3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAmChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-description.d.ts","sourceRoot":"","sources":["../rules/enforce-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;;AAgC3B,wBAmCoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-id.d.ts","sourceRoot":"","sources":["../rules/enforce-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;;AA0G3B,wBAgEoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-placeholders.d.ts","sourceRoot":"","sources":["../rules/enforce-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAoI3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA4ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-plural-rules.d.ts","sourceRoot":"","sources":["../rules/enforce-plural-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAqF3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-camel-case.d.ts","sourceRoot":"","sources":["../rules/no-camel-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAgE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8BhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-complex-selectors.d.ts","sourceRoot":"","sources":["../rules/no-complex-selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAgH3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAiDhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-emoji.d.ts","sourceRoot":"","sources":["../rules/no-emoji.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AA+E3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA0ChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-id.d.ts","sourceRoot":"","sources":["../rules/no-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAa,MAAM,QAAQ,CAAA;;AAgCvC,wBA8BoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-invalid-icu.d.ts","sourceRoot":"","sources":["../rules/no-invalid-icu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAqC3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA6BhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-literal-string-in-jsx.d.ts","sourceRoot":"","sources":["../rules/no-literal-string-in-jsx.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAqDhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA0KhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-multiple-plurals.d.ts","sourceRoot":"","sources":["../rules/no-multiple-plurals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAwD3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8BhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-multiple-whitespaces.d.ts","sourceRoot":"","sources":["../rules/no-multiple-whitespaces.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAiI3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAkChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-offset.d.ts","sourceRoot":"","sources":["../rules/no-offset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAuD3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8BhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-useless-message.d.ts","sourceRoot":"","sources":["../rules/no-useless-message.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAmE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA6BhB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefer-formatted-message.d.ts","sourceRoot":"","sources":["../rules/prefer-formatted-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAIhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAiChB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefer-pound-in-plural.d.ts","sourceRoot":"","sources":["../rules/prefer-pound-in-plural.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,I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