eslint-plugin-formatjs 7.0.0-rc.0 → 7.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.
- package/index.js +8 -15
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TYPE, isArgumentElement, isDateElement, isLiteralElement, isNumberElement, isPluralElement, isSelectElement, isTagElement, isTimeElement, parse } from "@formatjs/icu-messageformat-parser";
|
|
2
2
|
import { interpolateName } from "@formatjs/ts-transformer";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import emojiPresentationRegexCompiled from "@unicode/unicode-17.0.0/Binary_Property/Emoji_Presentation/regex.mjs";
|
|
4
|
+
import emojiPropertyRegexCompiled from "@unicode/unicode-17.0.0/Binary_Property/Emoji/regex.mjs";
|
|
5
5
|
import * as picomatchNs from "picomatch";
|
|
6
6
|
import MagicString from "magic-string";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
@@ -378,6 +378,8 @@ const modules = /* @__PURE__ */ new Set([
|
|
|
378
378
|
"@formatjs/intl",
|
|
379
379
|
"react-intl",
|
|
380
380
|
"react-intl/server",
|
|
381
|
+
"@formatjs/svelte-intl",
|
|
382
|
+
"vue-intl",
|
|
381
383
|
"intl-messageformat"
|
|
382
384
|
]);
|
|
383
385
|
function staticObject(node) {
|
|
@@ -576,7 +578,9 @@ function catalogAnnotation(context, node) {
|
|
|
576
578
|
const descriptorModules = /* @__PURE__ */ new Set([
|
|
577
579
|
"@formatjs/intl",
|
|
578
580
|
"react-intl",
|
|
579
|
-
"react-intl/server"
|
|
581
|
+
"react-intl/server",
|
|
582
|
+
"@formatjs/svelte-intl",
|
|
583
|
+
"vue-intl"
|
|
580
584
|
]);
|
|
581
585
|
function checkInlineMessage(context, node) {
|
|
582
586
|
if (node.type !== "CallExpression") return;
|
|
@@ -4062,17 +4066,6 @@ const EMOJI_RANGES = [
|
|
|
4062
4066
|
*/
|
|
4063
4067
|
const graphemeSegmenter = new Intl.Segmenter("en", { granularity: "grapheme" });
|
|
4064
4068
|
/**
|
|
4065
|
-
* Regex for detecting emoji using Unicode 17.0.0 Emoji_Presentation data
|
|
4066
|
-
* Generated from @unicode/unicode-17.0.0/Binary_Property/Emoji_Presentation
|
|
4067
|
-
* This avoids false positives from #, *, digits, and text symbols like ©
|
|
4068
|
-
*/
|
|
4069
|
-
const emojiPresentationRegexCompiled = emojiPresentationRegex.default ?? emojiPresentationRegex;
|
|
4070
|
-
/**
|
|
4071
|
-
* Regex for detecting emoji-capable characters using Unicode 17.0.0 Emoji property
|
|
4072
|
-
* This includes characters that can have emoji presentation (like ❤, ☀)
|
|
4073
|
-
*/
|
|
4074
|
-
const emojiPropertyRegexCompiled = emojiPropertyRegex.default ?? emojiPropertyRegex;
|
|
4075
|
-
/**
|
|
4076
4069
|
* Check if a string contains any emoji
|
|
4077
4070
|
* Uses Unicode 17.0.0 Emoji_Presentation data and variation selector (U+FE0F)
|
|
4078
4071
|
* to properly detect emoji while avoiding false positives from characters like
|
|
@@ -5124,7 +5117,7 @@ var package_exports = /* @__PURE__ */ __exportAll({
|
|
|
5124
5117
|
version: () => version$1
|
|
5125
5118
|
});
|
|
5126
5119
|
var name$1 = "eslint-plugin-formatjs";
|
|
5127
|
-
var version$1 = "7.0.0
|
|
5120
|
+
var version$1 = "7.0.0";
|
|
5128
5121
|
var description = "ESLint plugin for formatjs";
|
|
5129
5122
|
var keywords = [
|
|
5130
5123
|
"eslint",
|