@comment-labs/oxlint-config 1.0.6 → 1.0.8

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 (44) hide show
  1. package/dist/index.d.mts +0 -2
  2. package/dist/index.mjs +78 -46
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/plugins/anti-slop.d.mts +4 -0
  5. package/dist/plugins/anti-slop.mjs +7 -0
  6. package/dist/plugins/anti-slop.mjs.map +1 -0
  7. package/dist/plugins/brettz9.d.mts +1 -3
  8. package/dist/plugins/brettz9.mjs +2 -3
  9. package/dist/plugins/e18e.d.mts +1 -3
  10. package/dist/plugins/e18e.mjs +2 -3
  11. package/dist/plugins/i18next.d.mts +0 -2
  12. package/dist/plugins/i18next.mjs +6 -11
  13. package/dist/plugins/i18next.mjs.map +1 -1
  14. package/dist/plugins/jsdoc.d.mts +1 -3
  15. package/dist/plugins/jsdoc.mjs +2 -3
  16. package/dist/plugins/labs.d.mts +0 -2
  17. package/dist/plugins/labs.mjs +2 -4
  18. package/dist/plugins/labs.mjs.map +1 -1
  19. package/dist/plugins/playwright.d.mts +1 -3
  20. package/dist/plugins/playwright.mjs +2 -3
  21. package/dist/plugins/react-hooks.d.mts +1 -3
  22. package/dist/plugins/react-hooks.mjs +2 -3
  23. package/dist/plugins/react-native.d.mts +1 -3
  24. package/dist/plugins/react-native.mjs +2 -3
  25. package/dist/plugins/react-refresh.d.mts +1 -3
  26. package/dist/plugins/react-refresh.mjs +2 -3
  27. package/dist/plugins/regexp.d.mts +1 -3
  28. package/dist/plugins/regexp.mjs +2 -3
  29. package/dist/plugins/security.d.mts +1 -3
  30. package/dist/plugins/security.mjs +2 -3
  31. package/dist/plugins/stylistic.d.mts +1 -3
  32. package/dist/plugins/stylistic.mjs +2 -3
  33. package/dist/plugins/unicorn.d.mts +1 -3
  34. package/dist/plugins/unicorn.mjs +2 -3
  35. package/dist/plugins/zod.d.mts +4 -0
  36. package/dist/plugins/zod.mjs +7 -0
  37. package/dist/plugins/zod.mjs.map +1 -0
  38. package/dist/{sanitize-plugin-CAJduUuZ.mjs → sanitize-plugin-DZgftcJx.mjs} +2 -3
  39. package/dist/{sanitize-plugin-CAJduUuZ.mjs.map → sanitize-plugin-DZgftcJx.mjs.map} +1 -1
  40. package/dist/{sanitize-plugin-_kmEeqj0.d.mts → sanitize-plugin-DfbJP7oI.d.mts} +1 -3
  41. package/package.json +14 -13
  42. package/dist/plugins/import-zod.d.mts +0 -6
  43. package/dist/plugins/import-zod.mjs +0 -8
  44. package/dist/plugins/import-zod.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- //#region src/plugin/i18next/constants.ts
1
+ // src/plugin/i18next/constants.ts
2
2
  const DOM_TAGS = [
3
3
  "a",
4
4
  "abbr",
@@ -192,8 +192,7 @@ const SVG_TAGS = [
192
192
  "use",
193
193
  "view"
194
194
  ];
195
- //#endregion
196
- //#region src/plugin/i18next/helpers.ts
195
+ // src/plugin/i18next/helpers.ts
197
196
  const UPPERCASE_REGEX = /^[A-Z_-]+$/u;
198
197
  function isUpperCase(str) {
199
198
  return UPPERCASE_REGEX.test(str);
@@ -244,8 +243,7 @@ function getNearestAncestor(node, type) {
244
243
  }
245
244
  return null;
246
245
  }
247
- //#endregion
248
- //#region src/plugin/i18next/options.ts
246
+ // src/plugin/i18next/options.ts
249
247
  const defaults = {
250
248
  framework: "react",
251
249
  mode: "jsx-text-only",
@@ -612,8 +610,7 @@ const schema = {
612
610
  "should-validate-template": { type: "boolean" }
613
611
  }
614
612
  };
615
- //#endregion
616
- //#region src/plugin/i18next/no-literal-string.ts
613
+ // src/plugin/i18next/no-literal-string.ts
617
614
  function getSourceCode(context) {
618
615
  return context.sourceCode ?? context.getSourceCode();
619
616
  }
@@ -652,8 +649,7 @@ function resolveCallee(node) {
652
649
  if (node.type === "TaggedTemplateExpression") return node.tag;
653
650
  return node;
654
651
  }
655
- //#endregion
656
- //#region src/plugin/i18next/index.ts
652
+ // src/plugin/i18next/index.ts
657
653
  const i18next = {
658
654
  meta: {
659
655
  name: "i18next",
@@ -875,7 +871,7 @@ const i18next = {
875
871
  if (defineTemplateBodyVisitor) {
876
872
  const invoke = (name) => (node) => {
877
873
  const handler = scriptVisitor[name];
878
- handler?.(node);
874
+ handler(node);
879
875
  };
880
876
  return defineTemplateBodyVisitor({
881
877
  VText: invoke("JSXText"),
@@ -893,7 +889,6 @@ const i18next = {
893
889
  }
894
890
  } }
895
891
  };
896
- //#endregion
897
892
  export { i18next as default };
898
893
 
899
894
  //# sourceMappingURL=i18next.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18next.mjs","names":["element","attribute"],"sources":["../../src/plugin/i18next/constants.ts","../../src/plugin/i18next/helpers.ts","../../src/plugin/i18next/html-entities.ts","../../src/plugin/i18next/options.ts","../../src/plugin/i18next/no-literal-string.ts","../../src/plugin/i18next/index.ts"],"sourcesContent":["/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nexport const DOM_TAGS = [\n 'a',\n 'abbr',\n 'acronym',\n 'applet',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'base',\n 'basefont',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'data',\n 'datalist',\n 'dd',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'em',\n 'embed',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'frame',\n 'frameset',\n 'h1 to h6',\n 'head',\n 'header',\n 'hr',\n 'html',\n 'i',\n 'iframe',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'link',\n 'main',\n 'map',\n 'mark',\n 'meta',\n 'meter',\n 'nav',\n 'noframes',\n 'noscript',\n 'object',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'param',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'script',\n 'section',\n 'select',\n 'small',\n 'source',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'svg',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'title',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr'\n]\n\nexport const SVG_TAGS = [\n 'a',\n 'animate',\n 'animateMotion',\n 'animateTransform',\n 'circle',\n 'clipPath',\n 'color-profile',\n 'defs',\n 'desc',\n 'discard',\n 'ellipse',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'filter',\n 'foreignObject',\n 'g',\n 'hatch',\n 'hatchpath',\n 'image',\n 'line',\n 'linearGradient',\n 'marker',\n 'mask',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialGradient',\n 'rect',\n 'script',\n 'set',\n 'solidcolor',\n 'stop',\n 'style',\n 'svg',\n 'switch',\n 'symbol',\n 'text',\n 'textPath',\n 'title',\n 'tspan',\n 'unknown',\n 'use',\n 'view'\n]\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nimport { DOM_TAGS, SVG_TAGS } from './constants'\n\nconst UPPERCASE_REGEX = /^[A-Z_-]+$/u\n\nexport function isUpperCase(str: string): boolean {\n return UPPERCASE_REGEX.test(str)\n}\n\nfunction isNativeDOMTag(str: string): boolean {\n return DOM_TAGS.includes(str)\n}\n\nfunction isSvgTag(str: string): boolean {\n return SVG_TAGS.includes(str)\n}\n\nconst BLACKLIST_ATTRS = new Set([ 'placeholder', 'alt', 'aria-label', 'value', 'title' ])\n\nexport function isAllowedDOMAttr(tag: string, attr: string): boolean {\n if (isSvgTag(tag)) {\n return true\n }\n\n if (isNativeDOMTag(tag)) {\n return !BLACKLIST_ATTRS.has(attr)\n }\n\n return false\n}\n\nexport function generateFullMatchRegExp(source: unknown): RegExp {\n if (source instanceof RegExp) {\n return source\n }\n\n if (typeof source !== 'string') {\n throw new TypeError(`generateFullMatchRegExp: expected string but got ${String(source)}`)\n }\n\n // oxlint-disable-next-line security-js/detect-non-literal-regexp\n return new RegExp(`^${source}${source.endsWith('$') ? '' : '$'}`, 'u')\n}\n\nconst patternCache = new WeakMap<readonly unknown[], (text: string) => boolean>()\n\nexport function matchPatterns(patterns: readonly unknown[], text: string): boolean {\n let handler = patternCache.get(patterns)\n\n if (!handler) {\n handler = (str: string) => patterns.map(pattern => generateFullMatchRegExp(pattern)).some(item => item.test(str))\n patternCache.set(patterns, handler)\n }\n\n return handler(text)\n}\n\nexport interface SkipPatterns {\n include?: readonly unknown[]\n exclude?: readonly unknown[]\n}\n\nexport function shouldSkip({ exclude = [], include = [] }: SkipPatterns, text: string): boolean {\n if (include.length === 0 && exclude.length === 0) {\n return false\n }\n\n if (include.length > 0 && matchPatterns(include, text)) {\n return false\n }\n\n if (exclude.length > 0 && !matchPatterns(exclude, text)) {\n return false\n }\n\n return true\n}\n\nexport interface AncestorNode {\n type: string\n parent?: (AncestorNode | undefined | null)\n}\n\nexport function getNearestAncestor(node: AncestorNode, type: string): AncestorNode | null {\n let temp: AncestorNode | undefined | null = node.parent\n\n while (temp) {\n if (temp.type === type) {\n return temp\n }\n\n temp = temp.parent\n }\n\n return null\n}\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nconst entities: Record<string, string> = {\n quot: '\\u0022',\n amp: '&',\n apos: '\\u0027',\n lt: '<',\n gt: '>',\n nbsp: '\\u00A0',\n iexcl: '\\u00A1',\n cent: '\\u00A2',\n pound: '\\u00A3',\n curren: '\\u00A4',\n yen: '\\u00A5',\n brvbar: '\\u00A6',\n sect: '\\u00A7',\n uml: '\\u00A8',\n copy: '\\u00A9',\n ordf: '\\u00AA',\n laquo: '\\u00AB',\n not: '\\u00AC',\n shy: '\\u00AD',\n reg: '\\u00AE',\n macr: '\\u00AF',\n deg: '\\u00B0',\n plusmn: '\\u00B1',\n sup2: '\\u00B2',\n sup3: '\\u00B3',\n acute: '\\u00B4',\n micro: '\\u00B5',\n para: '\\u00B6',\n middot: '\\u00B7',\n cedil: '\\u00B8',\n sup1: '\\u00B9',\n ordm: '\\u00BA',\n raquo: '\\u00BB',\n frac14: '\\u00BC',\n frac12: '\\u00BD',\n frac34: '\\u00BE',\n iquest: '\\u00BF',\n Agrave: '\\u00C0',\n Aacute: '\\u00C1',\n Acirc: '\\u00C2',\n Atilde: '\\u00C3',\n Auml: '\\u00C4',\n Aring: '\\u00C5',\n AElig: '\\u00C6',\n Ccedil: '\\u00C7',\n Egrave: '\\u00C8',\n Eacute: '\\u00C9',\n Ecirc: '\\u00CA',\n Euml: '\\u00CB',\n Igrave: '\\u00CC',\n Iacute: '\\u00CD',\n Icirc: '\\u00CE',\n Iuml: '\\u00CF',\n ETH: '\\u00D0',\n Ntilde: '\\u00D1',\n Ograve: '\\u00D2',\n Oacute: '\\u00D3',\n Ocirc: '\\u00D4',\n Otilde: '\\u00D5',\n Ouml: '\\u00D6',\n times: '\\u00D7',\n Oslash: '\\u00D8',\n Ugrave: '\\u00D9',\n Uacute: '\\u00DA',\n Ucirc: '\\u00DB',\n Uuml: '\\u00DC',\n Yacute: '\\u00DD',\n THORN: '\\u00DE',\n szlig: '\\u00DF',\n agrave: '\\u00E0',\n aacute: '\\u00E1',\n acirc: '\\u00E2',\n atilde: '\\u00E3',\n auml: '\\u00E4',\n aring: '\\u00E5',\n aelig: '\\u00E6',\n ccedil: '\\u00E7',\n egrave: '\\u00E8',\n eacute: '\\u00E9',\n ecirc: '\\u00EA',\n euml: '\\u00EB',\n igrave: '\\u00EC',\n iacute: '\\u00ED',\n icirc: '\\u00EE',\n iuml: '\\u00EF',\n eth: '\\u00F0',\n ntilde: '\\u00F1',\n ograve: '\\u00F2',\n oacute: '\\u00F3',\n ocirc: '\\u00F4',\n otilde: '\\u00F5',\n ouml: '\\u00F6',\n divide: '\\u00F7',\n oslash: '\\u00F8',\n ugrave: '\\u00F9',\n uacute: '\\u00FA',\n ucirc: '\\u00FB',\n uuml: '\\u00FC',\n yacute: '\\u00FD',\n thorn: '\\u00FE',\n yuml: '\\u00FF',\n OElig: '\\u0152',\n oelig: '\\u0153',\n Scaron: '\\u0160',\n scaron: '\\u0161',\n Yuml: '\\u0178',\n fnof: '\\u0192',\n circ: '\\u02C6',\n tilde: '\\u02DC',\n Alpha: '\\u0391',\n Beta: '\\u0392',\n Gamma: '\\u0393',\n Delta: '\\u0394',\n Epsilon: '\\u0395',\n Zeta: '\\u0396',\n Eta: '\\u0397',\n Theta: '\\u0398',\n Iota: '\\u0399',\n Kappa: '\\u03A0',\n Lambda: '\\u039B',\n Mu: '\\u039C',\n Nu: '\\u039D',\n Xi: '\\u039E',\n Omicron: '\\u039F',\n Pi: '\\u03A0',\n Rho: '\\u03A1',\n Sigma: '\\u03A3',\n Tau: '\\u03A4',\n Upsilon: '\\u03A5',\n Phi: '\\u03A6',\n Chi: '\\u03A7',\n Psi: '\\u03A8',\n Omega: '\\u03A9',\n alpha: '\\u03B1',\n beta: '\\u03B2',\n gamma: '\\u03B3',\n delta: '\\u03B4',\n epsilon: '\\u03B5',\n zeta: '\\u03B6',\n eta: '\\u03B7',\n theta: '\\u03B8',\n iota: '\\u03B9',\n kappa: '\\u03BA',\n lambda: '\\u03BB',\n mu: '\\u03BC',\n nu: '\\u03BD',\n xi: '\\u03BE',\n omicron: '\\u03BF',\n pi: '\\u03C0',\n rho: '\\u03C1',\n sigmaf: '\\u03C2',\n sigma: '\\u03C3',\n tau: '\\u03C4',\n upsilon: '\\u03C5',\n phi: '\\u03C6',\n chi: '\\u03C7',\n psi: '\\u03C8',\n omega: '\\u03C9',\n thetasym: '\\u03D1',\n upsih: '\\u03D2',\n piv: '\\u03D6',\n ensp: '\\u2002',\n emsp: '\\u2003',\n thinsp: '\\u2009',\n zwnj: '\\u200C',\n zwj: '\\u200D',\n lrm: '\\u200E',\n rlm: '\\u200F',\n ndash: '\\u2013',\n mdash: '\\u2014',\n lsquo: '\\u2018',\n rsquo: '\\u2019',\n sbquo: '\\u201A',\n ldquo: '\\u201C',\n rdquo: '\\u201D',\n bdquo: '\\u201E',\n dagger: '\\u2020',\n Dagger: '\\u2021',\n bull: '\\u2022',\n hellip: '\\u2026',\n permil: '\\u2030',\n prime: '\\u2032',\n Prime: '\\u2033',\n lsaquo: '\\u2039',\n rsaquo: '\\u203A',\n oline: '\\u203E',\n frasl: '\\u2044',\n euro: '\\u20AC',\n image: '\\u2111',\n weierp: '\\u2118',\n real: '\\u211C',\n trade: '\\u2122',\n alefsym: '\\u2135',\n larr: '\\u2190',\n uarr: '\\u2191',\n rarr: '\\u2192',\n darr: '\\u2193',\n harr: '\\u2194',\n crarr: '\\u21B5',\n lArr: '\\u21D0',\n uArr: '\\u21D1',\n rArr: '\\u21D2',\n dArr: '\\u21D3',\n hArr: '\\u21D4',\n forall: '\\u2200',\n part: '\\u2202',\n exist: '\\u2203',\n empty: '\\u2205',\n nabla: '\\u2207',\n isin: '\\u2208',\n notin: '\\u2209',\n ni: '\\u220B',\n prod: '\\u220F',\n sum: '\\u2211',\n minus: '\\u2212',\n lowast: '\\u2217',\n radic: '\\u221A',\n prop: '\\u221D',\n infin: '\\u221E',\n ang: '\\u2220',\n and: '\\u2227',\n or: '\\u2228',\n cap: '\\u2229',\n cup: '\\u222A',\n int: '\\u222B',\n there4: '\\u2234',\n sim: '\\u223C',\n cong: '\\u2245',\n asymp: '\\u2248',\n ne: '\\u2260',\n equiv: '\\u2261',\n le: '\\u2264',\n ge: '\\u2265',\n sub: '\\u2282',\n sup: '\\u2283',\n nsub: '\\u2284',\n sube: '\\u2286',\n supe: '\\u2287',\n oplus: '\\u2295',\n otimes: '\\u2297',\n perp: '\\u22A5',\n sdot: '\\u22C5',\n lceil: '\\u2308',\n rceil: '\\u2309',\n lfloor: '\\u230A',\n rfloor: '\\u230B',\n lang: '\\u2329',\n rang: '\\u232A',\n loz: '\\u25CA',\n spades: '\\u2660',\n clubs: '\\u2663',\n hearts: '\\u2665',\n diams: '\\u2666'\n}\n\n// oxlint-disable-next-line regexp-js/no-dupe-disjunctions, regexp-js/prefer-character-class, security-js/detect-non-literal-regexp\nexport const htmlEntities = new RegExp(`^(${Object.values(entities).join('|')})+$`, 'u')\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n// oxlint-disable stylistic-js/array-bracket-spacing\n\nimport { htmlEntities } from './html-entities'\n\nexport const defaults = {\n framework: 'react' as const,\n mode: 'jsx-text-only' as const,\n 'jsx-components': {\n include: [] as readonly string[],\n exclude: ['Trans'] as readonly string[]\n },\n 'jsx-attributes': {\n include: [] as readonly string[],\n exclude: [\n 'className',\n 'styleName',\n 'style',\n 'type',\n 'key',\n 'id',\n 'width',\n 'height'\n ] as readonly string[]\n },\n words: {\n exclude: [\n '[0-9!-/:-@[-`{-~]+',\n '[A-Z_-]+',\n htmlEntities,\n /^\\p{Emoji}+$/u\n ] as readonly (string | RegExp)[]\n },\n callees: {\n exclude: [\n 'i18n(ext)?',\n 't',\n 'require',\n 'addEventListener',\n 'removeEventListener',\n 'postMessage',\n 'getElementById',\n 'dispatch',\n 'commit',\n 'includes',\n 'indexOf',\n 'endsWith',\n 'startsWith'\n ] as readonly string[]\n },\n 'object-properties': {\n include: [] as readonly string[],\n exclude: ['[A-Z_-]+'] as readonly string[]\n },\n 'class-properties': {\n include: [] as readonly string[],\n exclude: ['displayName'] as readonly string[]\n },\n message: 'disallow literal string',\n 'should-validate-template': false\n}\n\nexport type RuleOptions = typeof defaults\n\nexport const schema = {\n $schema: 'http://json-schema.org/draft-07/schema#',\n type: 'object',\n properties: {\n framework: {\n type: 'string',\n enum: ['react', 'vue']\n },\n mode: {\n type: 'string',\n enum: ['jsx-text-only', 'jsx-only', 'all', 'vue-template-only']\n },\n 'jsx-components': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'jsx-attributes': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n words: {\n type: 'object',\n properties: {\n exclude: { type: 'array' }\n }\n },\n callees: {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'object-properties': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'class-properties': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n message: { type: 'string' },\n 'should-validate-template': { type: 'boolean' }\n }\n}\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n// oxlint-disable typescript/no-unsafe-type-assertion\n// oxlint-disable typescript/no-unnecessary-type-assertion\n\nimport type { Rule, SourceCode } from 'eslint'\nimport { getNearestAncestor, isAllowedDOMAttr, isUpperCase, shouldSkip, type SkipPatterns } from './helpers'\nimport { defaults, schema } from './options'\n\n\ntype Context = Rule.RuleContext\n\ntype Node = Rule.Node\n\ntype Options = Record<string, unknown>\n\ntype LooseNode = {\n type: string\n parent?: LooseNode | null\n [key: string]: unknown\n}\n\ntype JSXMemberExpressionNode = LooseNode & {\n type: 'JSXMemberExpression'\n object: JSXMemberExpressionNode | JSXIdentifierNode\n property: JSXIdentifierNode\n}\n\ntype JSXIdentifierNode = LooseNode & {\n type: 'JSXIdentifier'\n name: string\n}\n\ntype JSXOpeningElementNode = LooseNode & {\n type: 'JSXOpeningElement'\n name: JSXIdentifierNode | JSXMemberExpressionNode\n}\n\ntype JSXElementNode = LooseNode & {\n type: 'JSXElement'\n openingElement: JSXOpeningElementNode\n}\n\ntype JSXAttributeNode = LooseNode & {\n type: 'JSXAttribute'\n name: JSXIdentifierNode\n value: Node | null\n}\n\ntype VIdentifierNode = LooseNode & {\n type: 'VIdentifier'\n name: string\n rawName: string\n}\n\ntype VDirectiveKeyNode = LooseNode & {\n type: 'VDirectiveKey'\n name: VIdentifierNode\n argument: VIdentifierNode | null\n}\n\ntype VAttributeNode = LooseNode & {\n type: 'VAttribute'\n key: VDirectiveKeyNode | VIdentifierNode\n directive: boolean\n}\n\ntype VElementNode = LooseNode & {\n type: 'VElement'\n rawName: string\n}\n\nfunction getSourceCode(context: Context): SourceCode {\n // oxlint-disable-next-line typescript/no-unnecessary-condition\n return context.sourceCode\n ?? (context as unknown as { getSourceCode(): SourceCode }).getSourceCode()\n}\n\nfunction getText(context: Context, node: Node): string {\n return getSourceCode(context).getText(node as Parameters<SourceCode['getText']>[0])\n}\n\nfunction getAncestors(context: Context, node: Node): Node[] {\n return getSourceCode(context).getAncestors(node as Parameters<SourceCode['getAncestors']>[0]) as Node[]\n}\n\nfunction withDottedPrefix(patterns: readonly unknown[] = []): readonly unknown[] {\n return patterns.map(item => typeof item === 'string' ? `(?:.*\\\\.)?${item}` : item)\n}\n\nfunction isValidFunctionCall(context: Context, options: Options, { callee }: { callee: Node }): boolean {\n if ((callee as { type: string }).type === 'Import') {\n return true\n }\n\n const sourceText = getText(context, callee)\n const callees = (options.callees as SkipPatterns | undefined) ?? {}\n\n return shouldSkip(\n {\n include: withDottedPrefix(callees.include),\n exclude: withDottedPrefix(callees.exclude)\n },\n sourceText\n )\n}\n\nfunction isValidLiteral(options: Options, { value }: { value: unknown }): boolean {\n if (typeof value !== 'string') {\n return true\n }\n\n const trimmed = value.trim()\n if (!trimmed) {\n return true\n }\n\n const words = (options.words as SkipPatterns | undefined) ?? {}\n\n return shouldSkip(words, trimmed)\n}\n\nfunction getAttributeName(node: VAttributeNode): string | null {\n if (!node.directive) {\n return (node.key as VIdentifierNode).rawName\n }\n\n const directiveKey = node.key as VDirectiveKeyNode\n if (\n (directiveKey.name.name === 'bind' || directiveKey.name.name === 'model')\n && directiveKey.argument\n ) {\n return directiveKey.argument.rawName\n }\n\n return null\n}\n\nfunction resolveCallee(node: Node): Node {\n if (node.type === 'CallExpression' || node.type === 'NewExpression') {\n return node.callee as Node\n }\n\n if (node.type === 'TaggedTemplateExpression') {\n return node.tag as Node\n }\n\n return node\n}\n\nexport const noLiteralString: Rule.RuleModule = {\n meta: {\n type: 'suggestion',\n docs: {\n description: 'disallow literal string',\n recommended: true\n },\n schema: [ schema ],\n messages: {\n literal: '{{message}}: {{parent}}'\n }\n },\n\n create(context) {\n const parserServices = (context as unknown as { parserServices?: unknown }).parserServices\n ?? ((context as unknown as { sourceCode?: { parserServices?: unknown } }).sourceCode?.parserServices)\n const userOptions = (context.options[0] as Options | undefined) ?? {}\n const options = { ...defaults, ...userOptions }\n\n const {\n mode: rawMode,\n 'should-validate-template': validateTemplate,\n message,\n framework: rawFramework\n } = options as typeof defaults\n\n const mode = rawMode as string\n const framework = rawFramework as string\n\n const onlyValidateJSX = [ 'jsx-only', 'jsx-text-only' ].includes(mode)\n const onlyValidateVueTemplate = framework === 'vue' && mode === 'vue-template-only'\n\n const indicatorStack: boolean[] = []\n\n function endIndicator(): void {\n indicatorStack.pop()\n }\n\n function isValidScope(): boolean {\n return indicatorStack.some(Boolean)\n }\n\n function report(node: Node): void {\n context.report({\n node,\n messageId: 'literal',\n data: {\n message,\n parent: getText(context, node.parent ?? node)\n }\n })\n }\n\n const { esTreeNodeToTSNodeMap, program } = (parserServices as {\n esTreeNodeToTSNodeMap?: Map<Node, unknown>\n program?: { getTypeChecker(): { getContextualType(node: unknown): ContextualType | null } }\n } | undefined) ?? {}\n\n interface ContextualType {\n isStringLiteral(): boolean\n isUnion(): boolean\n types: Array<{ isStringLiteral(): boolean; value: unknown }>\n }\n\n let typeChecker: ReturnType<NonNullable<typeof program>['getTypeChecker']> | undefined\n if (program && esTreeNodeToTSNodeMap) {\n typeChecker = program.getTypeChecker()\n }\n\n function validateBeforeReport(node: Node & { value: unknown }): void {\n if (isValidScope()) {\n return\n }\n\n if (isValidLiteral(options as Options, node)) {\n return\n }\n\n if (typeChecker) {\n const tsNode = esTreeNodeToTSNodeMap?.get(node)\n if (tsNode !== undefined) {\n const typeObj = typeChecker.getContextualType(tsNode)\n if (typeObj) {\n if (typeObj.isStringLiteral()) {\n return\n }\n\n if (typeObj.isUnion()) {\n const found = typeObj.types.some(item => item.isStringLiteral() && item.value === node.value)\n if (found) {\n return\n }\n }\n }\n }\n }\n\n report(node)\n }\n\n function filterOutJSX(node: Node): boolean {\n if (!onlyValidateJSX) {\n return false\n }\n\n const isInsideJSX = getAncestors(context, node).some(item => [ 'JSXElement', 'JSXFragment' ].includes(item.type))\n\n if (!isInsideJSX) {\n return true\n }\n\n if (\n mode === 'jsx-text-only'\n && ![ 'JSXElement', 'JSXFragment' ].includes(node.parent?.type ?? '')\n ) {\n return true\n }\n\n return false\n }\n\n const scriptVisitor: Rule.RuleListener = {\n ImportExpression() {\n indicatorStack.push(true)\n },\n 'ImportExpression:exit': endIndicator,\n\n ImportDeclaration() {\n indicatorStack.push(true)\n },\n 'ImportDeclaration:exit': endIndicator,\n\n ExportAllDeclaration() {\n indicatorStack.push(true)\n },\n 'ExportAllDeclaration:exit': endIndicator,\n\n 'ExportNamedDeclaration[source]'() {\n indicatorStack.push(true)\n },\n 'ExportNamedDeclaration[source]:exit': endIndicator,\n\n JSXElement(node: Node) {\n const element = node as unknown as JSXElementNode\n const fullComponentName = getText(context, element.openingElement.name as unknown as Node)\n const componentOptions = (options['jsx-components'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(\n {\n include: withDottedPrefix(componentOptions.include),\n exclude: withDottedPrefix(componentOptions.exclude)\n },\n fullComponentName\n )\n )\n },\n 'JSXElement:exit': endIndicator,\n\n JSXAttribute(node: Node) {\n const attribute = node as unknown as JSXAttributeNode\n const attrName = attribute.name.name\n\n const jsxAttributes = (options['jsx-attributes'] as SkipPatterns | undefined) ?? {}\n if (shouldSkip(jsxAttributes, attrName)) {\n indicatorStack.push(true)\n\n return\n }\n\n const jsxElement = getNearestAncestor(node, 'JSXOpeningElement') as unknown as JSXOpeningElementNode\n const tagName = (jsxElement.name as JSXIdentifierNode).name\n if (isAllowedDOMAttr(tagName, attrName)) {\n indicatorStack.push(true)\n\n return\n }\n\n indicatorStack.push(false)\n },\n 'JSXAttribute:exit': endIndicator,\n\n JSXText(node: Node) {\n validateBeforeReport(node as Node & { value: unknown })\n },\n\n VElement(node: Node) {\n const element = node as unknown as VElementNode\n const componentOptions = (options['jsx-components'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(\n {\n include: withDottedPrefix(componentOptions.include),\n exclude: withDottedPrefix(componentOptions.exclude)\n },\n element.rawName\n )\n )\n },\n 'VElement:exit': endIndicator,\n\n VAttribute(node: Node) {\n const attribute = node as unknown as VAttributeNode\n const attrName = getAttributeName(attribute)\n const jsxAttributes = (options['jsx-attributes'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(shouldSkip(jsxAttributes, attrName ?? ''))\n },\n 'VAttribute:exit': endIndicator,\n\n TSModuleDeclaration() {\n indicatorStack.push(true)\n },\n 'TSModuleDeclaration:exit': endIndicator,\n\n TSLiteralType() {\n indicatorStack.push(true)\n },\n 'TSLiteralType:exit': endIndicator,\n\n TSEnumMember() {\n indicatorStack.push(true)\n },\n 'TSEnumMember:exit': endIndicator,\n\n PropertyDefinition(node: Node) {\n const property = node as unknown as { key: { name?: string } }\n const classProperties = (options['class-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(property.key.name !== undefined && shouldSkip(classProperties, property.key.name))\n },\n 'PropertyDefinition:exit': endIndicator,\n\n ClassProperty(node: Node) {\n const property = node as unknown as { key: { name?: string } }\n const classProperties = (options['class-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(property.key.name !== undefined && shouldSkip(classProperties, property.key.name))\n },\n 'ClassProperty:exit': endIndicator,\n\n VariableDeclarator(node: Node) {\n const declarator = node as unknown as { id: { name?: string; type: string } }\n indicatorStack.push(declarator.id.type === 'Identifier' && isUpperCase(declarator.id.name ?? ''))\n },\n 'VariableDeclarator:exit': endIndicator,\n\n Property(node: Node) {\n const property = node as unknown as { key: { name?: string; value?: unknown } }\n const objectProperties = (options['object-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(objectProperties, property.key.name ?? (property.key.value as string | undefined) ?? '')\n )\n },\n 'Property:exit': endIndicator,\n\n BinaryExpression(node: Node) {\n const expression = node as unknown as { operator: string }\n indicatorStack.push(expression.operator !== '+')\n },\n 'BinaryExpression:exit': endIndicator,\n\n AssignmentPattern() {\n indicatorStack.push(true)\n },\n 'AssignmentPattern:exit': endIndicator,\n\n NewExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options as Options, { callee: resolveCallee(node) }))\n },\n 'NewExpression:exit': endIndicator,\n\n CallExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options as Options, { callee: resolveCallee(node) }))\n },\n 'CallExpression:exit': endIndicator,\n\n TaggedTemplateExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options as Options, { callee: resolveCallee(node) }))\n },\n 'TaggedTemplateExpression:exit': endIndicator,\n\n 'AssignmentExpression[left.type=\"MemberExpression\"]'(node: Node) {\n const expression = node as unknown as { left: { property: { name?: string } } }\n const objectProperties = (options['object-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(shouldSkip(objectProperties, expression.left.property.name ?? ''))\n },\n 'AssignmentExpression[left.type=\"MemberExpression\"]:exit': endIndicator,\n\n TemplateLiteral(node: Node) {\n if (!validateTemplate) {\n return\n }\n\n if (framework === 'react' && filterOutJSX(node)) {\n return\n }\n\n if (isValidScope()) {\n return\n }\n\n const literal = node as unknown as { quasis: Array<{ value: { raw: string } }> }\n literal.quasis.some(({ value: { raw } }) => {\n if (isValidLiteral(options as Options, { value: raw })) {\n return false\n }\n\n report(node)\n\n return true\n })\n },\n\n Literal(node: Node) {\n const literal = node as unknown as { value: unknown; parent: { type: string; key?: Node } }\n\n if ([ 'MemberExpression', 'SwitchCase' ].includes(literal.parent.type)) {\n return\n }\n\n if (framework === 'react' && filterOutJSX(node)) {\n return\n }\n\n if (onlyValidateVueTemplate) {\n const parents = getAncestors(context, node)\n if (\n parents.length > 0\n && parents.every(\n item => ![ 'VElement', 'VAttribute', 'VText', 'VExpressionContainer' ].includes(item.type)\n )\n ) {\n return\n }\n }\n\n if (literal.parent.key === node) {\n return\n }\n\n validateBeforeReport(node as unknown as Node & { value: unknown })\n }\n }\n\n const defineTemplateBodyVisitor = (parserServices as {\n defineTemplateBodyVisitor?: DefineTemplateBodyVisitor\n } | undefined)?.defineTemplateBodyVisitor\n\n if (defineTemplateBodyVisitor) {\n const invoke = (name: string) => (node: Node) => {\n const handler = (scriptVisitor as unknown as Record<string, (node: Node) => void>)[name]\n handler?.(node)\n }\n\n return defineTemplateBodyVisitor(\n {\n VText: invoke('JSXText'),\n VLiteral: invoke('JSXText'),\n VElement: invoke('VElement'),\n 'VElement:exit': invoke('VElement:exit'),\n VAttribute: invoke('VAttribute'),\n 'VAttribute:exit': invoke('VAttribute:exit'),\n 'VExpressionContainer CallExpression': invoke('CallExpression'),\n 'VExpressionContainer CallExpression:exit': invoke('CallExpression:exit'),\n 'VExpressionContainer Literal': invoke('Literal')\n },\n scriptVisitor\n )\n }\n\n return scriptVisitor\n }\n}\n\ntype DefineTemplateBodyVisitor = (\n templateBodyVisitor: Record<string, (node: Node) => void>,\n scriptVisitor: Rule.RuleListener\n) => Rule.RuleListener\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nimport { noLiteralString } from './no-literal-string'\n\n\nexport const i18next = {\n meta: {\n name: 'i18next',\n version: '1.0.0'\n },\n rules: {\n 'no-literal-string': noLiteralString\n }\n}\n"],"mappings":";AAmBA,MAAa,WAAW;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,WAAW;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;AC/LA,MAAM,kBAAkB;AAExB,SAAgB,YAAY,KAAsB;CAChD,OAAO,gBAAgB,KAAK,GAAG;AACjC;AAEA,SAAS,eAAe,KAAsB;CAC5C,OAAO,SAAS,SAAS,GAAG;AAC9B;AAEA,SAAS,SAAS,KAAsB;CACtC,OAAO,SAAS,SAAS,GAAG;AAC9B;AAEA,MAAM,kCAAkB,IAAI,IAAI;CAAE;CAAe;CAAO;CAAc;CAAS;AAAQ,CAAC;AAExF,SAAgB,iBAAiB,KAAa,MAAuB;CACnE,IAAI,SAAS,GAAG,GACd,OAAO;CAGT,IAAI,eAAe,GAAG,GACpB,OAAO,CAAC,gBAAgB,IAAI,IAAI;CAGlC,OAAO;AACT;AAEA,SAAgB,wBAAwB,QAAyB;CAC/D,IAAI,kBAAkB,QAC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I,CAAC,GACnD,OAAO;MAGT,OAAO,IAAI;MAEX,OAAO;KACT,CAAC;IACH;IAEA,QAAQ,MAAY;KAClB,MAAM,UAAU;KAEhB,IAAI,CAAE,oBAAoB,YAAa,CAAC,CAAC,SAAS,QAAQ,OAAO,IAAI,GACnE;KAGF,IAAI,cAAc,WAAW,aAAa,IAAI,GAC5C;KAGF,IAAI,yBAAyB;MAC3B,MAAM,UAAU,aAAa,SAAS,IAAI;MAC1C,IACE,QAAQ,SAAS,KACd,QAAQ,OACT,SAAQ,CAAC;OAAE;OAAY;OAAc;OAAS;MAAuB,CAAC,CAAC,SAAS,KAAK,IAAI,CAC3F,GAEA;KAEJ;KAEA,IAAI,QAAQ,OAAO,QAAQ,MACzB;KAGF,qBAAqB,IAA4C;IACnE;GACF;GAEA,MAAM,4BAA6B,gBAEnB;GAEhB,IAAI,2BAA2B;IAC7B,MAAM,UAAU,UAAkB,SAAe;KAC/C,MAAM,UAAW,cAAkE;KACnF,UAAU,IAAI;IAChB;IAEA,OAAO,0BACL;KACE,OAAO,OAAO,SAAS;KACvB,UAAU,OAAO,SAAS;KAC1B,UAAU,OAAO,UAAU;KAC3B,iBAAiB,OAAO,eAAe;KACvC,YAAY,OAAO,YAAY;KAC/B,mBAAmB,OAAO,iBAAiB;KAC3C,uCAAuC,OAAO,gBAAgB;KAC9D,4CAA4C,OAAO,qBAAqB;KACxE,gCAAgC,OAAO,SAAS;IAClD,GACA,aACF;GACF;GAEA,OAAO;EACT;CC3fuB,EACvB;AACF"}
1
+ {"version":3,"file":"i18next.mjs","names":["element","attribute"],"sources":["../../src/plugin/i18next/constants.ts","../../src/plugin/i18next/helpers.ts","../../src/plugin/i18next/html-entities.ts","../../src/plugin/i18next/options.ts","../../src/plugin/i18next/no-literal-string.ts","../../src/plugin/i18next/index.ts"],"sourcesContent":["/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nexport const DOM_TAGS = [\n 'a',\n 'abbr',\n 'acronym',\n 'applet',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'base',\n 'basefont',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'data',\n 'datalist',\n 'dd',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'em',\n 'embed',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'frame',\n 'frameset',\n 'h1 to h6',\n 'head',\n 'header',\n 'hr',\n 'html',\n 'i',\n 'iframe',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'link',\n 'main',\n 'map',\n 'mark',\n 'meta',\n 'meter',\n 'nav',\n 'noframes',\n 'noscript',\n 'object',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'param',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'script',\n 'section',\n 'select',\n 'small',\n 'source',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'svg',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'title',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr'\n]\n\nexport const SVG_TAGS = [\n 'a',\n 'animate',\n 'animateMotion',\n 'animateTransform',\n 'circle',\n 'clipPath',\n 'color-profile',\n 'defs',\n 'desc',\n 'discard',\n 'ellipse',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'filter',\n 'foreignObject',\n 'g',\n 'hatch',\n 'hatchpath',\n 'image',\n 'line',\n 'linearGradient',\n 'marker',\n 'mask',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialGradient',\n 'rect',\n 'script',\n 'set',\n 'solidcolor',\n 'stop',\n 'style',\n 'svg',\n 'switch',\n 'symbol',\n 'text',\n 'textPath',\n 'title',\n 'tspan',\n 'unknown',\n 'use',\n 'view'\n]\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nimport { DOM_TAGS, SVG_TAGS } from './constants'\n\nconst UPPERCASE_REGEX = /^[A-Z_-]+$/u\n\nexport function isUpperCase(str: string): boolean {\n return UPPERCASE_REGEX.test(str)\n}\n\nfunction isNativeDOMTag(str: string): boolean {\n return DOM_TAGS.includes(str)\n}\n\nfunction isSvgTag(str: string): boolean {\n return SVG_TAGS.includes(str)\n}\n\nconst BLACKLIST_ATTRS = new Set([ 'placeholder', 'alt', 'aria-label', 'value', 'title' ])\n\nexport function isAllowedDOMAttr(tag: string, attr: string): boolean {\n if (isSvgTag(tag)) {\n return true\n }\n\n if (isNativeDOMTag(tag)) {\n return !BLACKLIST_ATTRS.has(attr)\n }\n\n return false\n}\n\nexport function generateFullMatchRegExp(source: unknown): RegExp {\n if (source instanceof RegExp) {\n return source\n }\n\n if (typeof source !== 'string') {\n throw new TypeError(`generateFullMatchRegExp: expected string but got ${String(source)}`)\n }\n\n // oxlint-disable-next-line security-js/detect-non-literal-regexp\n return new RegExp(`^${source}${source.endsWith('$') ? '' : '$'}`, 'u')\n}\n\nconst patternCache = new WeakMap<readonly unknown[], (text: string) => boolean>()\n\nexport function matchPatterns(patterns: readonly unknown[], text: string): boolean {\n let handler = patternCache.get(patterns)\n\n if (!handler) {\n handler = (str: string) => patterns.map(pattern => generateFullMatchRegExp(pattern)).some(item => item.test(str))\n patternCache.set(patterns, handler)\n }\n\n return handler(text)\n}\n\nexport interface SkipPatterns {\n include?: readonly unknown[]\n exclude?: readonly unknown[]\n}\n\nexport function shouldSkip({ exclude = [], include = [] }: SkipPatterns, text: string): boolean {\n if (include.length === 0 && exclude.length === 0) {\n return false\n }\n\n if (include.length > 0 && matchPatterns(include, text)) {\n return false\n }\n\n if (exclude.length > 0 && !matchPatterns(exclude, text)) {\n return false\n }\n\n return true\n}\n\nexport interface AncestorNode {\n type: string\n parent?: (AncestorNode | undefined | null)\n}\n\nexport function getNearestAncestor(node: AncestorNode, type: string): AncestorNode | null {\n let temp: AncestorNode | undefined | null = node.parent\n\n while (temp) {\n if (temp.type === type) {\n return temp\n }\n\n temp = temp.parent\n }\n\n return null\n}\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nconst entities = {\n quot: '\\u0022',\n amp: '&',\n apos: '\\u0027',\n lt: '<',\n gt: '>',\n nbsp: '\\u00A0',\n iexcl: '\\u00A1',\n cent: '\\u00A2',\n pound: '\\u00A3',\n curren: '\\u00A4',\n yen: '\\u00A5',\n brvbar: '\\u00A6',\n sect: '\\u00A7',\n uml: '\\u00A8',\n copy: '\\u00A9',\n ordf: '\\u00AA',\n laquo: '\\u00AB',\n not: '\\u00AC',\n shy: '\\u00AD',\n reg: '\\u00AE',\n macr: '\\u00AF',\n deg: '\\u00B0',\n plusmn: '\\u00B1',\n sup2: '\\u00B2',\n sup3: '\\u00B3',\n acute: '\\u00B4',\n micro: '\\u00B5',\n para: '\\u00B6',\n middot: '\\u00B7',\n cedil: '\\u00B8',\n sup1: '\\u00B9',\n ordm: '\\u00BA',\n raquo: '\\u00BB',\n frac14: '\\u00BC',\n frac12: '\\u00BD',\n frac34: '\\u00BE',\n iquest: '\\u00BF',\n Agrave: '\\u00C0',\n Aacute: '\\u00C1',\n Acirc: '\\u00C2',\n Atilde: '\\u00C3',\n Auml: '\\u00C4',\n Aring: '\\u00C5',\n AElig: '\\u00C6',\n Ccedil: '\\u00C7',\n Egrave: '\\u00C8',\n Eacute: '\\u00C9',\n Ecirc: '\\u00CA',\n Euml: '\\u00CB',\n Igrave: '\\u00CC',\n Iacute: '\\u00CD',\n Icirc: '\\u00CE',\n Iuml: '\\u00CF',\n ETH: '\\u00D0',\n Ntilde: '\\u00D1',\n Ograve: '\\u00D2',\n Oacute: '\\u00D3',\n Ocirc: '\\u00D4',\n Otilde: '\\u00D5',\n Ouml: '\\u00D6',\n times: '\\u00D7',\n Oslash: '\\u00D8',\n Ugrave: '\\u00D9',\n Uacute: '\\u00DA',\n Ucirc: '\\u00DB',\n Uuml: '\\u00DC',\n Yacute: '\\u00DD',\n THORN: '\\u00DE',\n szlig: '\\u00DF',\n agrave: '\\u00E0',\n aacute: '\\u00E1',\n acirc: '\\u00E2',\n atilde: '\\u00E3',\n auml: '\\u00E4',\n aring: '\\u00E5',\n aelig: '\\u00E6',\n ccedil: '\\u00E7',\n egrave: '\\u00E8',\n eacute: '\\u00E9',\n ecirc: '\\u00EA',\n euml: '\\u00EB',\n igrave: '\\u00EC',\n iacute: '\\u00ED',\n icirc: '\\u00EE',\n iuml: '\\u00EF',\n eth: '\\u00F0',\n ntilde: '\\u00F1',\n ograve: '\\u00F2',\n oacute: '\\u00F3',\n ocirc: '\\u00F4',\n otilde: '\\u00F5',\n ouml: '\\u00F6',\n divide: '\\u00F7',\n oslash: '\\u00F8',\n ugrave: '\\u00F9',\n uacute: '\\u00FA',\n ucirc: '\\u00FB',\n uuml: '\\u00FC',\n yacute: '\\u00FD',\n thorn: '\\u00FE',\n yuml: '\\u00FF',\n OElig: '\\u0152',\n oelig: '\\u0153',\n Scaron: '\\u0160',\n scaron: '\\u0161',\n Yuml: '\\u0178',\n fnof: '\\u0192',\n circ: '\\u02C6',\n tilde: '\\u02DC',\n Alpha: '\\u0391',\n Beta: '\\u0392',\n Gamma: '\\u0393',\n Delta: '\\u0394',\n Epsilon: '\\u0395',\n Zeta: '\\u0396',\n Eta: '\\u0397',\n Theta: '\\u0398',\n Iota: '\\u0399',\n Kappa: '\\u03A0',\n Lambda: '\\u039B',\n Mu: '\\u039C',\n Nu: '\\u039D',\n Xi: '\\u039E',\n Omicron: '\\u039F',\n Pi: '\\u03A0',\n Rho: '\\u03A1',\n Sigma: '\\u03A3',\n Tau: '\\u03A4',\n Upsilon: '\\u03A5',\n Phi: '\\u03A6',\n Chi: '\\u03A7',\n Psi: '\\u03A8',\n Omega: '\\u03A9',\n alpha: '\\u03B1',\n beta: '\\u03B2',\n gamma: '\\u03B3',\n delta: '\\u03B4',\n epsilon: '\\u03B5',\n zeta: '\\u03B6',\n eta: '\\u03B7',\n theta: '\\u03B8',\n iota: '\\u03B9',\n kappa: '\\u03BA',\n lambda: '\\u03BB',\n mu: '\\u03BC',\n nu: '\\u03BD',\n xi: '\\u03BE',\n omicron: '\\u03BF',\n pi: '\\u03C0',\n rho: '\\u03C1',\n sigmaf: '\\u03C2',\n sigma: '\\u03C3',\n tau: '\\u03C4',\n upsilon: '\\u03C5',\n phi: '\\u03C6',\n chi: '\\u03C7',\n psi: '\\u03C8',\n omega: '\\u03C9',\n thetasym: '\\u03D1',\n upsih: '\\u03D2',\n piv: '\\u03D6',\n ensp: '\\u2002',\n emsp: '\\u2003',\n thinsp: '\\u2009',\n zwnj: '\\u200C',\n zwj: '\\u200D',\n lrm: '\\u200E',\n rlm: '\\u200F',\n ndash: '\\u2013',\n mdash: '\\u2014',\n lsquo: '\\u2018',\n rsquo: '\\u2019',\n sbquo: '\\u201A',\n ldquo: '\\u201C',\n rdquo: '\\u201D',\n bdquo: '\\u201E',\n dagger: '\\u2020',\n Dagger: '\\u2021',\n bull: '\\u2022',\n hellip: '\\u2026',\n permil: '\\u2030',\n prime: '\\u2032',\n Prime: '\\u2033',\n lsaquo: '\\u2039',\n rsaquo: '\\u203A',\n oline: '\\u203E',\n frasl: '\\u2044',\n euro: '\\u20AC',\n image: '\\u2111',\n weierp: '\\u2118',\n real: '\\u211C',\n trade: '\\u2122',\n alefsym: '\\u2135',\n larr: '\\u2190',\n uarr: '\\u2191',\n rarr: '\\u2192',\n darr: '\\u2193',\n harr: '\\u2194',\n crarr: '\\u21B5',\n lArr: '\\u21D0',\n uArr: '\\u21D1',\n rArr: '\\u21D2',\n dArr: '\\u21D3',\n hArr: '\\u21D4',\n forall: '\\u2200',\n part: '\\u2202',\n exist: '\\u2203',\n empty: '\\u2205',\n nabla: '\\u2207',\n isin: '\\u2208',\n notin: '\\u2209',\n ni: '\\u220B',\n prod: '\\u220F',\n sum: '\\u2211',\n minus: '\\u2212',\n lowast: '\\u2217',\n radic: '\\u221A',\n prop: '\\u221D',\n infin: '\\u221E',\n ang: '\\u2220',\n and: '\\u2227',\n or: '\\u2228',\n cap: '\\u2229',\n cup: '\\u222A',\n int: '\\u222B',\n there4: '\\u2234',\n sim: '\\u223C',\n cong: '\\u2245',\n asymp: '\\u2248',\n ne: '\\u2260',\n equiv: '\\u2261',\n le: '\\u2264',\n ge: '\\u2265',\n sub: '\\u2282',\n sup: '\\u2283',\n nsub: '\\u2284',\n sube: '\\u2286',\n supe: '\\u2287',\n oplus: '\\u2295',\n otimes: '\\u2297',\n perp: '\\u22A5',\n sdot: '\\u22C5',\n lceil: '\\u2308',\n rceil: '\\u2309',\n lfloor: '\\u230A',\n rfloor: '\\u230B',\n lang: '\\u2329',\n rang: '\\u232A',\n loz: '\\u25CA',\n spades: '\\u2660',\n clubs: '\\u2663',\n hearts: '\\u2665',\n diams: '\\u2666'\n}\n\n// oxlint-disable-next-line regexp-js/no-dupe-disjunctions, regexp-js/prefer-character-class, security-js/detect-non-literal-regexp\nexport const htmlEntities = new RegExp(`^(${Object.values(entities).join('|')})+$`, 'u')\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nimport { htmlEntities } from './html-entities'\n\nexport const defaults = {\n framework: 'react' as const,\n mode: 'jsx-text-only' as const,\n 'jsx-components': {\n include: [] as readonly string[],\n exclude: [ 'Trans' ] as readonly string[]\n },\n 'jsx-attributes': {\n include: [] as readonly string[],\n exclude: [\n 'className',\n 'styleName',\n 'style',\n 'type',\n 'key',\n 'id',\n 'width',\n 'height'\n ] as readonly string[]\n },\n words: {\n exclude: [\n '[0-9!-/:-@[-`{-~]+',\n '[A-Z_-]+',\n htmlEntities,\n /^\\p{Emoji}+$/u\n ] as readonly (string | RegExp)[]\n },\n callees: {\n exclude: [\n 'i18n(ext)?',\n 't',\n 'require',\n 'addEventListener',\n 'removeEventListener',\n 'postMessage',\n 'getElementById',\n 'dispatch',\n 'commit',\n 'includes',\n 'indexOf',\n 'endsWith',\n 'startsWith'\n ] as readonly string[]\n },\n 'object-properties': {\n include: [] as readonly string[],\n exclude: [ '[A-Z_-]+' ] as readonly string[]\n },\n 'class-properties': {\n include: [] as readonly string[],\n exclude: [ 'displayName' ] as readonly string[]\n },\n message: 'disallow literal string',\n 'should-validate-template': false\n}\n\nexport type RuleOptions = typeof defaults\n\nexport const schema = {\n $schema: 'http://json-schema.org/draft-07/schema#',\n type: 'object',\n properties: {\n framework: {\n type: 'string',\n enum: [ 'react', 'vue' ]\n },\n mode: {\n type: 'string',\n enum: [ 'jsx-text-only', 'jsx-only', 'all', 'vue-template-only' ]\n },\n 'jsx-components': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'jsx-attributes': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n words: {\n type: 'object',\n properties: {\n exclude: { type: 'array' }\n }\n },\n callees: {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'object-properties': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n 'class-properties': {\n type: 'object',\n properties: {\n include: { type: 'array' },\n exclude: { type: 'array' }\n }\n },\n message: { type: 'string' },\n 'should-validate-template': { type: 'boolean' }\n }\n}\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n// oxlint-disable typescript/no-unsafe-type-assertion\n// oxlint-disable typescript/no-unnecessary-type-assertion\n\nimport type { Rule, SourceCode } from 'eslint'\nimport { getNearestAncestor, isAllowedDOMAttr, isUpperCase, shouldSkip, type SkipPatterns } from './helpers'\nimport { defaults, schema } from './options'\n\n\ntype Context = Rule.RuleContext\n\ntype Node = Rule.Node\n\ntype Options = Record<string, unknown>\n\ntype LooseNode = {\n type: string\n parent?: LooseNode | null\n [key: string]: unknown\n}\n\ntype JSXMemberExpressionNode = LooseNode & {\n type: 'JSXMemberExpression'\n object: JSXMemberExpressionNode | JSXIdentifierNode\n property: JSXIdentifierNode\n}\n\ntype JSXIdentifierNode = LooseNode & {\n type: 'JSXIdentifier'\n name: string\n}\n\ntype JSXOpeningElementNode = LooseNode & {\n type: 'JSXOpeningElement'\n name: JSXIdentifierNode | JSXMemberExpressionNode\n}\n\ntype JSXElementNode = LooseNode & {\n type: 'JSXElement'\n openingElement: JSXOpeningElementNode\n}\n\ntype JSXAttributeNode = LooseNode & {\n type: 'JSXAttribute'\n name: JSXIdentifierNode\n value: Node | null\n}\n\ntype VIdentifierNode = LooseNode & {\n type: 'VIdentifier'\n name: string\n rawName: string\n}\n\ntype VDirectiveKeyNode = LooseNode & {\n type: 'VDirectiveKey'\n name: VIdentifierNode\n argument: VIdentifierNode | null\n}\n\ntype VAttributeNode = LooseNode & {\n type: 'VAttribute'\n key: VDirectiveKeyNode | VIdentifierNode\n directive: boolean\n}\n\ntype VElementNode = LooseNode & {\n type: 'VElement'\n rawName: string\n}\n\nfunction getSourceCode(context: Context): SourceCode {\n // oxlint-disable-next-line typescript/no-unnecessary-condition\n return context.sourceCode\n // ESLint 8 exposed getSourceCode() on context; ESLint 9 moved it to sourceCode.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n ?? (context as unknown as { getSourceCode(): SourceCode }).getSourceCode()\n}\n\nfunction getText(context: Context, node: Node): string {\n return getSourceCode(context).getText(node as Parameters<SourceCode['getText']>[0])\n}\n\nfunction getAncestors(context: Context, node: Node): Node[] {\n return getSourceCode(context).getAncestors(node as Parameters<SourceCode['getAncestors']>[0]) as Node[]\n}\n\nfunction withDottedPrefix(patterns: readonly unknown[] = []): readonly unknown[] {\n return patterns.map(item => typeof item === 'string' ? `(?:.*\\\\.)?${item}` : item)\n}\n\nfunction isValidFunctionCall(context: Context, options: Options, { callee }: { callee: Node }): boolean {\n if ((callee as { type: string }).type === 'Import') {\n return true\n }\n\n const sourceText = getText(context, callee)\n const callees = (options.callees as SkipPatterns | undefined) ?? {}\n\n return shouldSkip(\n {\n include: withDottedPrefix(callees.include),\n exclude: withDottedPrefix(callees.exclude)\n },\n sourceText\n )\n}\n\nfunction isValidLiteral(options: Options, { value }: { value: unknown }): boolean {\n if (typeof value !== 'string') {\n return true\n }\n\n const trimmed = value.trim()\n if (!trimmed) {\n return true\n }\n\n const words = (options.words as SkipPatterns | undefined) ?? {}\n\n return shouldSkip(words, trimmed)\n}\n\nfunction getAttributeName(node: VAttributeNode): string | null {\n if (!node.directive) {\n return (node.key as VIdentifierNode).rawName\n }\n\n const directiveKey = node.key as VDirectiveKeyNode\n if (\n (directiveKey.name.name === 'bind' || directiveKey.name.name === 'model')\n && directiveKey.argument\n ) {\n return directiveKey.argument.rawName\n }\n\n return null\n}\n\nfunction resolveCallee(node: Node): Node {\n if (node.type === 'CallExpression' || node.type === 'NewExpression') {\n return node.callee as Node\n }\n\n if (node.type === 'TaggedTemplateExpression') {\n return node.tag as Node\n }\n\n return node\n}\n\nexport const noLiteralString: Rule.RuleModule = {\n meta: {\n type: 'suggestion',\n docs: {\n description: 'disallow literal string',\n recommended: true\n },\n schema: [ schema ],\n messages: {\n literal: '{{message}}: {{parent}}'\n }\n },\n\n create(context) {\n // Parser services are supplied by parser integrations, outside ESLint's Context type.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const parserServices = (context as unknown as { parserServices?: unknown }).parserServices\n // ESLint 9 exposes parser services on sourceCode instead of context.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n ?? (context as unknown as { sourceCode?: { parserServices?: unknown } }).sourceCode?.parserServices\n const userOptions = (context.options[0] as Options | undefined) ?? {}\n const options = { ...defaults, ...userOptions }\n\n const {\n mode: rawMode,\n 'should-validate-template': validateTemplate,\n message,\n framework: rawFramework\n } = options as typeof defaults\n\n const mode = rawMode as string\n const framework = rawFramework as string\n\n const onlyValidateJSX = [ 'jsx-only', 'jsx-text-only' ].includes(mode)\n const onlyValidateVueTemplate = framework === 'vue' && mode === 'vue-template-only'\n\n const indicatorStack: boolean[] = []\n\n function endIndicator(): void {\n indicatorStack.pop()\n }\n\n function isValidScope(): boolean {\n return indicatorStack.some(Boolean)\n }\n\n function report(node: Node): void {\n context.report({\n node,\n messageId: 'literal',\n data: {\n message,\n parent: getText(context, node.parent ?? node)\n }\n })\n }\n\n const { esTreeNodeToTSNodeMap, program } = (parserServices as {\n esTreeNodeToTSNodeMap?: Map<Node, unknown>\n program?: { getTypeChecker(): { getContextualType(node: unknown): ContextualType | null } }\n } | undefined) ?? {}\n\n interface ContextualType {\n isStringLiteral(): boolean\n isUnion(): boolean\n types: Array<{ isStringLiteral(): boolean; value: unknown }>\n }\n\n let typeChecker: ReturnType<NonNullable<typeof program>['getTypeChecker']> | undefined\n if (program && esTreeNodeToTSNodeMap) {\n typeChecker = program.getTypeChecker()\n }\n\n function validateBeforeReport(node: Node & { value: unknown }): void {\n if (isValidScope()) {\n return\n }\n\n if (isValidLiteral(options, node)) {\n return\n }\n\n if (typeChecker) {\n const tsNode = esTreeNodeToTSNodeMap?.get(node)\n if (tsNode !== undefined) {\n const typeObj = typeChecker.getContextualType(tsNode)\n if (typeObj) {\n if (typeObj.isStringLiteral()) {\n return\n }\n\n if (typeObj.isUnion()) {\n const found = typeObj.types.some(item => item.isStringLiteral() && item.value === node.value)\n if (found) {\n return\n }\n }\n }\n }\n }\n\n report(node)\n }\n\n function filterOutJSX(node: Node): boolean {\n if (!onlyValidateJSX) {\n return false\n }\n\n const isInsideJSX = getAncestors(context, node).some(item => [ 'JSXElement', 'JSXFragment' ].includes(item.type))\n\n if (!isInsideJSX) {\n return true\n }\n\n if (\n mode === 'jsx-text-only'\n && ![ 'JSXElement', 'JSXFragment' ].includes(node.parent?.type ?? '')\n ) {\n return true\n }\n\n return false\n }\n\n const scriptVisitor: Rule.RuleListener = {\n ImportExpression() {\n indicatorStack.push(true)\n },\n 'ImportExpression:exit': endIndicator,\n\n ImportDeclaration() {\n indicatorStack.push(true)\n },\n 'ImportDeclaration:exit': endIndicator,\n\n ExportAllDeclaration() {\n indicatorStack.push(true)\n },\n 'ExportAllDeclaration:exit': endIndicator,\n\n 'ExportNamedDeclaration[source]'() {\n indicatorStack.push(true)\n },\n 'ExportNamedDeclaration[source]:exit': endIndicator,\n\n JSXElement(node: Node) {\n // JSX nodes are added by the parser and are not represented in Rule.Node.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const element = node as unknown as JSXElementNode\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const fullComponentName = getText(context, element.openingElement.name as unknown as Node)\n const componentOptions = (options['jsx-components'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(\n {\n include: withDottedPrefix(componentOptions.include),\n exclude: withDottedPrefix(componentOptions.exclude)\n },\n fullComponentName\n )\n )\n },\n 'JSXElement:exit': endIndicator,\n\n JSXAttribute(node: Node) {\n // JSX nodes are added by the parser and are not represented in Rule.Node.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const attribute = node as unknown as JSXAttributeNode\n const attrName = attribute.name.name\n\n const jsxAttributes = (options['jsx-attributes'] as SkipPatterns | undefined) ?? {}\n if (shouldSkip(jsxAttributes, attrName)) {\n indicatorStack.push(true)\n\n return\n }\n\n // The ancestor helper returns generic ESLint nodes; this visitor requires JSX parser nodes.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const jsxElement = getNearestAncestor(node, 'JSXOpeningElement') as unknown as JSXOpeningElementNode\n const tagName = (jsxElement.name as JSXIdentifierNode).name\n if (isAllowedDOMAttr(tagName, attrName)) {\n indicatorStack.push(true)\n\n return\n }\n\n indicatorStack.push(false)\n },\n 'JSXAttribute:exit': endIndicator,\n\n JSXText(node: Node) {\n validateBeforeReport(node as Node & { value: unknown })\n },\n\n VElement(node: Node) {\n // Vue template nodes are parser extensions to the ESLint node model.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const element = node as unknown as VElementNode\n const componentOptions = (options['jsx-components'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(\n {\n include: withDottedPrefix(componentOptions.include),\n exclude: withDottedPrefix(componentOptions.exclude)\n },\n element.rawName\n )\n )\n },\n 'VElement:exit': endIndicator,\n\n VAttribute(node: Node) {\n // Vue template nodes are parser extensions to the ESLint node model.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const attribute = node as unknown as VAttributeNode\n const attrName = getAttributeName(attribute)\n const jsxAttributes = (options['jsx-attributes'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(shouldSkip(jsxAttributes, attrName ?? ''))\n },\n 'VAttribute:exit': endIndicator,\n\n TSModuleDeclaration() {\n indicatorStack.push(true)\n },\n 'TSModuleDeclaration:exit': endIndicator,\n\n TSLiteralType() {\n indicatorStack.push(true)\n },\n 'TSLiteralType:exit': endIndicator,\n\n TSEnumMember() {\n indicatorStack.push(true)\n },\n 'TSEnumMember:exit': endIndicator,\n\n PropertyDefinition(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to this event's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const property = node as unknown as { key: { name?: string } }\n const classProperties = (options['class-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(property.key.name !== undefined && shouldSkip(classProperties, property.key.name))\n },\n 'PropertyDefinition:exit': endIndicator,\n\n ClassProperty(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to this event's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const property = node as unknown as { key: { name?: string } }\n const classProperties = (options['class-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(property.key.name !== undefined && shouldSkip(classProperties, property.key.name))\n },\n 'ClassProperty:exit': endIndicator,\n\n VariableDeclarator(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to this event's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const declarator = node as unknown as { id: { name?: string; type: string } }\n indicatorStack.push(declarator.id.type === 'Identifier' && isUpperCase(declarator.id.name ?? ''))\n },\n 'VariableDeclarator:exit': endIndicator,\n\n Property(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to this event's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const property = node as unknown as { key: { name?: string; value?: unknown } }\n const objectProperties = (options['object-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(\n shouldSkip(objectProperties, property.key.name ?? (property.key.value as string | undefined) ?? '')\n )\n },\n 'Property:exit': endIndicator,\n\n BinaryExpression(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to this event's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const expression = node as unknown as { operator: string }\n indicatorStack.push(expression.operator !== '+')\n },\n 'BinaryExpression:exit': endIndicator,\n\n AssignmentPattern() {\n indicatorStack.push(true)\n },\n 'AssignmentPattern:exit': endIndicator,\n\n NewExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options, { callee: resolveCallee(node) }))\n },\n 'NewExpression:exit': endIndicator,\n\n CallExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options, { callee: resolveCallee(node) }))\n },\n 'CallExpression:exit': endIndicator,\n\n TaggedTemplateExpression(node: Node) {\n indicatorStack.push(isValidFunctionCall(context, options, { callee: resolveCallee(node) }))\n },\n 'TaggedTemplateExpression:exit': endIndicator,\n\n 'AssignmentExpression[left.type=\"MemberExpression\"]'(node: Node) {\n // The selector guarantees MemberExpression on the left, but Rule.Node omits that selector refinement.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const expression = node as unknown as { left: { property: { name?: string } } }\n const objectProperties = (options['object-properties'] as SkipPatterns | undefined) ?? {}\n indicatorStack.push(shouldSkip(objectProperties, expression.left.property.name ?? ''))\n },\n 'AssignmentExpression[left.type=\"MemberExpression\"]:exit': endIndicator,\n\n TemplateLiteral(node: Node) {\n if (!validateTemplate) {\n return\n }\n\n if (framework === 'react' && filterOutJSX(node)) {\n return\n }\n\n if (isValidScope()) {\n return\n }\n\n // Listener nodes are typed as the broad Rule.Node union; narrow to TemplateLiteral's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const literal = node as unknown as { quasis: Array<{ value: { raw: string } }> }\n literal.quasis.some(({ value: { raw } }) => {\n if (isValidLiteral(options, { value: raw })) {\n return false\n }\n\n report(node)\n\n return true\n })\n },\n\n Literal(node: Node) {\n // Listener nodes are typed as the broad Rule.Node union; narrow to Literal's shape.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const literal = node as unknown as { value: unknown; parent: { type: string; key?: Node } }\n\n if ([ 'MemberExpression', 'SwitchCase' ].includes(literal.parent.type)) {\n return\n }\n\n if (framework === 'react' && filterOutJSX(node)) {\n return\n }\n\n if (onlyValidateVueTemplate) {\n const parents = getAncestors(context, node)\n if (\n parents.length > 0\n && parents.every(\n item => ![ 'VElement', 'VAttribute', 'VText', 'VExpressionContainer' ].includes(item.type)\n )\n ) {\n return\n }\n }\n\n if (literal.parent.key === node) {\n return\n }\n\n // Literal's value field is not present on the base Rule.Node type.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n validateBeforeReport(node as unknown as Node & { value: unknown })\n }\n }\n\n // Parser-specific API is not declared by ESLint's parserServices type.\n const defineTemplateBodyVisitor = (parserServices as ParserServices | undefined)?.defineTemplateBodyVisitor\n\n if (defineTemplateBodyVisitor) {\n const invoke = (name: TemplateVisitorName) => (node: Node) => {\n // Listener entries have event-specific parameter types; the template API supplies the matching node.\n // oxlint-disable-next-line anti-slop/no-chained-type-assertions\n const handler = scriptVisitor[name] as unknown as (node: Node) => void\n handler(node)\n }\n\n return defineTemplateBodyVisitor(\n {\n VText: invoke('JSXText'),\n VLiteral: invoke('JSXText'),\n VElement: invoke('VElement'),\n 'VElement:exit': invoke('VElement:exit'),\n VAttribute: invoke('VAttribute'),\n 'VAttribute:exit': invoke('VAttribute:exit'),\n 'VExpressionContainer CallExpression': invoke('CallExpression'),\n 'VExpressionContainer CallExpression:exit': invoke('CallExpression:exit'),\n 'VExpressionContainer Literal': invoke('Literal')\n },\n scriptVisitor\n )\n }\n\n return scriptVisitor\n }\n}\n\ntype DefineTemplateBodyVisitor = (\n templateBodyVisitor: Record<string, (node: Node) => void>,\n scriptVisitor: Rule.RuleListener\n) => Rule.RuleListener\n\ntype ParserServices = {\n defineTemplateBodyVisitor?: DefineTemplateBodyVisitor\n}\n\ntype TemplateVisitorName =\n | 'JSXText'\n | 'VElement'\n | 'VElement:exit'\n | 'VAttribute'\n | 'VAttribute:exit'\n | 'CallExpression'\n | 'CallExpression:exit'\n | 'Literal'\n","/*\n * Derived from eslint-plugin-i18next\n * https://github.com/edvardchen/eslint-plugin-i18next\n *\n * Copyright (c) 2019 edvardchen\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\nimport { noLiteralString } from './no-literal-string'\n\n\nexport const i18next = {\n meta: {\n name: 'i18next',\n version: '1.0.0'\n },\n rules: {\n 'no-literal-string': noLiteralString\n }\n}\n"],"mappings":";AAmBA,MAAa,WAAW;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,WAAW;CAC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AAC,SAAS,KAAK,IAAI,CAC3F,GAEA;KAEJ;KAEA,IAAI,QAAQ,OAAO,QAAQ,MACzB;KAKF,qBAAqB,IAA4C;IACnE;GACF;GAGA,MAAM,4BAA6B,gBAA+C;GAElF,IAAI,2BAA2B;IAC7B,MAAM,UAAU,UAA+B,SAAe;KAG5D,MAAM,UAAU,cAAc;KAC9B,QAAQ,IAAI;IACd;IAEA,OAAO,0BACL;KACE,OAAO,OAAO,SAAS;KACvB,UAAU,OAAO,SAAS;KAC1B,UAAU,OAAO,UAAU;KAC3B,iBAAiB,OAAO,eAAe;KACvC,YAAY,OAAO,YAAY;KAC/B,mBAAmB,OAAO,iBAAiB;KAC3C,uCAAuC,OAAO,gBAAgB;KAC9D,4CAA4C,OAAO,qBAAqB;KACxE,gCAAgC,OAAO,SAAS;IAClD,GACA,aACF;GACF;GAEA,OAAO;EACT;CC/hBuB,EACvB;AACF"}
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/jsdoc.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=jsdoc.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import jsdocPlugin from "eslint-plugin-jsdoc";
3
- //#region src/plugins/jsdoc.ts
3
+ // src/plugins/jsdoc.ts
4
4
  var jsdoc_default = sanitizePlugin(jsdocPlugin);
5
- //#endregion
6
5
  export { jsdoc_default as default };
7
6
 
8
7
  //# sourceMappingURL=jsdoc.mjs.map
@@ -1,4 +1,3 @@
1
- //#region src/plugin/index.d.ts
2
1
  declare const commentLabsJs: {
3
2
  meta: {
4
3
  name: string;
@@ -8,6 +7,5 @@ declare const commentLabsJs: {
8
7
  'no-self-assign': import("eslint").Rule.RuleModule;
9
8
  };
10
9
  };
11
- //#endregion
12
10
  export { commentLabsJs as default };
13
11
  //# sourceMappingURL=labs.d.mts.map
@@ -1,4 +1,4 @@
1
- //#region src/plugin/no-self-assign.ts
1
+ // src/plugin/no-self-assign.ts
2
2
  function isIdentifier(node) {
3
3
  return node.type === "Identifier";
4
4
  }
@@ -111,8 +111,7 @@ function reportDefaultParameterSelfReferences(context, sourceCode, node) {
111
111
  reportSelfReferences(context, sourceCode, param.right, variable);
112
112
  }
113
113
  }
114
- //#endregion
115
- //#region src/plugin/index.ts
114
+ // src/plugin/index.ts
116
115
  const commentLabsJs = {
117
116
  meta: {
118
117
  name: "comment-labs-js",
@@ -151,7 +150,6 @@ const commentLabsJs = {
151
150
  }
152
151
  } }
153
152
  };
154
- //#endregion
155
153
  export { commentLabsJs as default };
156
154
 
157
155
  //# sourceMappingURL=labs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"labs.mjs","names":[],"sources":["../../src/plugin/no-self-assign.ts","../../src/plugin/index.ts"],"sourcesContent":["import type { Rule, Scope, SourceCode } from 'eslint'\n\n\n/*\n * Ported from:\n * https://github.com/DaniFoldi/bundled-lint-config/blob/main/packages/bundled-eslint-config/src/rules/no-self-assign.ts\n *\n * Includes code derived from MIT-licensed source.\n * Copyright (c) 2026 Dániel Földi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n */\n\ntype ScopeNode = Parameters<SourceCode['getScope']>[0]\ntype IdentifierNode = ScopeNode & { type: 'Identifier'; name: string }\ntype AssignmentPatternNode = ScopeNode & {\n type: 'AssignmentPattern'\n left: ScopeNode\n right: ScopeNode\n}\ntype FunctionLikeNode = ScopeNode & {\n type: 'ArrowFunctionExpression' | 'FunctionDeclaration' | 'FunctionExpression'\n params: readonly ScopeNode[]\n}\n\nfunction isIdentifier(node: ScopeNode | { type: string }): node is IdentifierNode {\n return node.type === 'Identifier'\n}\n\nfunction isAssignmentPattern(node: ScopeNode): node is AssignmentPatternNode {\n return node.type === 'AssignmentPattern'\n}\n\nfunction isFunctionLike(node: ScopeNode): node is FunctionLikeNode {\n return [ 'FunctionExpression', 'FunctionDeclaration', 'ArrowFunctionExpression' ].includes(node.type)\n}\n\nfunction isNode(value: unknown): value is ScopeNode {\n return typeof value === 'object'\n && value !== null\n && typeof Reflect.get(value, 'type') === 'string'\n}\n\nfunction getProperty(value: object, key: PropertyKey): unknown {\n return Reflect.get(value, key)\n}\n\nfunction getParent(node: ScopeNode, sourceCode: SourceCode) {\n return sourceCode.getAncestors(node).at(-1)\n}\n\nfunction traverseNodes(\n node: ScopeNode,\n sourceCode: SourceCode,\n visitor: (child: ScopeNode) => void,\n shouldSkipChildren?: (child: ScopeNode) => boolean\n): void {\n visitor(node)\n\n if (shouldSkipChildren?.(node) === true) {\n return\n }\n\n const keys = sourceCode.visitorKeys[node.type] ?? []\n\n for (const key of keys) {\n const value = getProperty(node, key)\n\n if (Array.isArray(value)) {\n for (const child of value) {\n if (isNode(child)) {\n traverseNodes(child, sourceCode, visitor, shouldSkipChildren)\n }\n }\n } else if (isNode(value)) {\n traverseNodes(value, sourceCode, visitor, shouldSkipChildren)\n }\n }\n}\n\nfunction isReferenceIdentifier(identifier: IdentifierNode, sourceCode: SourceCode): boolean {\n const parent = getParent(identifier, sourceCode)\n if (!parent) {\n return true\n }\n\n if (parent.type.startsWith('TS')) {\n return false\n }\n\n if (parent.type === 'Property' && parent.key === identifier) {\n return parent.computed || parent.shorthand\n }\n\n if (parent.type === 'MemberExpression' && parent.property === identifier) {\n return parent.computed\n }\n\n if (\n (parent.type === 'MethodDefinition' || parent.type === 'PropertyDefinition')\n && parent.key === identifier\n && !parent.computed\n ) {\n return false\n }\n\n if ([ 'ImportSpecifier', 'ImportDefaultSpecifier', 'ImportNamespaceSpecifier' ].includes(parent.type)) {\n return false\n }\n\n if (parent.type === 'ExportSpecifier' && parent.exported === identifier) {\n return false\n }\n\n if (parent.type === 'LabeledStatement' && parent.label === identifier) {\n return false\n }\n\n return true\n}\n\nfunction findVariable(node: ScopeNode, name: string, sourceCode: SourceCode): Scope.Variable | null {\n let scope: Scope.Scope | null = sourceCode.getScope(node)\n\n while (scope) {\n const variable = scope.set.get(name)\n if (variable) {\n return variable\n }\n\n scope = scope.upper\n }\n\n return null\n}\n\nfunction isSelfReference(identifier: IdentifierNode, variable: Scope.Variable, sourceCode: SourceCode): boolean {\n if (variable.references.some(reference => reference.identifier === identifier)) {\n return true\n }\n\n let scope: Scope.Scope | null = sourceCode.getScope(identifier)\n\n while (scope) {\n const reference = scope.references.find(candidate => candidate.identifier === identifier)\n if (reference) {\n return reference.resolved === variable\n }\n\n scope = scope.upper\n }\n\n scope = sourceCode.getScope(identifier)\n\n while (scope) {\n const candidate = scope.set.get(identifier.name)\n if (candidate) {\n return candidate === variable\n }\n\n scope = scope.upper\n }\n\n for (const ancestor of sourceCode.getAncestors(identifier).toReversed()) {\n if (!isAssignmentPattern(ancestor)) {\n continue\n }\n\n if (\n isIdentifier(ancestor.left)\n && ancestor.left.name === variable.name\n && variable.defs.some(definition => definition.name === ancestor.left)\n ) {\n return true\n }\n }\n\n return false\n}\n\nfunction isUnresolvedSelfReference(identifier: IdentifierNode, name: string, sourceCode: SourceCode): boolean {\n if (identifier.name !== name) {\n return false\n }\n\n return findVariable(identifier, name, sourceCode) === null\n}\n\nfunction reportSelfReferences(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: ScopeNode,\n variable: Scope.Variable\n): void {\n traverseNodes(node, sourceCode, child => {\n if (!isIdentifier(child)) {\n return\n }\n\n if (!isReferenceIdentifier(child, sourceCode)) {\n return\n }\n\n if (isSelfReference(child, variable, sourceCode)) {\n context.report({\n node: child,\n messageId: 'selfRef',\n data: { name: variable.name }\n })\n }\n }, isFunctionLike)\n}\n\nfunction reportSelfReferencesByName(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: ScopeNode,\n name: string\n): void {\n traverseNodes(node, sourceCode, child => {\n if (!isIdentifier(child)) {\n return\n }\n\n if (!isReferenceIdentifier(child, sourceCode)) {\n return\n }\n\n if (isUnresolvedSelfReference(child, name, sourceCode)) {\n context.report({\n node: child,\n messageId: 'selfRef',\n data: { name }\n })\n }\n }, isFunctionLike)\n}\n\nfunction reportDefaultParameterSelfReferences(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: FunctionLikeNode\n): void {\n for (const param of node.params) {\n if (!isAssignmentPattern(param) || !isIdentifier(param.left)) {\n continue\n }\n\n const variable = findVariable(param.left, param.left.name, sourceCode)\n if (!variable) {\n continue\n }\n\n reportSelfReferences(context, sourceCode, param.right, variable)\n }\n}\n\nexport const noSelfAssign: Rule.RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description: 'Disallow self-references inside variable initializers and parameter default values'\n },\n schema: [],\n messages: {\n selfRef: 'Variable {{name}} is referenced within its own initializer.'\n }\n },\n\n create(context) {\n const sourceCode = context.sourceCode\n\n return {\n VariableDeclarator(node) {\n if (!node.init || !isIdentifier(node.id)) {\n return\n }\n\n const variable = findVariable(node, node.id.name, sourceCode)\n if (!variable) {\n return\n }\n\n reportSelfReferences(context, sourceCode, node.init, variable)\n },\n\n FunctionDeclaration(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n FunctionExpression(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n ArrowFunctionExpression(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n PropertyDefinition(node) {\n if (!node.value || !isIdentifier(node.key)) {\n return\n }\n\n reportSelfReferencesByName(context, sourceCode, node.value, node.key.name)\n }\n }\n }\n}\n","import { noSelfAssign } from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,SAAS,8DACX;EACF;EAEA,OAAO,SAAS;GACd,MAAM,aAAa,QAAQ;GAE3B,OAAO;IACL,mBAAmB,MAAM;KACvB,IAAI,CAAC,KAAK,QAAQ,CAAC,aAAa,KAAK,EAAE,GACrC;KAGF,MAAM,WAAW,aAAa,MAAM,KAAK,GAAG,MAAM,UAAU;KAC5D,IAAI,CAAC,UACH;KAGF,qBAAqB,SAAS,YAAY,KAAK,MAAM,QAAQ;IAC/D;IAEA,oBAAoB,MAAM;KACxB,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,mBAAmB,MAAM;KACvB,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,wBAAwB,MAAM;KAC5B,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,mBAAmB,MAAM;KACvB,IAAI,CAAC,KAAK,SAAS,CAAC,aAAa,KAAK,GAAG,GACvC;KAGF,2BAA2B,SAAS,YAAY,KAAK,OAAO,KAAK,IAAI,IAAI;IAC3E;GACF;EACF;CCjToB,EACpB;AACF"}
1
+ {"version":3,"file":"labs.mjs","names":[],"sources":["../../src/plugin/no-self-assign.ts","../../src/plugin/index.ts"],"sourcesContent":["import type { Rule, Scope, SourceCode } from 'eslint'\n\n\n/*\n * Ported from:\n * https://github.com/DaniFoldi/bundled-lint-config/blob/main/packages/bundled-eslint-config/src/rules/no-self-assign.ts\n *\n * Includes code derived from MIT-licensed source.\n * Copyright (c) 2026 Dániel Földi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n */\n\ntype ScopeNode = Parameters<SourceCode['getScope']>[0]\ntype IdentifierNode = ScopeNode & { type: 'Identifier'; name: string }\ntype AssignmentPatternNode = ScopeNode & {\n type: 'AssignmentPattern'\n left: ScopeNode\n right: ScopeNode\n}\ntype FunctionLikeNode = ScopeNode & {\n type: 'ArrowFunctionExpression' | 'FunctionDeclaration' | 'FunctionExpression'\n params: readonly ScopeNode[]\n}\n\nfunction isIdentifier(node: ScopeNode | { type: string }): node is IdentifierNode {\n return node.type === 'Identifier'\n}\n\nfunction isAssignmentPattern(node: ScopeNode): node is AssignmentPatternNode {\n return node.type === 'AssignmentPattern'\n}\n\nfunction isFunctionLike(node: ScopeNode): node is FunctionLikeNode {\n return [ 'FunctionExpression', 'FunctionDeclaration', 'ArrowFunctionExpression' ].includes(node.type)\n}\n\nfunction isNode(value: unknown): value is ScopeNode {\n return typeof value === 'object'\n && value !== null\n && typeof Reflect.get(value, 'type') === 'string'\n}\n\nfunction getProperty(value: ScopeNode, key: PropertyKey): unknown {\n return Reflect.get(value, key)\n}\n\nfunction getParent(node: ScopeNode, sourceCode: SourceCode) {\n return sourceCode.getAncestors(node).at(-1)\n}\n\nfunction traverseNodes(\n node: ScopeNode,\n sourceCode: SourceCode,\n visitor: (child: ScopeNode) => void,\n shouldSkipChildren?: (child: ScopeNode) => boolean\n): void {\n visitor(node)\n\n if (shouldSkipChildren?.(node) === true) {\n return\n }\n\n const keys = sourceCode.visitorKeys[node.type] ?? []\n\n for (const key of keys) {\n const value = getProperty(node, key)\n\n if (Array.isArray(value)) {\n for (const child of value) {\n if (isNode(child)) {\n traverseNodes(child, sourceCode, visitor, shouldSkipChildren)\n }\n }\n } else if (isNode(value)) {\n traverseNodes(value, sourceCode, visitor, shouldSkipChildren)\n }\n }\n}\n\nfunction isReferenceIdentifier(identifier: IdentifierNode, sourceCode: SourceCode): boolean {\n const parent = getParent(identifier, sourceCode)\n if (!parent) {\n return true\n }\n\n if (parent.type.startsWith('TS')) {\n return false\n }\n\n if (parent.type === 'Property' && parent.key === identifier) {\n return parent.computed || parent.shorthand\n }\n\n if (parent.type === 'MemberExpression' && parent.property === identifier) {\n return parent.computed\n }\n\n if (\n (parent.type === 'MethodDefinition' || parent.type === 'PropertyDefinition')\n && parent.key === identifier\n && !parent.computed\n ) {\n return false\n }\n\n if ([ 'ImportSpecifier', 'ImportDefaultSpecifier', 'ImportNamespaceSpecifier' ].includes(parent.type)) {\n return false\n }\n\n if (parent.type === 'ExportSpecifier' && parent.exported === identifier) {\n return false\n }\n\n if (parent.type === 'LabeledStatement' && parent.label === identifier) {\n return false\n }\n\n return true\n}\n\nfunction findVariable(node: ScopeNode, name: string, sourceCode: SourceCode): Scope.Variable | null {\n let scope: Scope.Scope | null = sourceCode.getScope(node)\n\n while (scope) {\n const variable = scope.set.get(name)\n if (variable) {\n return variable\n }\n\n scope = scope.upper\n }\n\n return null\n}\n\nfunction isSelfReference(identifier: IdentifierNode, variable: Scope.Variable, sourceCode: SourceCode): boolean {\n if (variable.references.some(reference => reference.identifier === identifier)) {\n return true\n }\n\n let scope: Scope.Scope | null = sourceCode.getScope(identifier)\n\n while (scope) {\n const reference = scope.references.find(candidate => candidate.identifier === identifier)\n if (reference) {\n return reference.resolved === variable\n }\n\n scope = scope.upper\n }\n\n scope = sourceCode.getScope(identifier)\n\n while (scope) {\n const candidate = scope.set.get(identifier.name)\n if (candidate) {\n return candidate === variable\n }\n\n scope = scope.upper\n }\n\n for (const ancestor of sourceCode.getAncestors(identifier).toReversed()) {\n if (!isAssignmentPattern(ancestor)) {\n continue\n }\n\n if (\n isIdentifier(ancestor.left)\n && ancestor.left.name === variable.name\n && variable.defs.some(definition => definition.name === ancestor.left)\n ) {\n return true\n }\n }\n\n return false\n}\n\nfunction isUnresolvedSelfReference(identifier: IdentifierNode, name: string, sourceCode: SourceCode): boolean {\n if (identifier.name !== name) {\n return false\n }\n\n return findVariable(identifier, name, sourceCode) === null\n}\n\nfunction reportSelfReferences(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: ScopeNode,\n variable: Scope.Variable\n): void {\n traverseNodes(node, sourceCode, child => {\n if (!isIdentifier(child)) {\n return\n }\n\n if (!isReferenceIdentifier(child, sourceCode)) {\n return\n }\n\n if (isSelfReference(child, variable, sourceCode)) {\n context.report({\n node: child,\n messageId: 'selfRef',\n data: { name: variable.name }\n })\n }\n }, isFunctionLike)\n}\n\nfunction reportSelfReferencesByName(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: ScopeNode,\n name: string\n): void {\n traverseNodes(node, sourceCode, child => {\n if (!isIdentifier(child)) {\n return\n }\n\n if (!isReferenceIdentifier(child, sourceCode)) {\n return\n }\n\n if (isUnresolvedSelfReference(child, name, sourceCode)) {\n context.report({\n node: child,\n messageId: 'selfRef',\n data: { name }\n })\n }\n }, isFunctionLike)\n}\n\nfunction reportDefaultParameterSelfReferences(\n context: Rule.RuleContext,\n sourceCode: SourceCode,\n node: FunctionLikeNode\n): void {\n for (const param of node.params) {\n if (!isAssignmentPattern(param) || !isIdentifier(param.left)) {\n continue\n }\n\n const variable = findVariable(param.left, param.left.name, sourceCode)\n if (!variable) {\n continue\n }\n\n reportSelfReferences(context, sourceCode, param.right, variable)\n }\n}\n\nexport const noSelfAssign: Rule.RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description: 'Disallow self-references inside variable initializers and parameter default values'\n },\n schema: [],\n messages: {\n selfRef: 'Variable {{name}} is referenced within its own initializer.'\n }\n },\n\n create(context) {\n const sourceCode = context.sourceCode\n\n return {\n VariableDeclarator(node) {\n if (!node.init || !isIdentifier(node.id)) {\n return\n }\n\n const variable = findVariable(node, node.id.name, sourceCode)\n if (!variable) {\n return\n }\n\n reportSelfReferences(context, sourceCode, node.init, variable)\n },\n\n FunctionDeclaration(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n FunctionExpression(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n ArrowFunctionExpression(node) {\n reportDefaultParameterSelfReferences(context, sourceCode, node)\n },\n\n PropertyDefinition(node) {\n if (!node.value || !isIdentifier(node.key)) {\n return\n }\n\n reportSelfReferencesByName(context, sourceCode, node.value, node.key.name)\n }\n }\n }\n}\n","import { noSelfAssign } from './no-self-assign'\n\n\nexport const commentLabsJs = {\n meta: {\n name: 'comment-labs-js',\n version: '1.0.0'\n },\n rules: {\n 'no-self-assign': noSelfAssign\n }\n}\n"],"mappings":";AAiCA,SAAS,aAAa,MAA4D;CAChF,OAAO,KAAK,SAAS;AACvB;AAEA,SAAS,oBAAoB,MAAgD;CAC3E,OAAO,KAAK,SAAS;AACvB;AAEA,SAAS,eAAe,MAA2C;CACjE,OAAO;EAAE;EAAsB;EAAuB;CAA0B,CAAC,CAAC,SAAS,KAAK,IAAI;AACtG;AAEA,SAAS,OAAO,OAAoC;CAClD,OAAO,OAAO,UAAU,YACnB,UAAU,QACV,OAAO,QAAQ,IAAI,OAAO,MAAM,MAAM;AAC7C;AAEA,SAAS,YAAY,OAAkB,KAA2B;CAChE,OAAO,QAAQ,IAAI,OAAO,GAAG;AAC/B;AAEA,SAAS,UAAU,MAAiB,YAAwB;CAC1D,OAAO,WAAW,aAAa,IAAI,CAAC,CAAC,GAAG,EAAE;AAC5C;AAEA,SAAS,cACP,MACA,YACA,SACA,oBACM;CACN,QAAQ,IAAI;CAEZ,IAAI,qBAAqB,IAAI,MAAM,MACjC;CAGF,MAAM,OAAO,WAAW,YAAY,KAAK,SAAS,CAAC;CAEnD,KAAK,MAAM,OAAO,MAAM;EACtB,MAAM,QAAQ,YAAY,MAAM,GAAG;EAEnC,IAAI,MAAM,QAAQ,KAAK,GAChB;QAAA,MAAM,SAAS,OAClB,IAAI,OAAO,KAAK,GACd,cAAc,OAAO,YAAY,SAAS,kBAAkB;EAAA,OAG3D,IAAI,OAAO,KAAK,GACrB,cAAc,OAAO,YAAY,SAAS,kBAAkB;CAEhE;AACF;AAEA,SAAS,sBAAsB,YAA4B,YAAiC;CAC1F,MAAM,SAAS,UAAU,YAAY,UAAU;CAC/C,IAAI,CAAC,QACH,OAAO;CAGT,IAAI,OAAO,KAAK,WAAW,IAAI,GAC7B,OAAO;CAGT,IAA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qFACf;GACA,QAAQ,CAAC;GACT,UAAU,EACR,SAAS,8DACX;EACF;EAEA,OAAO,SAAS;GACd,MAAM,aAAa,QAAQ;GAE3B,OAAO;IACL,mBAAmB,MAAM;KACvB,IAAI,CAAC,KAAK,QAAQ,CAAC,aAAa,KAAK,EAAE,GACrC;KAGF,MAAM,WAAW,aAAa,MAAM,KAAK,GAAG,MAAM,UAAU;KAC5D,IAAI,CAAC,UACH;KAGF,qBAAqB,SAAS,YAAY,KAAK,MAAM,QAAQ;IAC/D;IAEA,oBAAoB,MAAM;KACxB,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,mBAAmB,MAAM;KACvB,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,wBAAwB,MAAM;KAC5B,qCAAqC,SAAS,YAAY,IAAI;IAChE;IAEA,mBAAmB,MAAM;KACvB,IAAI,CAAC,KAAK,SAAS,CAAC,aAAa,KAAK,GAAG,GACvC;KAGF,2BAA2B,SAAS,YAAY,KAAK,OAAO,KAAK,IAAI,IAAI;IAC3E;GACF;EACF;CCjToB,EACpB;AACF"}
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/playwright.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=playwright.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import playwright from "eslint-plugin-playwright";
3
- //#region src/plugins/playwright.ts
3
+ // src/plugins/playwright.ts
4
4
  var playwright_default = sanitizePlugin(playwright);
5
- //#endregion
6
5
  export { playwright_default as default };
7
6
 
8
7
  //# sourceMappingURL=playwright.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/react-hooks.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=react-hooks.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import reactHooks from "eslint-plugin-react-hooks";
3
- //#region src/plugins/react-hooks.ts
3
+ // src/plugins/react-hooks.ts
4
4
  var react_hooks_default = sanitizePlugin(reactHooks);
5
- //#endregion
6
5
  export { react_hooks_default as default };
7
6
 
8
7
  //# sourceMappingURL=react-hooks.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/react-native.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=react-native.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import reactNative from "eslint-plugin-react-native";
3
- //#region src/plugins/react-native.ts
3
+ // src/plugins/react-native.ts
4
4
  var react_native_default = sanitizePlugin(reactNative);
5
- //#endregion
6
5
  export { react_native_default as default };
7
6
 
8
7
  //# sourceMappingURL=react-native.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/react-refresh.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=react-refresh.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import reactRefreshPlugin from "eslint-plugin-react-refresh";
3
- //#region src/plugins/react-refresh.ts
3
+ // src/plugins/react-refresh.ts
4
4
  var react_refresh_default = sanitizePlugin(reactRefreshPlugin);
5
- //#endregion
6
5
  export { react_refresh_default as default };
7
6
 
8
7
  //# sourceMappingURL=react-refresh.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/regexp.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=regexp.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import regexp from "eslint-plugin-regexp";
3
- //#region src/plugins/regexp.ts
3
+ // src/plugins/regexp.ts
4
4
  var regexp_default = sanitizePlugin(regexp);
5
- //#endregion
6
5
  export { regexp_default as default };
7
6
 
8
7
  //# sourceMappingURL=regexp.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/security.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=security.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import security from "eslint-plugin-security";
3
- //#region src/plugins/security.ts
3
+ // src/plugins/security.ts
4
4
  var security_default = sanitizePlugin(security);
5
- //#endregion
6
5
  export { security_default as default };
7
6
 
8
7
  //# sourceMappingURL=security.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/stylistic.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=stylistic.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import stylistic from "@stylistic/eslint-plugin";
3
- //#region src/plugins/stylistic.ts
3
+ // src/plugins/stylistic.ts
4
4
  var stylistic_default = sanitizePlugin(stylistic);
5
- //#endregion
6
5
  export { stylistic_default as default };
7
6
 
8
7
  //# sourceMappingURL=stylistic.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/unicorn.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=unicorn.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import unicorn from "eslint-plugin-unicorn";
3
- //#region src/plugins/unicorn.ts
3
+ // src/plugins/unicorn.ts
4
4
  var unicorn_default = sanitizePlugin(unicorn);
5
- //#endregion
6
5
  export { unicorn_default as default };
7
6
 
8
7
  //# sourceMappingURL=unicorn.mjs.map