@anolilab/eslint-config 7.0.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/chunk-55ITTPFD.js +7 -0
  3. package/dist/chunk-55ITTPFD.js.map +1 -0
  4. package/dist/{chunk-KNKUBOMM.mjs → chunk-BMAMDZC7.mjs} +2 -2
  5. package/dist/chunk-BMAMDZC7.mjs.map +1 -0
  6. package/dist/{chunk-MLDIWITS.js → chunk-LL423FL5.js} +2 -2
  7. package/dist/chunk-LL423FL5.js.map +1 -0
  8. package/dist/chunk-U52VQNGF.mjs +5 -0
  9. package/dist/chunk-U52VQNGF.mjs.map +1 -0
  10. package/dist/config/es6.js +2 -2
  11. package/dist/config/es6.mjs +1 -1
  12. package/dist/config/plugins/babel.js +2 -2
  13. package/dist/config/plugins/babel.mjs +1 -1
  14. package/dist/config/plugins/etc.d.ts +5 -0
  15. package/dist/config/plugins/etc.js +9 -0
  16. package/dist/config/plugins/etc.js.map +1 -0
  17. package/dist/config/plugins/etc.mjs +7 -0
  18. package/dist/config/plugins/etc.mjs.map +1 -0
  19. package/dist/config/plugins/html.js +2 -2
  20. package/dist/config/plugins/html.mjs +1 -1
  21. package/dist/config/plugins/jsx-a11y.js +4 -2
  22. package/dist/config/plugins/jsx-a11y.js.map +1 -1
  23. package/dist/config/plugins/jsx-a11y.mjs +4 -2
  24. package/dist/config/plugins/jsx-a11y.mjs.map +1 -1
  25. package/dist/config/plugins/playwright.d.ts +5 -0
  26. package/dist/config/plugins/playwright.js +9 -0
  27. package/dist/config/plugins/playwright.js.map +1 -0
  28. package/dist/config/plugins/playwright.mjs +7 -0
  29. package/dist/config/plugins/playwright.mjs.map +1 -0
  30. package/dist/config/plugins/react.js +2 -2
  31. package/dist/config/plugins/react.mjs +1 -1
  32. package/dist/config/plugins/storybook.d.ts +5 -0
  33. package/dist/config/plugins/storybook.js +7 -0
  34. package/dist/config/plugins/storybook.js.map +1 -0
  35. package/dist/config/plugins/storybook.mjs +5 -0
  36. package/dist/config/plugins/storybook.mjs.map +1 -0
  37. package/dist/config/plugins/tanstack-query.d.ts +5 -0
  38. package/dist/config/plugins/tanstack-query.js +9 -0
  39. package/dist/config/plugins/tanstack-query.js.map +1 -0
  40. package/dist/config/plugins/tanstack-query.mjs +7 -0
  41. package/dist/config/plugins/tanstack-query.mjs.map +1 -0
  42. package/dist/config/plugins/typescript.js +3 -3
  43. package/dist/config/plugins/typescript.mjs +2 -2
  44. package/dist/config/plugins/unicorn.js +2 -2
  45. package/dist/config/plugins/unicorn.mjs +1 -1
  46. package/dist/config/style.js +2 -2
  47. package/dist/config/style.mjs +1 -1
  48. package/dist/index.js +4 -4
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +3 -3
  51. package/dist/index.mjs.map +1 -1
  52. package/package.json +59 -2
  53. package/dist/chunk-KNKUBOMM.mjs.map +0 -1
  54. package/dist/chunk-MLDIWITS.js.map +0 -1
  55. package/dist/chunk-PCIKFIV2.js +0 -7
  56. package/dist/chunk-PCIKFIV2.js.map +0 -1
  57. package/dist/chunk-WSETOOIE.mjs +0 -5
  58. package/dist/chunk-WSETOOIE.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsx-a11y.ts"],"names":["config","jsx_a11y_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,WAAY,OAAO,EAE7B,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,8BAA+B,CAAC,QAAS,CAAE,WAAY,CAAC,CAAE,CAAC,EAI3D,qBAAsB,CAAC,QAAS,CAAE,aAAc,EAAM,CAAC,EAIvD,sBAAuB,QAIvB,0BAA2B,QAK3B,qCAAsC,QAItC,oBAAqB,CACjB,QACA,CACI,SAAU,CAAC,MAAO,SAAU,OAAQ,qBAAqB,EACzD,IAAK,CAAC,EACN,OAAQ,CAAC,EACT,KAAM,CAAC,EACP,sBAAuB,CAAC,CAC5B,CACJ,EAIA,6BAA8B,QAK9B,yBAA0B,CACtB,MACA,CACI,WAAY,CAAC,EACb,SAAU,CACN,MAAO,CAAC,UAAW,IAAI,CAC3B,EACA,cAAe,EACnB,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,EAClB,gBAAiB,CAAC,EAClB,kBAAmB,CAAC,EACpB,OAAQ,OACR,MAAO,EACX,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,OAAO,EACzB,kBAAmB,CAAC,EACpB,eAAgB,CAAC,QAAS,SAAU,QAAS,QAAS,WAAY,KAAM,OAAO,EAC/E,YAAa,CAAC,OAAQ,UAAW,OAAQ,UAAW,aAAc,MAAO,UAAW,UAAW,OAAQ,UAAU,EACjH,MAAO,CACX,CACJ,EAIA,wCAAyC,QAIzC,yBAA0B,QAI1B,uBAAwB,MAIxB,sCAAuC,QAKvC,wCAAyC,QAKzC,oCAAqC,QAIrC,gCAAiC,QAIjC,+BAAgC,CAAC,QAAS,CAAE,WAAY,CAAC,EAAE,CAAE,CAAC,EAI9D,yBAA0B,QAI1B,gBAAiB,QAIjB,mCAAoC,CAChC,QACA,CACI,SAAU,CAAC,UAAW,OAAO,CACjC,CACJ,EAIA,iBAAkB,QAIlB,wCAAyC,QAIzC,0CAA2C,CACvC,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAIA,kDAAmD,CAC/C,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAKA,4BAA6B,MAI7B,8CAA+C,QAI/C,4BAA6B,QAI7B,wBAAyB,CAAC,QAAS,CAAE,aAAc,EAAK,CAAC,EAIzD,8BAA+B,QAI/B,6BAA8B,CAC1B,QACA,CACI,MAAO,CAAC,EACR,MAAO,CAAC,EACR,MAAO,CAAC,CACZ,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,OAAQ,cAAc,CAC/B,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,WAAY,SAAU,MAAO,MAAO,UAAU,EACnD,MAAO,CAAC,MAAM,EACd,GAAI,CAAC,UAAU,CACnB,CACJ,EAIA,sCAAuC,CACnC,QACA,CACI,KAAM,CAAC,EACP,MAAO,CAAC,UAAU,CACtB,CACJ,EAIA,2BAA4B,CACxB,QACA,CACI,WAAY,CAAC,MAAM,EACnB,YAAa,CAAC,IAAI,EAClB,QAAS,CAAC,SAAU,cAAe,cAAc,CACrD,CACJ,EAIA,8BAA+B,CAC3B,MACA,CACI,gBAAiB,CAAC,CACtB,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n plugins: [\"jsx-a11y\", \"react\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce that anchors have content\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md\n \"jsx-a11y/anchor-has-content\": [\"error\", { components: [] }],\n\n // Require ARIA roles to be valid and non-abstract\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md\n \"jsx-a11y/aria-role\": [\"error\", { ignoreNonDOM: false }],\n\n // Enforce all aria-* props are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md\n \"jsx-a11y/aria-props\": \"error\",\n\n // Enforce ARIA state and property values are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md\n \"jsx-a11y/aria-proptypes\": \"error\",\n\n // Enforce that elements that do not support ARIA roles, states, and\n // properties do not have those attributes.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md\n \"jsx-a11y/aria-unsupported-elements\": \"error\",\n\n // Enforce that all elements that require alternative text have meaningful information\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md\n \"jsx-a11y/alt-text\": [\n \"error\",\n {\n elements: [\"img\", \"object\", \"area\", 'input[type=\"image\"]'],\n img: [],\n object: [],\n area: [],\n 'input[type=\"image\"]': [],\n },\n ],\n\n // Prevent img alt text from containing redundant words like \"image\", \"picture\", or \"photo\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md\n \"jsx-a11y/img-redundant-alt\": \"error\",\n\n // require that JSX labels use \"htmlFor\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md\n // deprecated: replaced by `label-has-associated-control` rule\n \"jsx-a11y/label-has-for\": [\n \"off\",\n {\n components: [],\n required: {\n every: [\"nesting\", \"id\"],\n },\n allowChildren: false,\n },\n ],\n\n // Enforce that a label tag has a text label and an associated control.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md\n \"jsx-a11y/label-has-associated-control\": [\n \"error\",\n {\n labelComponents: [],\n labelAttributes: [],\n controlComponents: [],\n assert: \"both\",\n depth: 25,\n },\n ],\n\n // Enforce that a control (an interactive element) has a text label.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md\n \"jsx-a11y/control-has-associated-label\": [\n \"error\",\n {\n labelAttributes: [\"label\"],\n controlComponents: [],\n ignoreElements: [\"audio\", \"canvas\", \"embed\", \"input\", \"textarea\", \"tr\", \"video\"],\n ignoreRoles: [\"grid\", \"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"row\", \"tablist\", \"toolbar\", \"tree\", \"treegrid\"],\n depth: 5,\n },\n ],\n\n // require that mouseover/out come with focus/blur, for keyboard-only users\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md\n \"jsx-a11y/mouse-events-have-key-events\": \"error\",\n\n // Prevent use of `accessKey`\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md\n \"jsx-a11y/no-access-key\": \"error\",\n\n // require onBlur instead of onChange\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md\n \"jsx-a11y/no-onchange\": \"off\",\n\n // Elements with an interactive role and interaction handlers must be focusable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md\n \"jsx-a11y/interactive-supports-focus\": \"error\",\n\n // Enforce that elements with ARIA roles must have all required attributes\n // for that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md\n \"jsx-a11y/role-has-required-aria-props\": \"error\",\n\n // Enforce that elements with explicit or implicit roles defined contain\n // only aria-* properties supported by that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md\n \"jsx-a11y/role-supports-aria-props\": \"error\",\n\n // Enforce tabIndex value is not greater than zero.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md\n \"jsx-a11y/tabindex-no-positive\": \"error\",\n\n // ensure <hX> tags have content and are not aria-hidden\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md\n \"jsx-a11y/heading-has-content\": [\"error\", { components: [\"\"] }],\n\n // require HTML elements to have a \"lang\" prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md\n \"jsx-a11y/html-has-lang\": \"error\",\n\n // require HTML element's lang prop to be valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md\n \"jsx-a11y/lang\": \"error\",\n\n // prevent distracting elements, like <marquee> and <blink>\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md\n \"jsx-a11y/no-distracting-elements\": [\n \"error\",\n {\n elements: [\"marquee\", \"blink\"],\n },\n ],\n\n // only allow <th> to have the \"scope\" attr\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md\n \"jsx-a11y/scope\": \"error\",\n\n // require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md\n \"jsx-a11y/click-events-have-key-events\": \"error\",\n\n // Enforce that DOM elements without semantic behavior not have interaction handlers\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n \"jsx-a11y/no-static-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // A non-interactive element does not support event handlers (mouse and key handlers)\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md\n \"jsx-a11y/no-noninteractive-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // ensure emoji are accessible\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md\n // disabled; rule is deprecated\n \"jsx-a11y/accessible-emoji\": \"off\",\n\n // elements with aria-activedescendant must be tabbable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md\n \"jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n\n // ensure iframe elements have a unique title\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md\n \"jsx-a11y/iframe-has-title\": \"error\",\n\n // prohibit autoFocus prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md\n \"jsx-a11y/no-autofocus\": [\"error\", { ignoreNonDOM: true }],\n\n // ensure HTML elements do not specify redundant ARIA roles\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md\n \"jsx-a11y/no-redundant-roles\": \"error\",\n\n // media elements must have captions\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md\n \"jsx-a11y/media-has-caption\": [\n \"error\",\n {\n audio: [],\n video: [],\n track: [],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert an interactive element to non-interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md\n \"jsx-a11y/no-interactive-element-to-noninteractive-role\": [\n \"error\",\n {\n tr: [\"none\", \"presentation\"],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert a non-interactive element to interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md\n \"jsx-a11y/no-noninteractive-element-to-interactive-role\": [\n \"error\",\n {\n ul: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n ol: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n li: [\"menuitem\", \"option\", \"row\", \"tab\", \"treeitem\"],\n table: [\"grid\"],\n td: [\"gridcell\"],\n },\n ],\n\n // Tab key navigation should be limited to elements on the page that can be interacted with.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md\n \"jsx-a11y/no-noninteractive-tabindex\": [\n \"error\",\n {\n tags: [],\n roles: [\"tabpanel\"],\n },\n ],\n\n // ensure <a> tags are valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md\n \"jsx-a11y/anchor-is-valid\": [\n \"error\",\n {\n components: [\"Link\"],\n specialLink: [\"to\"],\n aspects: [\"noHref\", \"invalidHref\", \"preferButton\"],\n },\n ],\n\n // Ensure the autocomplete attribute is correct and suitable for the form field it is used with\n // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md\n \"jsx-a11y/autocomplete-valid\": [\n \"off\",\n {\n inputComponents: [],\n },\n ],\n },\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsx-a11y.ts"],"names":["hasDependency","hasDevDependency","hasStorybook","config","jsx_a11y_default"],"mappings":"AAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAGhD,IAAIC,EAAe,IAEfD,EAAiB,WAAW,GAAKD,EAAc,WAAW,KAC1DE,EAAe,IAGnB,IAAMC,EAAwB,CAC1B,QAAS,CAAC,WAAY,OAAO,EAE7B,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,8BAA+B,CAAC,QAAS,CAAE,WAAY,CAAC,CAAE,CAAC,EAI3D,qBAAsB,CAAC,QAAS,CAAE,aAAc,EAAM,CAAC,EAIvD,sBAAuB,QAIvB,0BAA2B,QAK3B,qCAAsC,QAItC,oBAAqB,CACjB,QACA,CACI,SAAU,CAAC,MAAO,SAAU,OAAQ,qBAAqB,EACzD,IAAK,CAAC,EACN,OAAQ,CAAC,EACT,KAAM,CAAC,EACP,sBAAuB,CAAC,CAC5B,CACJ,EAIA,6BAA8B,QAK9B,yBAA0B,CACtB,MACA,CACI,WAAY,CAAC,EACb,SAAU,CACN,MAAO,CAAC,UAAW,IAAI,CAC3B,EACA,cAAe,EACnB,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,EAClB,gBAAiB,CAAC,EAClB,kBAAmB,CAAC,EACpB,OAAQ,OACR,MAAO,EACX,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,OAAO,EACzB,kBAAmB,CAAC,EACpB,eAAgB,CAAC,QAAS,SAAU,QAAS,QAAS,WAAY,KAAM,OAAO,EAC/E,YAAa,CAAC,OAAQ,UAAW,OAAQ,UAAW,aAAc,MAAO,UAAW,UAAW,OAAQ,UAAU,EACjH,MAAO,CACX,CACJ,EAIA,wCAAyC,QAIzC,yBAA0B,QAI1B,uBAAwB,MAIxB,sCAAuC,QAKvC,wCAAyC,QAKzC,oCAAqC,QAIrC,gCAAiC,QAIjC,+BAAgC,CAAC,QAAS,CAAE,WAAY,CAAC,EAAE,CAAE,CAAC,EAI9D,yBAA0B,QAI1B,gBAAiB,QAIjB,mCAAoC,CAChC,QACA,CACI,SAAU,CAAC,UAAW,OAAO,CACjC,CACJ,EAIA,iBAAkB,QAIlB,wCAAyC,QAIzC,0CAA2C,CACvC,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAIA,kDAAmD,CAC/C,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAKA,4BAA6B,MAI7B,8CAA+C,QAI/C,4BAA6B,QAI7B,wBAAyB,CAAC,QAAS,CAAE,aAAc,EAAK,CAAC,EAIzD,8BAA+B,QAI/B,6BAA8B,CAC1B,QACA,CACI,MAAO,CAAC,EACR,MAAO,CAAC,EACR,MAAO,CAAC,CACZ,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,OAAQ,cAAc,CAC/B,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,WAAY,SAAU,MAAO,MAAO,UAAU,EACnD,MAAO,CAAC,MAAM,EACd,GAAI,CAAC,UAAU,CACnB,CACJ,EAIA,sCAAuC,CACnC,QACA,CACI,KAAM,CAAC,EACP,MAAO,CAAC,UAAU,CACtB,CACJ,EAIA,2BAA4B,CACxB,QACA,CACI,WAAY,CAAC,IAAK,SAAU,MAAM,EAClC,YAAa,CAAC,IAAI,EAClB,QAAS,CAAC,SAAU,cAAe,eAAgB,GAAID,EAAe,CAAC,iBAAkB,OAAQ,QAAS,IAAI,EAAI,CAAC,CAAE,CACzH,CACJ,EAIA,8BAA+B,CAC3B,MACA,CACI,gBAAiB,CAAC,CACtB,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet hasStorybook = false;\n\nif (hasDevDependency(\"storybook\") || hasDependency(\"storybook\")) {\n hasStorybook = true;\n}\n\nconst config: Linter.Config = {\n plugins: [\"jsx-a11y\", \"react\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce that anchors have content\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md\n \"jsx-a11y/anchor-has-content\": [\"error\", { components: [] }],\n\n // Require ARIA roles to be valid and non-abstract\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md\n \"jsx-a11y/aria-role\": [\"error\", { ignoreNonDOM: false }],\n\n // Enforce all aria-* props are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md\n \"jsx-a11y/aria-props\": \"error\",\n\n // Enforce ARIA state and property values are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md\n \"jsx-a11y/aria-proptypes\": \"error\",\n\n // Enforce that elements that do not support ARIA roles, states, and\n // properties do not have those attributes.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md\n \"jsx-a11y/aria-unsupported-elements\": \"error\",\n\n // Enforce that all elements that require alternative text have meaningful information\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md\n \"jsx-a11y/alt-text\": [\n \"error\",\n {\n elements: [\"img\", \"object\", \"area\", 'input[type=\"image\"]'],\n img: [],\n object: [],\n area: [],\n 'input[type=\"image\"]': [],\n },\n ],\n\n // Prevent img alt text from containing redundant words like \"image\", \"picture\", or \"photo\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md\n \"jsx-a11y/img-redundant-alt\": \"error\",\n\n // require that JSX labels use \"htmlFor\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md\n // deprecated: replaced by `label-has-associated-control` rule\n \"jsx-a11y/label-has-for\": [\n \"off\",\n {\n components: [],\n required: {\n every: [\"nesting\", \"id\"],\n },\n allowChildren: false,\n },\n ],\n\n // Enforce that a label tag has a text label and an associated control.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md\n \"jsx-a11y/label-has-associated-control\": [\n \"error\",\n {\n labelComponents: [],\n labelAttributes: [],\n controlComponents: [],\n assert: \"both\",\n depth: 25,\n },\n ],\n\n // Enforce that a control (an interactive element) has a text label.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md\n \"jsx-a11y/control-has-associated-label\": [\n \"error\",\n {\n labelAttributes: [\"label\"],\n controlComponents: [],\n ignoreElements: [\"audio\", \"canvas\", \"embed\", \"input\", \"textarea\", \"tr\", \"video\"],\n ignoreRoles: [\"grid\", \"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"row\", \"tablist\", \"toolbar\", \"tree\", \"treegrid\"],\n depth: 5,\n },\n ],\n\n // require that mouseover/out come with focus/blur, for keyboard-only users\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md\n \"jsx-a11y/mouse-events-have-key-events\": \"error\",\n\n // Prevent use of `accessKey`\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md\n \"jsx-a11y/no-access-key\": \"error\",\n\n // require onBlur instead of onChange\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md\n \"jsx-a11y/no-onchange\": \"off\",\n\n // Elements with an interactive role and interaction handlers must be focusable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md\n \"jsx-a11y/interactive-supports-focus\": \"error\",\n\n // Enforce that elements with ARIA roles must have all required attributes\n // for that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md\n \"jsx-a11y/role-has-required-aria-props\": \"error\",\n\n // Enforce that elements with explicit or implicit roles defined contain\n // only aria-* properties supported by that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md\n \"jsx-a11y/role-supports-aria-props\": \"error\",\n\n // Enforce tabIndex value is not greater than zero.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md\n \"jsx-a11y/tabindex-no-positive\": \"error\",\n\n // ensure <hX> tags have content and are not aria-hidden\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md\n \"jsx-a11y/heading-has-content\": [\"error\", { components: [\"\"] }],\n\n // require HTML elements to have a \"lang\" prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md\n \"jsx-a11y/html-has-lang\": \"error\",\n\n // require HTML element's lang prop to be valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md\n \"jsx-a11y/lang\": \"error\",\n\n // prevent distracting elements, like <marquee> and <blink>\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md\n \"jsx-a11y/no-distracting-elements\": [\n \"error\",\n {\n elements: [\"marquee\", \"blink\"],\n },\n ],\n\n // only allow <th> to have the \"scope\" attr\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md\n \"jsx-a11y/scope\": \"error\",\n\n // require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md\n \"jsx-a11y/click-events-have-key-events\": \"error\",\n\n // Enforce that DOM elements without semantic behavior not have interaction handlers\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n \"jsx-a11y/no-static-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // A non-interactive element does not support event handlers (mouse and key handlers)\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md\n \"jsx-a11y/no-noninteractive-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // ensure emoji are accessible\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md\n // disabled; rule is deprecated\n \"jsx-a11y/accessible-emoji\": \"off\",\n\n // elements with aria-activedescendant must be tabbable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md\n \"jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n\n // ensure iframe elements have a unique title\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md\n \"jsx-a11y/iframe-has-title\": \"error\",\n\n // prohibit autoFocus prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md\n \"jsx-a11y/no-autofocus\": [\"error\", { ignoreNonDOM: true }],\n\n // ensure HTML elements do not specify redundant ARIA roles\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md\n \"jsx-a11y/no-redundant-roles\": \"error\",\n\n // media elements must have captions\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md\n \"jsx-a11y/media-has-caption\": [\n \"error\",\n {\n audio: [],\n video: [],\n track: [],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert an interactive element to non-interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md\n \"jsx-a11y/no-interactive-element-to-noninteractive-role\": [\n \"error\",\n {\n tr: [\"none\", \"presentation\"],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert a non-interactive element to interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md\n \"jsx-a11y/no-noninteractive-element-to-interactive-role\": [\n \"error\",\n {\n ul: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n ol: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n li: [\"menuitem\", \"option\", \"row\", \"tab\", \"treeitem\"],\n table: [\"grid\"],\n td: [\"gridcell\"],\n },\n ],\n\n // Tab key navigation should be limited to elements on the page that can be interacted with.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md\n \"jsx-a11y/no-noninteractive-tabindex\": [\n \"error\",\n {\n tags: [],\n roles: [\"tabpanel\"],\n },\n ],\n\n // ensure <a> tags are valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md\n \"jsx-a11y/anchor-is-valid\": [\n \"error\",\n {\n components: [\"A\", \"LinkTo\", \"Link\"],\n specialLink: [\"to\"],\n aspects: [\"noHref\", \"invalidHref\", \"preferButton\", ...(hasStorybook ? [\"overrideParams\", \"kind\", \"story\", \"to\"] : [])],\n },\n ],\n\n // Ensure the autocomplete attribute is correct and suitable for the form field it is used with\n // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md\n \"jsx-a11y/autocomplete-valid\": [\n \"off\",\n {\n inputComponents: [],\n },\n ],\n },\n};\n\nexport default config;\n"]}
@@ -1,5 +1,7 @@
1
- var e={plugins:["jsx-a11y","react"],parserOptions:{ecmaFeatures:{jsx:!0}},rules:{"jsx-a11y/anchor-has-content":["error",{components:[]}],"jsx-a11y/aria-role":["error",{ignoreNonDOM:!1}],"jsx-a11y/aria-props":"error","jsx-a11y/aria-proptypes":"error","jsx-a11y/aria-unsupported-elements":"error","jsx-a11y/alt-text":["error",{elements:["img","object","area",'input[type="image"]'],img:[],object:[],area:[],'input[type="image"]':[]}],"jsx-a11y/img-redundant-alt":"error","jsx-a11y/label-has-for":["off",{components:[],required:{every:["nesting","id"]},allowChildren:!1}],"jsx-a11y/label-has-associated-control":["error",{labelComponents:[],labelAttributes:[],controlComponents:[],assert:"both",depth:25}],"jsx-a11y/control-has-associated-label":["error",{labelAttributes:["label"],controlComponents:[],ignoreElements:["audio","canvas","embed","input","textarea","tr","video"],ignoreRoles:["grid","listbox","menu","menubar","radiogroup","row","tablist","toolbar","tree","treegrid"],depth:5}],"jsx-a11y/mouse-events-have-key-events":"error","jsx-a11y/no-access-key":"error","jsx-a11y/no-onchange":"off","jsx-a11y/interactive-supports-focus":"error","jsx-a11y/role-has-required-aria-props":"error","jsx-a11y/role-supports-aria-props":"error","jsx-a11y/tabindex-no-positive":"error","jsx-a11y/heading-has-content":["error",{components:[""]}],"jsx-a11y/html-has-lang":"error","jsx-a11y/lang":"error","jsx-a11y/no-distracting-elements":["error",{elements:["marquee","blink"]}],"jsx-a11y/scope":"error","jsx-a11y/click-events-have-key-events":"error","jsx-a11y/no-static-element-interactions":["error",{handlers:["onClick","onMouseDown","onMouseUp","onKeyPress","onKeyDown","onKeyUp"]}],"jsx-a11y/no-noninteractive-element-interactions":["error",{handlers:["onClick","onMouseDown","onMouseUp","onKeyPress","onKeyDown","onKeyUp"]}],"jsx-a11y/accessible-emoji":"off","jsx-a11y/aria-activedescendant-has-tabindex":"error","jsx-a11y/iframe-has-title":"error","jsx-a11y/no-autofocus":["error",{ignoreNonDOM:!0}],"jsx-a11y/no-redundant-roles":"error","jsx-a11y/media-has-caption":["error",{audio:[],video:[],track:[]}],"jsx-a11y/no-interactive-element-to-noninteractive-role":["error",{tr:["none","presentation"]}],"jsx-a11y/no-noninteractive-element-to-interactive-role":["error",{ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"]}],"jsx-a11y/no-noninteractive-tabindex":["error",{tags:[],roles:["tabpanel"]}],"jsx-a11y/anchor-is-valid":["error",{components:["Link"],specialLink:["to"],aspects:["noHref","invalidHref","preferButton"]}],"jsx-a11y/autocomplete-valid":["off",{inputComponents:[]}]}},r=e;
1
+ import { hasDevDependency, hasDependency } from '@anolilab/package-json-utils';
2
2
 
3
- export { r as default };
3
+ var e=!1;(hasDevDependency("storybook")||hasDependency("storybook"))&&(e=!0);var a={plugins:["jsx-a11y","react"],parserOptions:{ecmaFeatures:{jsx:!0}},rules:{"jsx-a11y/anchor-has-content":["error",{components:[]}],"jsx-a11y/aria-role":["error",{ignoreNonDOM:!1}],"jsx-a11y/aria-props":"error","jsx-a11y/aria-proptypes":"error","jsx-a11y/aria-unsupported-elements":"error","jsx-a11y/alt-text":["error",{elements:["img","object","area",'input[type="image"]'],img:[],object:[],area:[],'input[type="image"]':[]}],"jsx-a11y/img-redundant-alt":"error","jsx-a11y/label-has-for":["off",{components:[],required:{every:["nesting","id"]},allowChildren:!1}],"jsx-a11y/label-has-associated-control":["error",{labelComponents:[],labelAttributes:[],controlComponents:[],assert:"both",depth:25}],"jsx-a11y/control-has-associated-label":["error",{labelAttributes:["label"],controlComponents:[],ignoreElements:["audio","canvas","embed","input","textarea","tr","video"],ignoreRoles:["grid","listbox","menu","menubar","radiogroup","row","tablist","toolbar","tree","treegrid"],depth:5}],"jsx-a11y/mouse-events-have-key-events":"error","jsx-a11y/no-access-key":"error","jsx-a11y/no-onchange":"off","jsx-a11y/interactive-supports-focus":"error","jsx-a11y/role-has-required-aria-props":"error","jsx-a11y/role-supports-aria-props":"error","jsx-a11y/tabindex-no-positive":"error","jsx-a11y/heading-has-content":["error",{components:[""]}],"jsx-a11y/html-has-lang":"error","jsx-a11y/lang":"error","jsx-a11y/no-distracting-elements":["error",{elements:["marquee","blink"]}],"jsx-a11y/scope":"error","jsx-a11y/click-events-have-key-events":"error","jsx-a11y/no-static-element-interactions":["error",{handlers:["onClick","onMouseDown","onMouseUp","onKeyPress","onKeyDown","onKeyUp"]}],"jsx-a11y/no-noninteractive-element-interactions":["error",{handlers:["onClick","onMouseDown","onMouseUp","onKeyPress","onKeyDown","onKeyUp"]}],"jsx-a11y/accessible-emoji":"off","jsx-a11y/aria-activedescendant-has-tabindex":"error","jsx-a11y/iframe-has-title":"error","jsx-a11y/no-autofocus":["error",{ignoreNonDOM:!0}],"jsx-a11y/no-redundant-roles":"error","jsx-a11y/media-has-caption":["error",{audio:[],video:[],track:[]}],"jsx-a11y/no-interactive-element-to-noninteractive-role":["error",{tr:["none","presentation"]}],"jsx-a11y/no-noninteractive-element-to-interactive-role":["error",{ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"]}],"jsx-a11y/no-noninteractive-tabindex":["error",{tags:[],roles:["tabpanel"]}],"jsx-a11y/anchor-is-valid":["error",{components:["A","LinkTo","Link"],specialLink:["to"],aspects:["noHref","invalidHref","preferButton",...e?["overrideParams","kind","story","to"]:[]]}],"jsx-a11y/autocomplete-valid":["off",{inputComponents:[]}]}},n=a;
4
+
5
+ export { n as default };
4
6
  //# sourceMappingURL=out.js.map
5
7
  //# sourceMappingURL=jsx-a11y.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsx-a11y.ts"],"names":["config","jsx_a11y_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,WAAY,OAAO,EAE7B,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,8BAA+B,CAAC,QAAS,CAAE,WAAY,CAAC,CAAE,CAAC,EAI3D,qBAAsB,CAAC,QAAS,CAAE,aAAc,EAAM,CAAC,EAIvD,sBAAuB,QAIvB,0BAA2B,QAK3B,qCAAsC,QAItC,oBAAqB,CACjB,QACA,CACI,SAAU,CAAC,MAAO,SAAU,OAAQ,qBAAqB,EACzD,IAAK,CAAC,EACN,OAAQ,CAAC,EACT,KAAM,CAAC,EACP,sBAAuB,CAAC,CAC5B,CACJ,EAIA,6BAA8B,QAK9B,yBAA0B,CACtB,MACA,CACI,WAAY,CAAC,EACb,SAAU,CACN,MAAO,CAAC,UAAW,IAAI,CAC3B,EACA,cAAe,EACnB,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,EAClB,gBAAiB,CAAC,EAClB,kBAAmB,CAAC,EACpB,OAAQ,OACR,MAAO,EACX,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,OAAO,EACzB,kBAAmB,CAAC,EACpB,eAAgB,CAAC,QAAS,SAAU,QAAS,QAAS,WAAY,KAAM,OAAO,EAC/E,YAAa,CAAC,OAAQ,UAAW,OAAQ,UAAW,aAAc,MAAO,UAAW,UAAW,OAAQ,UAAU,EACjH,MAAO,CACX,CACJ,EAIA,wCAAyC,QAIzC,yBAA0B,QAI1B,uBAAwB,MAIxB,sCAAuC,QAKvC,wCAAyC,QAKzC,oCAAqC,QAIrC,gCAAiC,QAIjC,+BAAgC,CAAC,QAAS,CAAE,WAAY,CAAC,EAAE,CAAE,CAAC,EAI9D,yBAA0B,QAI1B,gBAAiB,QAIjB,mCAAoC,CAChC,QACA,CACI,SAAU,CAAC,UAAW,OAAO,CACjC,CACJ,EAIA,iBAAkB,QAIlB,wCAAyC,QAIzC,0CAA2C,CACvC,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAIA,kDAAmD,CAC/C,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAKA,4BAA6B,MAI7B,8CAA+C,QAI/C,4BAA6B,QAI7B,wBAAyB,CAAC,QAAS,CAAE,aAAc,EAAK,CAAC,EAIzD,8BAA+B,QAI/B,6BAA8B,CAC1B,QACA,CACI,MAAO,CAAC,EACR,MAAO,CAAC,EACR,MAAO,CAAC,CACZ,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,OAAQ,cAAc,CAC/B,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,WAAY,SAAU,MAAO,MAAO,UAAU,EACnD,MAAO,CAAC,MAAM,EACd,GAAI,CAAC,UAAU,CACnB,CACJ,EAIA,sCAAuC,CACnC,QACA,CACI,KAAM,CAAC,EACP,MAAO,CAAC,UAAU,CACtB,CACJ,EAIA,2BAA4B,CACxB,QACA,CACI,WAAY,CAAC,MAAM,EACnB,YAAa,CAAC,IAAI,EAClB,QAAS,CAAC,SAAU,cAAe,cAAc,CACrD,CACJ,EAIA,8BAA+B,CAC3B,MACA,CACI,gBAAiB,CAAC,CACtB,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n plugins: [\"jsx-a11y\", \"react\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce that anchors have content\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md\n \"jsx-a11y/anchor-has-content\": [\"error\", { components: [] }],\n\n // Require ARIA roles to be valid and non-abstract\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md\n \"jsx-a11y/aria-role\": [\"error\", { ignoreNonDOM: false }],\n\n // Enforce all aria-* props are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md\n \"jsx-a11y/aria-props\": \"error\",\n\n // Enforce ARIA state and property values are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md\n \"jsx-a11y/aria-proptypes\": \"error\",\n\n // Enforce that elements that do not support ARIA roles, states, and\n // properties do not have those attributes.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md\n \"jsx-a11y/aria-unsupported-elements\": \"error\",\n\n // Enforce that all elements that require alternative text have meaningful information\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md\n \"jsx-a11y/alt-text\": [\n \"error\",\n {\n elements: [\"img\", \"object\", \"area\", 'input[type=\"image\"]'],\n img: [],\n object: [],\n area: [],\n 'input[type=\"image\"]': [],\n },\n ],\n\n // Prevent img alt text from containing redundant words like \"image\", \"picture\", or \"photo\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md\n \"jsx-a11y/img-redundant-alt\": \"error\",\n\n // require that JSX labels use \"htmlFor\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md\n // deprecated: replaced by `label-has-associated-control` rule\n \"jsx-a11y/label-has-for\": [\n \"off\",\n {\n components: [],\n required: {\n every: [\"nesting\", \"id\"],\n },\n allowChildren: false,\n },\n ],\n\n // Enforce that a label tag has a text label and an associated control.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md\n \"jsx-a11y/label-has-associated-control\": [\n \"error\",\n {\n labelComponents: [],\n labelAttributes: [],\n controlComponents: [],\n assert: \"both\",\n depth: 25,\n },\n ],\n\n // Enforce that a control (an interactive element) has a text label.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md\n \"jsx-a11y/control-has-associated-label\": [\n \"error\",\n {\n labelAttributes: [\"label\"],\n controlComponents: [],\n ignoreElements: [\"audio\", \"canvas\", \"embed\", \"input\", \"textarea\", \"tr\", \"video\"],\n ignoreRoles: [\"grid\", \"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"row\", \"tablist\", \"toolbar\", \"tree\", \"treegrid\"],\n depth: 5,\n },\n ],\n\n // require that mouseover/out come with focus/blur, for keyboard-only users\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md\n \"jsx-a11y/mouse-events-have-key-events\": \"error\",\n\n // Prevent use of `accessKey`\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md\n \"jsx-a11y/no-access-key\": \"error\",\n\n // require onBlur instead of onChange\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md\n \"jsx-a11y/no-onchange\": \"off\",\n\n // Elements with an interactive role and interaction handlers must be focusable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md\n \"jsx-a11y/interactive-supports-focus\": \"error\",\n\n // Enforce that elements with ARIA roles must have all required attributes\n // for that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md\n \"jsx-a11y/role-has-required-aria-props\": \"error\",\n\n // Enforce that elements with explicit or implicit roles defined contain\n // only aria-* properties supported by that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md\n \"jsx-a11y/role-supports-aria-props\": \"error\",\n\n // Enforce tabIndex value is not greater than zero.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md\n \"jsx-a11y/tabindex-no-positive\": \"error\",\n\n // ensure <hX> tags have content and are not aria-hidden\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md\n \"jsx-a11y/heading-has-content\": [\"error\", { components: [\"\"] }],\n\n // require HTML elements to have a \"lang\" prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md\n \"jsx-a11y/html-has-lang\": \"error\",\n\n // require HTML element's lang prop to be valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md\n \"jsx-a11y/lang\": \"error\",\n\n // prevent distracting elements, like <marquee> and <blink>\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md\n \"jsx-a11y/no-distracting-elements\": [\n \"error\",\n {\n elements: [\"marquee\", \"blink\"],\n },\n ],\n\n // only allow <th> to have the \"scope\" attr\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md\n \"jsx-a11y/scope\": \"error\",\n\n // require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md\n \"jsx-a11y/click-events-have-key-events\": \"error\",\n\n // Enforce that DOM elements without semantic behavior not have interaction handlers\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n \"jsx-a11y/no-static-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // A non-interactive element does not support event handlers (mouse and key handlers)\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md\n \"jsx-a11y/no-noninteractive-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // ensure emoji are accessible\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md\n // disabled; rule is deprecated\n \"jsx-a11y/accessible-emoji\": \"off\",\n\n // elements with aria-activedescendant must be tabbable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md\n \"jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n\n // ensure iframe elements have a unique title\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md\n \"jsx-a11y/iframe-has-title\": \"error\",\n\n // prohibit autoFocus prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md\n \"jsx-a11y/no-autofocus\": [\"error\", { ignoreNonDOM: true }],\n\n // ensure HTML elements do not specify redundant ARIA roles\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md\n \"jsx-a11y/no-redundant-roles\": \"error\",\n\n // media elements must have captions\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md\n \"jsx-a11y/media-has-caption\": [\n \"error\",\n {\n audio: [],\n video: [],\n track: [],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert an interactive element to non-interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md\n \"jsx-a11y/no-interactive-element-to-noninteractive-role\": [\n \"error\",\n {\n tr: [\"none\", \"presentation\"],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert a non-interactive element to interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md\n \"jsx-a11y/no-noninteractive-element-to-interactive-role\": [\n \"error\",\n {\n ul: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n ol: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n li: [\"menuitem\", \"option\", \"row\", \"tab\", \"treeitem\"],\n table: [\"grid\"],\n td: [\"gridcell\"],\n },\n ],\n\n // Tab key navigation should be limited to elements on the page that can be interacted with.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md\n \"jsx-a11y/no-noninteractive-tabindex\": [\n \"error\",\n {\n tags: [],\n roles: [\"tabpanel\"],\n },\n ],\n\n // ensure <a> tags are valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md\n \"jsx-a11y/anchor-is-valid\": [\n \"error\",\n {\n components: [\"Link\"],\n specialLink: [\"to\"],\n aspects: [\"noHref\", \"invalidHref\", \"preferButton\"],\n },\n ],\n\n // Ensure the autocomplete attribute is correct and suitable for the form field it is used with\n // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md\n \"jsx-a11y/autocomplete-valid\": [\n \"off\",\n {\n inputComponents: [],\n },\n ],\n },\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsx-a11y.ts"],"names":["hasDependency","hasDevDependency","hasStorybook","config","jsx_a11y_default"],"mappings":"AAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAGhD,IAAIC,EAAe,IAEfD,EAAiB,WAAW,GAAKD,EAAc,WAAW,KAC1DE,EAAe,IAGnB,IAAMC,EAAwB,CAC1B,QAAS,CAAC,WAAY,OAAO,EAE7B,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,8BAA+B,CAAC,QAAS,CAAE,WAAY,CAAC,CAAE,CAAC,EAI3D,qBAAsB,CAAC,QAAS,CAAE,aAAc,EAAM,CAAC,EAIvD,sBAAuB,QAIvB,0BAA2B,QAK3B,qCAAsC,QAItC,oBAAqB,CACjB,QACA,CACI,SAAU,CAAC,MAAO,SAAU,OAAQ,qBAAqB,EACzD,IAAK,CAAC,EACN,OAAQ,CAAC,EACT,KAAM,CAAC,EACP,sBAAuB,CAAC,CAC5B,CACJ,EAIA,6BAA8B,QAK9B,yBAA0B,CACtB,MACA,CACI,WAAY,CAAC,EACb,SAAU,CACN,MAAO,CAAC,UAAW,IAAI,CAC3B,EACA,cAAe,EACnB,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,EAClB,gBAAiB,CAAC,EAClB,kBAAmB,CAAC,EACpB,OAAQ,OACR,MAAO,EACX,CACJ,EAIA,wCAAyC,CACrC,QACA,CACI,gBAAiB,CAAC,OAAO,EACzB,kBAAmB,CAAC,EACpB,eAAgB,CAAC,QAAS,SAAU,QAAS,QAAS,WAAY,KAAM,OAAO,EAC/E,YAAa,CAAC,OAAQ,UAAW,OAAQ,UAAW,aAAc,MAAO,UAAW,UAAW,OAAQ,UAAU,EACjH,MAAO,CACX,CACJ,EAIA,wCAAyC,QAIzC,yBAA0B,QAI1B,uBAAwB,MAIxB,sCAAuC,QAKvC,wCAAyC,QAKzC,oCAAqC,QAIrC,gCAAiC,QAIjC,+BAAgC,CAAC,QAAS,CAAE,WAAY,CAAC,EAAE,CAAE,CAAC,EAI9D,yBAA0B,QAI1B,gBAAiB,QAIjB,mCAAoC,CAChC,QACA,CACI,SAAU,CAAC,UAAW,OAAO,CACjC,CACJ,EAIA,iBAAkB,QAIlB,wCAAyC,QAIzC,0CAA2C,CACvC,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAIA,kDAAmD,CAC/C,QACA,CACI,SAAU,CAAC,UAAW,cAAe,YAAa,aAAc,YAAa,SAAS,CAC1F,CACJ,EAKA,4BAA6B,MAI7B,8CAA+C,QAI/C,4BAA6B,QAI7B,wBAAyB,CAAC,QAAS,CAAE,aAAc,EAAK,CAAC,EAIzD,8BAA+B,QAI/B,6BAA8B,CAC1B,QACA,CACI,MAAO,CAAC,EACR,MAAO,CAAC,EACR,MAAO,CAAC,CACZ,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,OAAQ,cAAc,CAC/B,CACJ,EAIA,yDAA0D,CACtD,QACA,CACI,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,UAAW,OAAQ,UAAW,aAAc,UAAW,OAAQ,UAAU,EAC9E,GAAI,CAAC,WAAY,SAAU,MAAO,MAAO,UAAU,EACnD,MAAO,CAAC,MAAM,EACd,GAAI,CAAC,UAAU,CACnB,CACJ,EAIA,sCAAuC,CACnC,QACA,CACI,KAAM,CAAC,EACP,MAAO,CAAC,UAAU,CACtB,CACJ,EAIA,2BAA4B,CACxB,QACA,CACI,WAAY,CAAC,IAAK,SAAU,MAAM,EAClC,YAAa,CAAC,IAAI,EAClB,QAAS,CAAC,SAAU,cAAe,eAAgB,GAAID,EAAe,CAAC,iBAAkB,OAAQ,QAAS,IAAI,EAAI,CAAC,CAAE,CACzH,CACJ,EAIA,8BAA+B,CAC3B,MACA,CACI,gBAAiB,CAAC,CACtB,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet hasStorybook = false;\n\nif (hasDevDependency(\"storybook\") || hasDependency(\"storybook\")) {\n hasStorybook = true;\n}\n\nconst config: Linter.Config = {\n plugins: [\"jsx-a11y\", \"react\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce that anchors have content\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md\n \"jsx-a11y/anchor-has-content\": [\"error\", { components: [] }],\n\n // Require ARIA roles to be valid and non-abstract\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md\n \"jsx-a11y/aria-role\": [\"error\", { ignoreNonDOM: false }],\n\n // Enforce all aria-* props are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md\n \"jsx-a11y/aria-props\": \"error\",\n\n // Enforce ARIA state and property values are valid.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md\n \"jsx-a11y/aria-proptypes\": \"error\",\n\n // Enforce that elements that do not support ARIA roles, states, and\n // properties do not have those attributes.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md\n \"jsx-a11y/aria-unsupported-elements\": \"error\",\n\n // Enforce that all elements that require alternative text have meaningful information\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md\n \"jsx-a11y/alt-text\": [\n \"error\",\n {\n elements: [\"img\", \"object\", \"area\", 'input[type=\"image\"]'],\n img: [],\n object: [],\n area: [],\n 'input[type=\"image\"]': [],\n },\n ],\n\n // Prevent img alt text from containing redundant words like \"image\", \"picture\", or \"photo\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md\n \"jsx-a11y/img-redundant-alt\": \"error\",\n\n // require that JSX labels use \"htmlFor\"\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md\n // deprecated: replaced by `label-has-associated-control` rule\n \"jsx-a11y/label-has-for\": [\n \"off\",\n {\n components: [],\n required: {\n every: [\"nesting\", \"id\"],\n },\n allowChildren: false,\n },\n ],\n\n // Enforce that a label tag has a text label and an associated control.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/b800f40a2a69ad48015ae9226fbe879f946757ed/docs/rules/label-has-associated-control.md\n \"jsx-a11y/label-has-associated-control\": [\n \"error\",\n {\n labelComponents: [],\n labelAttributes: [],\n controlComponents: [],\n assert: \"both\",\n depth: 25,\n },\n ],\n\n // Enforce that a control (an interactive element) has a text label.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/control-has-associated-label.md\n \"jsx-a11y/control-has-associated-label\": [\n \"error\",\n {\n labelAttributes: [\"label\"],\n controlComponents: [],\n ignoreElements: [\"audio\", \"canvas\", \"embed\", \"input\", \"textarea\", \"tr\", \"video\"],\n ignoreRoles: [\"grid\", \"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"row\", \"tablist\", \"toolbar\", \"tree\", \"treegrid\"],\n depth: 5,\n },\n ],\n\n // require that mouseover/out come with focus/blur, for keyboard-only users\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md\n \"jsx-a11y/mouse-events-have-key-events\": \"error\",\n\n // Prevent use of `accessKey`\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md\n \"jsx-a11y/no-access-key\": \"error\",\n\n // require onBlur instead of onChange\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md\n \"jsx-a11y/no-onchange\": \"off\",\n\n // Elements with an interactive role and interaction handlers must be focusable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md\n \"jsx-a11y/interactive-supports-focus\": \"error\",\n\n // Enforce that elements with ARIA roles must have all required attributes\n // for that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md\n \"jsx-a11y/role-has-required-aria-props\": \"error\",\n\n // Enforce that elements with explicit or implicit roles defined contain\n // only aria-* properties supported by that role.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md\n \"jsx-a11y/role-supports-aria-props\": \"error\",\n\n // Enforce tabIndex value is not greater than zero.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md\n \"jsx-a11y/tabindex-no-positive\": \"error\",\n\n // ensure <hX> tags have content and are not aria-hidden\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md\n \"jsx-a11y/heading-has-content\": [\"error\", { components: [\"\"] }],\n\n // require HTML elements to have a \"lang\" prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md\n \"jsx-a11y/html-has-lang\": \"error\",\n\n // require HTML element's lang prop to be valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md\n \"jsx-a11y/lang\": \"error\",\n\n // prevent distracting elements, like <marquee> and <blink>\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md\n \"jsx-a11y/no-distracting-elements\": [\n \"error\",\n {\n elements: [\"marquee\", \"blink\"],\n },\n ],\n\n // only allow <th> to have the \"scope\" attr\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md\n \"jsx-a11y/scope\": \"error\",\n\n // require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md\n \"jsx-a11y/click-events-have-key-events\": \"error\",\n\n // Enforce that DOM elements without semantic behavior not have interaction handlers\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n \"jsx-a11y/no-static-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // A non-interactive element does not support event handlers (mouse and key handlers)\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md\n \"jsx-a11y/no-noninteractive-element-interactions\": [\n \"error\",\n {\n handlers: [\"onClick\", \"onMouseDown\", \"onMouseUp\", \"onKeyPress\", \"onKeyDown\", \"onKeyUp\"],\n },\n ],\n\n // ensure emoji are accessible\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md\n // disabled; rule is deprecated\n \"jsx-a11y/accessible-emoji\": \"off\",\n\n // elements with aria-activedescendant must be tabbable\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md\n \"jsx-a11y/aria-activedescendant-has-tabindex\": \"error\",\n\n // ensure iframe elements have a unique title\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md\n \"jsx-a11y/iframe-has-title\": \"error\",\n\n // prohibit autoFocus prop\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md\n \"jsx-a11y/no-autofocus\": [\"error\", { ignoreNonDOM: true }],\n\n // ensure HTML elements do not specify redundant ARIA roles\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md\n \"jsx-a11y/no-redundant-roles\": \"error\",\n\n // media elements must have captions\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md\n \"jsx-a11y/media-has-caption\": [\n \"error\",\n {\n audio: [],\n video: [],\n track: [],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert an interactive element to non-interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md\n \"jsx-a11y/no-interactive-element-to-noninteractive-role\": [\n \"error\",\n {\n tr: [\"none\", \"presentation\"],\n },\n ],\n\n // WAI-ARIA roles should not be used to convert a non-interactive element to interactive\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md\n \"jsx-a11y/no-noninteractive-element-to-interactive-role\": [\n \"error\",\n {\n ul: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n ol: [\"listbox\", \"menu\", \"menubar\", \"radiogroup\", \"tablist\", \"tree\", \"treegrid\"],\n li: [\"menuitem\", \"option\", \"row\", \"tab\", \"treeitem\"],\n table: [\"grid\"],\n td: [\"gridcell\"],\n },\n ],\n\n // Tab key navigation should be limited to elements on the page that can be interacted with.\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md\n \"jsx-a11y/no-noninteractive-tabindex\": [\n \"error\",\n {\n tags: [],\n roles: [\"tabpanel\"],\n },\n ],\n\n // ensure <a> tags are valid\n // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md\n \"jsx-a11y/anchor-is-valid\": [\n \"error\",\n {\n components: [\"A\", \"LinkTo\", \"Link\"],\n specialLink: [\"to\"],\n aspects: [\"noHref\", \"invalidHref\", \"preferButton\", ...(hasStorybook ? [\"overrideParams\", \"kind\", \"story\", \"to\"] : [])],\n },\n ],\n\n // Ensure the autocomplete attribute is correct and suitable for the form field it is used with\n // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/29c68596b15c4ff0a40daae6d4a2670e36e37d35/docs/rules/autocomplete-valid.md\n \"jsx-a11y/autocomplete-valid\": [\n \"off\",\n {\n inputComponents: [],\n },\n ],\n },\n};\n\nexport default config;\n"]}
@@ -0,0 +1,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const config: Linter.Config;
4
+
5
+ export { config as default };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var packageJsonUtils = require('@anolilab/package-json-utils');
4
+
5
+ var t=!1;(packageJsonUtils.hasDependency("jest")||packageJsonUtils.hasDevDependency("jest")||packageJsonUtils.hasDevDependency("eslint-plugin-jest")||packageJsonUtils.hasDevDependency("@types/jest"))&&(t=!0);var n={env:{browser:!0,es6:!0,node:!0},overrides:[{files:["**/e2e/**/*.test.{js,ts}"],extends:[t?"plugin:playwright/jest-playwright":"plugin:playwright/recommended"],rules:{"@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-object-literal-type-assertion":"off","@typescript-eslint/no-empty-function":"off"}}]},r=n;
6
+
7
+ module.exports = r;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=playwright.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/playwright.ts"],"names":["hasDependency","hasDevDependency","hasJest","config","playwright_default"],"mappings":"AAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAGhD,IAAIC,EAAU,IAEVF,EAAc,MAAM,GAAKC,EAAiB,MAAM,GAAKA,EAAiB,oBAAoB,GAAKA,EAAiB,aAAa,KAC7HC,EAAU,IAId,IAAMC,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CAEI,MAAO,CAAC,0BAA0B,EAClC,QAAS,CAACD,EAAU,oCAAsC,+BAA+B,EACzF,MAAO,CACH,2CAA4C,MAC5C,sDAAuD,MACvD,uCAAwC,KAC5C,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet hasJest = false;\n\nif (hasDependency(\"jest\") || hasDevDependency(\"jest\") || hasDevDependency(\"eslint-plugin-jest\") || hasDevDependency(\"@types/jest\")) {\n hasJest = true;\n}\n\n// @see https://github.com/playwright-community/eslint-plugin-playwright\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n // To ensure best performance enable only on e2e test files\n files: [\"**/e2e/**/*.test.{js,ts}\"],\n extends: [hasJest ? \"plugin:playwright/jest-playwright\" : \"plugin:playwright/recommended\"],\n rules: {\n \"@typescript-eslint/no-non-null-assertion\": \"off\",\n \"@typescript-eslint/no-object-literal-type-assertion\": \"off\",\n \"@typescript-eslint/no-empty-function\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -0,0 +1,7 @@
1
+ import { hasDependency, hasDevDependency } from '@anolilab/package-json-utils';
2
+
3
+ var t=!1;(hasDependency("jest")||hasDevDependency("jest")||hasDevDependency("eslint-plugin-jest")||hasDevDependency("@types/jest"))&&(t=!0);var n={env:{browser:!0,es6:!0,node:!0},overrides:[{files:["**/e2e/**/*.test.{js,ts}"],extends:[t?"plugin:playwright/jest-playwright":"plugin:playwright/recommended"],rules:{"@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-object-literal-type-assertion":"off","@typescript-eslint/no-empty-function":"off"}}]},r=n;
4
+
5
+ export { r as default };
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=playwright.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/playwright.ts"],"names":["hasDependency","hasDevDependency","hasJest","config","playwright_default"],"mappings":"AAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAGhD,IAAIC,EAAU,IAEVF,EAAc,MAAM,GAAKC,EAAiB,MAAM,GAAKA,EAAiB,oBAAoB,GAAKA,EAAiB,aAAa,KAC7HC,EAAU,IAId,IAAMC,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CAEI,MAAO,CAAC,0BAA0B,EAClC,QAAS,CAACD,EAAU,oCAAsC,+BAA+B,EACzF,MAAO,CACH,2CAA4C,MAC5C,sDAAuD,MACvD,uCAAwC,KAC5C,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet hasJest = false;\n\nif (hasDependency(\"jest\") || hasDevDependency(\"jest\") || hasDevDependency(\"eslint-plugin-jest\") || hasDevDependency(\"@types/jest\")) {\n hasJest = true;\n}\n\n// @see https://github.com/playwright-community/eslint-plugin-playwright\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n // To ensure best performance enable only on e2e test files\n files: [\"**/e2e/**/*.test.{js,ts}\"],\n extends: [hasJest ? \"plugin:playwright/jest-playwright\" : \"plugin:playwright/recommended\"],\n rules: {\n \"@typescript-eslint/no-non-null-assertion\": \"off\",\n \"@typescript-eslint/no-object-literal-type-assertion\": \"off\",\n \"@typescript-eslint/no-empty-function\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
4
- var chunkMLDIWITS_js = require('../../chunk-MLDIWITS.js');
4
+ var chunkLL423FL5_js = require('../../chunk-LL423FL5.js');
5
5
  var packageJsonUtils = require('@anolilab/package-json-utils');
6
6
  var d = require('find-up');
7
7
  var process = require('process');
@@ -10,7 +10,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
 
11
11
  var d__default = /*#__PURE__*/_interopDefault(d);
12
12
 
13
- var s=chunkMLDIWITS_js.a.rules,n=s["no-underscore-dangle"],f={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(f={"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":"off","react/jsx-closing-tag-location":"off","react/jsx-curly-newline":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off"});var r={};packageJsonUtils.pkg&&(r=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);var l=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let a=typeof d__default.default.sync("node_modules/react/jsx-runtime.js")=="string",t=process.env.DISABLE_INFO_ON_DISABLING_JSX_REACT_RULE!=="true";t&&r?.info_on_disabling_jsx_react_rule!==void 0&&(t=r.info_on_disabling_jsx_react_rule),t&&a&&chunkYMWD4DNM_js.b(`
13
+ var s=chunkLL423FL5_js.a.rules,n=s["no-underscore-dangle"],f={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(f={"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":"off","react/jsx-closing-tag-location":"off","react/jsx-curly-newline":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off"});var r={};packageJsonUtils.pkg&&(r=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);var l=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let a=typeof d__default.default.sync("node_modules/react/jsx-runtime.js")=="string",t=process.env.DISABLE_INFO_ON_DISABLING_JSX_REACT_RULE!=="true";t&&r?.info_on_disabling_jsx_react_rule!==void 0&&(t=r.info_on_disabling_jsx_react_rule),t&&a&&chunkYMWD4DNM_js.b(`
14
14
  @anolilab/eslint-config found react jsx-runtime.
15
15
 
16
16
  Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
@@ -1,5 +1,5 @@
1
1
  import { b } from '../../chunk-G7JIJH44.mjs';
2
- import { a } from '../../chunk-KNKUBOMM.mjs';
2
+ import { a } from '../../chunk-BMAMDZC7.mjs';
3
3
  import { hasAnyDep, pkg, getPackageSubProperty } from '@anolilab/package-json-utils';
4
4
  import d from 'find-up';
5
5
  import { env } from 'process';
@@ -0,0 +1,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const config: Linter.Config;
4
+
5
+ export { config as default };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var e={env:{browser:!0,es6:!0,node:!0},overrides:[{files:["**/*.stories.{ts,tsx,mdx}"],extends:["plugin:storybook/recommended"]}]},t=e;
4
+
5
+ module.exports = t;
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=storybook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/storybook.ts"],"names":["config","storybook_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CAEI,MAAO,CAAC,2BAA2B,EACnC,QAAS,CAAC,8BAA8B,CAC5C,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/storybookjs/eslint-plugin-storybook\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n // For performance run storybook/recommended on test files, not regular code\n files: [\"**/*.stories.{ts,tsx,mdx}\"],\n extends: [\"plugin:storybook/recommended\"],\n },\n ],\n};\n\nexport default config;\n"]}
@@ -0,0 +1,5 @@
1
+ var e={env:{browser:!0,es6:!0,node:!0},overrides:[{files:["**/*.stories.{ts,tsx,mdx}"],extends:["plugin:storybook/recommended"]}]},t=e;
2
+
3
+ export { t as default };
4
+ //# sourceMappingURL=out.js.map
5
+ //# sourceMappingURL=storybook.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/storybook.ts"],"names":["config","storybook_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CAEI,MAAO,CAAC,2BAA2B,EACnC,QAAS,CAAC,8BAA8B,CAC5C,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/storybookjs/eslint-plugin-storybook\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n // For performance run storybook/recommended on test files, not regular code\n files: [\"**/*.stories.{ts,tsx,mdx}\"],\n extends: [\"plugin:storybook/recommended\"],\n },\n ],\n};\n\nexport default config;\n"]}
@@ -0,0 +1,5 @@
1
+ import { Linter } from 'eslint';
2
+
3
+ declare const config: Linter.Config;
4
+
5
+ export { config as default };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var chunkVJL7NPM4_js = require('../../chunk-VJL7NPM4.js');
4
+
5
+ var t=chunkVJL7NPM4_js.a("all",{extends:["plugin:@tanstack/eslint-plugin-query/recommended"]}),i=t;
6
+
7
+ module.exports = i;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=tanstack-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/tanstack-query.ts"],"names":["config","createConfig","tanstack_query_default"],"mappings":"4CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,kDAAkD,CAChE,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://tanstack.com/query/v4/docs/react/eslint/eslint-plugin-query\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:@tanstack/eslint-plugin-query/recommended\"],\n});\n\nexport default config;\n"]}
@@ -0,0 +1,7 @@
1
+ import { a } from '../../chunk-5IW32NSH.mjs';
2
+
3
+ var t=a("all",{extends:["plugin:@tanstack/eslint-plugin-query/recommended"]}),i=t;
4
+
5
+ export { i as default };
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=tanstack-query.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/config/plugins/tanstack-query.ts"],"names":["config","createConfig","tanstack_query_default"],"mappings":"6CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,kDAAkD,CAChE,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://tanstack.com/query/v4/docs/react/eslint/eslint-plugin-query\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:@tanstack/eslint-plugin-query/recommended\"],\n});\n\nexport default config;\n"]}
@@ -2,14 +2,14 @@
2
2
 
3
3
  var chunkUJAIXHCQ_js = require('../../chunk-UJAIXHCQ.js');
4
4
  var chunkEOABR2FR_js = require('../../chunk-EOABR2FR.js');
5
- var chunkPCIKFIV2_js = require('../../chunk-PCIKFIV2.js');
6
- var chunkMLDIWITS_js = require('../../chunk-MLDIWITS.js');
5
+ var chunk55ITTPFD_js = require('../../chunk-55ITTPFD.js');
6
+ var chunkLL423FL5_js = require('../../chunk-LL423FL5.js');
7
7
  var chunk5S3UQ6WJ_js = require('../../chunk-5S3UQ6WJ.js');
8
8
  var chunkSV64EPVP_js = require('../../chunk-SV64EPVP.js');
9
9
  var packageJsonUtils = require('@anolilab/package-json-utils');
10
10
  var process = require('process');
11
11
 
12
- var t=chunk5S3UQ6WJ_js.a.rules,m=chunkSV64EPVP_js.a.rules,e=chunkMLDIWITS_js.a.rules,d=chunkPCIKFIV2_js.a.rules,g=chunkEOABR2FR_js.a.rules,r=chunkUJAIXHCQ_js.a.rules,{quotes:w,semi:_,indent:j}=e,b={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(b={"@typescript-eslint/lines-around-comment":0,"@typescript-eslint/quotes":0,"@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/no-extra-semi":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"});var n=g["import/extensions"],o=g["import/no-extraneous-dependencies"],s=e["comma-dangle"],i={};packageJsonUtils.pkg&&(i=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);var x=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";i?.warn_on_unsupported_typescript_version!==void 0&&(x=i.warn_on_unsupported_typescript_version);var C={overrides:[{files:["*.ts","*.mts","*.cts","*.tsx"],extends:["plugin:import/typescript"],plugins:["@typescript-eslint"],parser:"@typescript-eslint/parser",parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},warnOnUnsupportedTypeScriptVersion:x},settings:{"import/parsers":{"@typescript-eslint/parser":[".ts",".tsx",".d.ts"]},"import/resolver":{node:{extensions:[".mjs",".cjs",".js",".json",".ts",".d.ts"]}},"import/extensions":[".js",".mjs",".jsx",".ts",".tsx",".d.ts"],"import/external-module-folders":["node_modules","node_modules/@types"]},rules:{strict:"off","brace-style":"off","@typescript-eslint/brace-style":e["brace-style"],camelcase:"off","@typescript-eslint/naming-convention":["error",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:"function",format:["camelCase","PascalCase"]},{selector:"typeLike",format:["PascalCase"]}],"comma-dangle":"off","@typescript-eslint/comma-dangle":[s[0],{...s[1],enums:s[1].arrays,generics:s[1].arrays,tuples:s[1].arrays}],"comma-spacing":"off","@typescript-eslint/comma-spacing":e["comma-spacing"],"dot-notation":"off","func-call-spacing":"off","@typescript-eslint/func-call-spacing":e["func-call-spacing"],indent:"off","@typescript-eslint/indent":j,"keyword-spacing":"off","@typescript-eslint/keyword-spacing":e["keyword-spacing"],"lines-between-class-members":"off","@typescript-eslint/lines-between-class-members":e["lines-between-class-members"],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":e["no-array-constructor"],"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":d["no-dupe-class-members"],"no-empty-function":"off","@typescript-eslint/no-empty-function":t["no-empty-function"],"no-extra-parens":"off","@typescript-eslint/no-extra-parens":m["no-extra-parens"],"no-extra-semi":"off","@typescript-eslint/no-extra-semi":m["no-extra-semi"],"no-implied-eval":"off","no-new-func":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":t["no-loop-func"],"no-magic-numbers":"off","@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"no-redeclare":"off","@typescript-eslint/no-redeclare":t["no-redeclare"],"no-shadow":"off","@typescript-eslint/no-shadow":r["no-shadow"],"no-throw-literal":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"no-unused-vars":"off","@typescript-eslint/no-unused-vars":r["no-unused-vars"],"no-use-before-define":"off","@typescript-eslint/no-use-before-define":r["no-use-before-define"],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":d["no-useless-constructor"],quotes:"off","@typescript-eslint/quotes":w,semi:"off","@typescript-eslint/semi":_,"space-before-function-paren":"off","@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"no-return-await":"off","@typescript-eslint/return-await":t["no-return-await"],"space-infix-ops":"off","@typescript-eslint/space-infix-ops":e["space-infix-ops"],"import/extensions":[n[0],n[1],{...n[2],ts:"never",tsx:"never"}],"import/no-extraneous-dependencies":[o[0],{...o[1],devDependencies:o[1].devDependencies.map(v=>v.replaceAll(/\bjs(x?)\b/g,"ts$1"))}],"constructor-super":"off","getter-return":"off","no-const-assign":"off","no-dupe-args":"off","no-dupe-keys":"off","no-func-assign":"off","no-new-symbol":"off","no-obj-calls":"off","no-this-before-super":"off","no-undef":"off","no-unreachable":"off","no-unsafe-negation":"off","valid-typeof":"off","import/named":"off","import/no-unresolved":"off","react/require-default-props":"off","@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/member-ordering":["error",{default:["public-static-field","protected-static-field","private-static-field","public-static-method","protected-static-method","private-static-method","public-instance-field","protected-instance-field","private-instance-field","constructor","public-instance-method","protected-instance-method","private-instance-method"]}],"@typescript-eslint/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{String:{message:"Use string instead",fixWith:"string"},Boolean:{message:"Use boolean instead",fixWith:"boolean"},Number:{message:"Use number instead",fixWith:"number"},Object:{message:"Use object instead",fixWith:"object"},Array:{message:"Provide a more specific type"}}}],"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/method-signature-style":"error","@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-invalid-void-type":"warn","@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-namespace":"error","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"warn","@typescript-eslint/no-non-null-asserted-optional-chain":"error","@typescript-eslint/no-non-null-assertion":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-this-alias":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unnecessary-type-constraint":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/no-useless-empty-export":"error","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/prefer-enum-initializers":"error","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-nullish-coalescing":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/no-import-type-side-effects":"error",...b}},{files:["*.d.ts"],rules:{"import/no-duplicates":"off"}}]},q=C;
12
+ var t=chunk5S3UQ6WJ_js.a.rules,m=chunkSV64EPVP_js.a.rules,e=chunkLL423FL5_js.a.rules,d=chunk55ITTPFD_js.a.rules,g=chunkEOABR2FR_js.a.rules,r=chunkUJAIXHCQ_js.a.rules,{quotes:w,semi:_,indent:j}=e,b={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(b={"@typescript-eslint/lines-around-comment":0,"@typescript-eslint/quotes":0,"@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/no-extra-semi":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"});var n=g["import/extensions"],o=g["import/no-extraneous-dependencies"],s=e["comma-dangle"],i={};packageJsonUtils.pkg&&(i=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);var x=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";i?.warn_on_unsupported_typescript_version!==void 0&&(x=i.warn_on_unsupported_typescript_version);var C={overrides:[{files:["*.ts","*.mts","*.cts","*.tsx"],extends:["plugin:import/typescript"],plugins:["@typescript-eslint"],parser:"@typescript-eslint/parser",parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},warnOnUnsupportedTypeScriptVersion:x},settings:{"import/parsers":{"@typescript-eslint/parser":[".ts",".tsx",".d.ts"]},"import/resolver":{node:{extensions:[".mjs",".cjs",".js",".json",".ts",".d.ts"]}},"import/extensions":[".js",".mjs",".jsx",".ts",".tsx",".d.ts"],"import/external-module-folders":["node_modules","node_modules/@types"]},rules:{strict:"off","brace-style":"off","@typescript-eslint/brace-style":e["brace-style"],camelcase:"off","@typescript-eslint/naming-convention":["error",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:"function",format:["camelCase","PascalCase"]},{selector:"typeLike",format:["PascalCase"]}],"comma-dangle":"off","@typescript-eslint/comma-dangle":[s[0],{...s[1],enums:s[1].arrays,generics:s[1].arrays,tuples:s[1].arrays}],"comma-spacing":"off","@typescript-eslint/comma-spacing":e["comma-spacing"],"dot-notation":"off","func-call-spacing":"off","@typescript-eslint/func-call-spacing":e["func-call-spacing"],indent:"off","@typescript-eslint/indent":j,"keyword-spacing":"off","@typescript-eslint/keyword-spacing":e["keyword-spacing"],"lines-between-class-members":"off","@typescript-eslint/lines-between-class-members":e["lines-between-class-members"],"no-array-constructor":"off","@typescript-eslint/no-array-constructor":e["no-array-constructor"],"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":d["no-dupe-class-members"],"no-empty-function":"off","@typescript-eslint/no-empty-function":t["no-empty-function"],"no-extra-parens":"off","@typescript-eslint/no-extra-parens":m["no-extra-parens"],"no-extra-semi":"off","@typescript-eslint/no-extra-semi":m["no-extra-semi"],"no-implied-eval":"off","no-new-func":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":t["no-loop-func"],"no-magic-numbers":"off","@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"no-redeclare":"off","@typescript-eslint/no-redeclare":t["no-redeclare"],"no-shadow":"off","@typescript-eslint/no-shadow":r["no-shadow"],"no-throw-literal":"off","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"no-unused-vars":"off","@typescript-eslint/no-unused-vars":r["no-unused-vars"],"no-use-before-define":"off","@typescript-eslint/no-use-before-define":r["no-use-before-define"],"no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":d["no-useless-constructor"],quotes:"off","@typescript-eslint/quotes":w,semi:"off","@typescript-eslint/semi":_,"space-before-function-paren":"off","@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"no-return-await":"off","@typescript-eslint/return-await":t["no-return-await"],"space-infix-ops":"off","@typescript-eslint/space-infix-ops":e["space-infix-ops"],"import/extensions":[n[0],n[1],{...n[2],ts:"never",tsx:"never"}],"import/no-extraneous-dependencies":[o[0],{...o[1],devDependencies:o[1].devDependencies.map(v=>v.replaceAll(/\bjs(x?)\b/g,"ts$1"))}],"constructor-super":"off","getter-return":"off","no-const-assign":"off","no-dupe-args":"off","no-dupe-keys":"off","no-func-assign":"off","no-new-symbol":"off","no-obj-calls":"off","no-this-before-super":"off","no-undef":"off","no-unreachable":"off","no-unsafe-negation":"off","valid-typeof":"off","import/named":"off","import/no-unresolved":"off","react/require-default-props":"off","@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/member-ordering":["error",{default:["public-static-field","protected-static-field","private-static-field","public-static-method","protected-static-method","private-static-method","public-instance-field","protected-instance-field","private-instance-field","constructor","public-instance-method","protected-instance-method","private-instance-method"]}],"@typescript-eslint/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{String:{message:"Use string instead",fixWith:"string"},Boolean:{message:"Use boolean instead",fixWith:"boolean"},Number:{message:"Use number instead",fixWith:"number"},Object:{message:"Use object instead",fixWith:"object"},Array:{message:"Provide a more specific type"}}}],"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/method-signature-style":"error","@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-invalid-void-type":"warn","@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-namespace":"error","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"warn","@typescript-eslint/no-non-null-asserted-optional-chain":"error","@typescript-eslint/no-non-null-assertion":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-this-alias":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unnecessary-type-constraint":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/no-useless-empty-export":"error","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/prefer-enum-initializers":"error","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-nullish-coalescing":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/no-import-type-side-effects":"error",...b}},{files:["*.d.ts"],rules:{"import/no-duplicates":"off"}}]},q=C;
13
13
 
14
14
  module.exports = q;
15
15
  //# sourceMappingURL=out.js.map
@@ -1,7 +1,7 @@
1
1
  import { a as a$5 } from '../../chunk-RWRS63WY.mjs';
2
2
  import { a as a$4 } from '../../chunk-5XOTKQJY.mjs';
3
- import { a as a$3 } from '../../chunk-WSETOOIE.mjs';
4
- import { a as a$2 } from '../../chunk-KNKUBOMM.mjs';
3
+ import { a as a$3 } from '../../chunk-U52VQNGF.mjs';
4
+ import { a as a$2 } from '../../chunk-BMAMDZC7.mjs';
5
5
  import { a } from '../../chunk-U5JQC7EA.mjs';
6
6
  import { a as a$1 } from '../../chunk-DJDHW6UR.mjs';
7
7
  import { hasAnyDep, pkg } from '@anolilab/package-json-utils';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLDIWITS_js = require('../../chunk-MLDIWITS.js');
3
+ var chunkLL423FL5_js = require('../../chunk-LL423FL5.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
  var t = require('semver');
6
6
 
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
9
9
  var t__default = /*#__PURE__*/_interopDefault(t);
10
10
 
11
- var i=chunkMLDIWITS_js.a.rules,r={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(r={"unicorn/empty-brace-spaces":"off","unicorn/no-nested-ternary":"off","unicorn/number-literal-case":"off","unicorn/template-indent":"off"});var s={plugins:["unicorn"],extends:["plugin:unicorn/recommended"],rules:{"unicorn/prefer-node-protocol":t__default.default.gte(process.version,"v16.0.0")?"error":"off","unicorn/template-indent":["error",{indent:i.indent[1]}],"unicorn/no-array-for-each":"off","unicorn/prefer-module":packageJsonUtils.packageIsTypeModule?"error":"off","unicorn/better-regex":["error",{sortCharacterClasses:!1}],"unicorn/consistent-destructuring":"off","unicorn/no-null":"off","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/prefer-json-parse-buffer":"off","unicorn/consistent-function-scoping":"off","unicorn/no-useless-undefined":"off","function-call-argument-newline":"off",...r},overrides:[{files:["*.ts","*.tsx","*.mts","*.cts"],rules:{"unicorn/import-style":"off"}}]},l=s;
11
+ var i=chunkLL423FL5_js.a.rules,r={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(r={"unicorn/empty-brace-spaces":"off","unicorn/no-nested-ternary":"off","unicorn/number-literal-case":"off","unicorn/template-indent":"off"});var s={plugins:["unicorn"],extends:["plugin:unicorn/recommended"],rules:{"unicorn/prefer-node-protocol":t__default.default.gte(process.version,"v16.0.0")?"error":"off","unicorn/template-indent":["error",{indent:i.indent[1]}],"unicorn/no-array-for-each":"off","unicorn/prefer-module":packageJsonUtils.packageIsTypeModule?"error":"off","unicorn/better-regex":["error",{sortCharacterClasses:!1}],"unicorn/consistent-destructuring":"off","unicorn/no-null":"off","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/prefer-json-parse-buffer":"off","unicorn/consistent-function-scoping":"off","unicorn/no-useless-undefined":"off","function-call-argument-newline":"off",...r},overrides:[{files:["*.ts","*.tsx","*.mts","*.cts"],rules:{"unicorn/import-style":"off"}}]},l=s;
12
12
 
13
13
  module.exports = l;
14
14
  //# sourceMappingURL=out.js.map
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-KNKUBOMM.mjs';
1
+ import { a } from '../../chunk-BMAMDZC7.mjs';
2
2
  import { hasAnyDep, packageIsTypeModule } from '@anolilab/package-json-utils';
3
3
  import t from 'semver';
4
4
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLDIWITS_js = require('../chunk-MLDIWITS.js');
3
+ var chunkLL423FL5_js = require('../chunk-LL423FL5.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunkMLDIWITS_js.a;
7
+ module.exports = chunkLL423FL5_js.a;
8
8
  //# sourceMappingURL=out.js.map
9
9
  //# sourceMappingURL=style.js.map
@@ -1,3 +1,3 @@
1
- export { a as default } from '../chunk-KNKUBOMM.mjs';
1
+ export { a as default } from '../chunk-BMAMDZC7.mjs';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=style.mjs.map
package/dist/index.js CHANGED
@@ -4,18 +4,18 @@ var chunkYMWD4DNM_js = require('./chunk-YMWD4DNM.js');
4
4
  require('@rushstack/eslint-patch/modern-module-resolution');
5
5
  var packageJsonUtils = require('@anolilab/package-json-utils');
6
6
  var path = require('path');
7
- var x = require('semver');
7
+ var N = require('semver');
8
8
 
9
9
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
 
11
- var x__default = /*#__PURE__*/_interopDefault(x);
11
+ var N__default = /*#__PURE__*/_interopDefault(N);
12
12
 
13
- var v=["best-practices","errors","style","es6","variables"],E=["compat","eslint-comments","import","promise","simple-import-sort","no-extend-native","node","no-secrets","sonarjs","security","regexp","jsonc","markdown","toml","yml","html","antfu","unicorn","es"],L=[{configName:"array-func",dependencies:["eslint-plugin-array-func"]},{configName:"jsdoc",dependencies:["eslint-plugin-jsdoc"]},{configName:"tsdoc",dependencies:["eslint-plugin-tsdoc","typescript"]},{configName:"lodash",dependencies:["lodash","eslint-plugin-lodash"]},{configName:"lodash-fp",dependencies:["lodash","eslint-plugin-lodash-fp"]},{configName:"you-dont-need-lodash-underscore",dependencies:["lodash","eslint-plugin-you-dont-need-lodash-underscore"]},{configName:"mdx",dependencies:["eslint-plugin-mdx"]},{configName:"no-unsanitized",dependencies:["eslint-plugin-no-unsanitized"]},{configName:"react",dependencies:["react","react-dom","eslint-plugin-react"]},{configName:"react-redux",dependencies:["eslint-plugin-react-redux"]},{configName:"jsx-a11y",dependencies:["react","react-dom","eslint-plugin-jsx-a11y"]},{configName:"react-hooks",dependencies:["react","react-dom","eslint-plugin-react-hooks"]},{configName:"you-dont-need-momentjs",dependencies:["moment","eslint-plugin-you-dont-need-momentjs"]},{configName:"you-dont-need-momentjs",dependencies:["moment-timezone","eslint-plugin-you-dont-need-momentjs"]},{configName:"tailwindcss",dependencies:["eslint-plugin-tailwindcss"]},{configName:"cypress",dependencies:["eslint-plugin-cypress"]},{configName:"jest",dependencies:["jest","eslint-plugin-jest"]},{configName:"jest-dom",dependencies:["jest","@testing-library/jest-dom","eslint-plugin-jest-dom"]},{configName:"jest-async",dependencies:["jest","eslint-plugin-jest-async"]},{configName:"jest-formatting",dependencies:["jest","eslint-plugin-jest-formatting"]},{configName:"tailwindcss",dependencies:["tailwindcss"]},{configName:"testing-library",dependencies:["@testing-library/dom","eslint-plugin-testing-library"]},{configName:"testing-library",dependencies:["react","@testing-library/react","eslint-plugin-testing-library"]},{configName:"typescript",dependencies:["typescript"]},{configName:"typescript-sort-keys",dependencies:["typescript","eslint-plugin-typescript-sort-keys"]},{configName:"vitest",dependencies:["vitest","eslint-plugin-vitest"]},{configName:"zod",dependencies:["zod","eslint-plugin-zod"]},{configName:"ava",dependencies:["ava","eslint-plugin-ava"]}],u=[...E],f={},y={};packageJsonUtils.pkg&&(y=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);L.forEach(e=>{let{dependencies:n,configName:o}=e;if(y?.plugin?.[o]!==!1){let r=[];n.forEach(s=>{(packageJsonUtils.hasDependency(s)||packageJsonUtils.hasDevDependency(s))&&r.push(s);}),r.length===n.length?u.push(o):(f[o]={},n.forEach(s=>{f[o][s]=packageJsonUtils.hasDependency(s)||packageJsonUtils.hasDevDependency(s);}));}});var b=v,l=u,h=f;var R={"unicorn/prefer-spread":{"5.0.0":"off"},"unicorn/no-new-buffer":{"5.10.0":"off"},"prefer-rest-params":{"6.0.0":"off"},"prefer-destructuring":{"6.0.0":"off"},"promise/prefer-await-to-then":{"7.6.0":"off"},"prefer-object-spread":{"8.3.0":"off"},"n/prefer-global/url-search-params":{"10.0.0":"off"},"n/prefer-global/url":{"10.0.0":"off"},"no-useless-catch":{"10.0.0":"off"},"prefer-named-capture-group":{"10.0.0":"off"},"n/prefer-global/text-encoder":{"11.0.0":"off"},"n/prefer-global/text-decoder":{"11.0.0":"off"},"unicorn/prefer-flat-map":{"11.0.0":"off"},"n/prefer-promises/dns":{"11.14.0":"off"},"n/prefer-promises/fs":{"11.14.0":"off"}},j=R;if(!global.hasAnolilabEsLintConfigLoaded){process.env.DEBUG&&(chunkYMWD4DNM_js.b(`
13
+ var v=["best-practices","errors","style","es6","variables"],E=["compat","eslint-comments","import","promise","simple-import-sort","no-extend-native","node","no-secrets","sonarjs","security","regexp","jsonc","markdown","toml","yml","html","antfu","unicorn","es"],L=[{configName:"array-func",dependencies:["eslint-plugin-array-func"]},{configName:"jsdoc",dependencies:["eslint-plugin-jsdoc"]},{configName:"tsdoc",dependencies:["eslint-plugin-tsdoc","typescript"]},{configName:"lodash",dependencies:["lodash","eslint-plugin-lodash"]},{configName:"lodash-fp",dependencies:["lodash","eslint-plugin-lodash-fp"]},{configName:"you-dont-need-lodash-underscore",dependencies:["lodash","eslint-plugin-you-dont-need-lodash-underscore"]},{configName:"mdx",dependencies:["eslint-plugin-mdx"]},{configName:"no-unsanitized",dependencies:["eslint-plugin-no-unsanitized"]},{configName:"react",dependencies:["react","react-dom","eslint-plugin-react"]},{configName:"react-redux",dependencies:["eslint-plugin-react-redux"]},{configName:"jsx-a11y",dependencies:["react","react-dom","eslint-plugin-jsx-a11y"]},{configName:"react-hooks",dependencies:["react","react-dom","eslint-plugin-react-hooks"]},{configName:"you-dont-need-momentjs",dependencies:["moment","eslint-plugin-you-dont-need-momentjs"]},{configName:"you-dont-need-momentjs",dependencies:["moment-timezone","eslint-plugin-you-dont-need-momentjs"]},{configName:"tailwindcss",dependencies:["eslint-plugin-tailwindcss"]},{configName:"cypress",dependencies:["eslint-plugin-cypress"]},{configName:"jest",dependencies:["jest","eslint-plugin-jest"]},{configName:"jest-dom",dependencies:["jest","@testing-library/jest-dom","eslint-plugin-jest-dom"]},{configName:"jest-async",dependencies:["jest","eslint-plugin-jest-async"]},{configName:"jest-formatting",dependencies:["jest","eslint-plugin-jest-formatting"]},{configName:"tailwindcss",dependencies:["tailwindcss"]},{configName:"testing-library",dependencies:["@testing-library/dom","eslint-plugin-testing-library"]},{configName:"testing-library",dependencies:["react","@testing-library/react","eslint-plugin-testing-library"]},{configName:"typescript",dependencies:["typescript"]},{configName:"etc",dependencies:["typescript"]},{configName:"typescript-sort-keys",dependencies:["typescript","eslint-plugin-typescript-sort-keys"]},{configName:"vitest",dependencies:["vitest","eslint-plugin-vitest"]},{configName:"zod",dependencies:["zod","eslint-plugin-zod"]},{configName:"ava",dependencies:["ava","eslint-plugin-ava"]},{configName:"storybook",dependencies:["storybook","eslint-plugin-storybook"]},{configName:"playwright",dependencies:["playwright","eslint-plugin-playwright"]},{configName:"tanstack-query",dependencies:["@tanstack/react-query","@tanstack/eslint-plugin-query"]}],u=[...E],f={},y={};packageJsonUtils.pkg&&(y=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);L.forEach(e=>{let{dependencies:n,configName:o}=e;if(y?.plugin?.[o]!==!1){let r=[];n.forEach(s=>{(packageJsonUtils.hasDependency(s)||packageJsonUtils.hasDevDependency(s))&&r.push(s);}),r.length===n.length?u.push(o):(f[o]={},n.forEach(s=>{f[o][s]=packageJsonUtils.hasDependency(s)||packageJsonUtils.hasDevDependency(s);}));}});var b=v,l=u,h=f;var R={"unicorn/prefer-spread":{"5.0.0":"off"},"unicorn/no-new-buffer":{"5.10.0":"off"},"prefer-rest-params":{"6.0.0":"off"},"prefer-destructuring":{"6.0.0":"off"},"promise/prefer-await-to-then":{"7.6.0":"off"},"prefer-object-spread":{"8.3.0":"off"},"n/prefer-global/url-search-params":{"10.0.0":"off"},"n/prefer-global/url":{"10.0.0":"off"},"no-useless-catch":{"10.0.0":"off"},"prefer-named-capture-group":{"10.0.0":"off"},"n/prefer-global/text-encoder":{"11.0.0":"off"},"n/prefer-global/text-decoder":{"11.0.0":"off"},"unicorn/prefer-flat-map":{"11.0.0":"off"},"n/prefer-promises/dns":{"11.14.0":"off"},"n/prefer-promises/fs":{"11.14.0":"off"}},j=R;if(!global.hasAnolilabEsLintConfigLoaded){process.env.DEBUG&&(chunkYMWD4DNM_js.b(`
14
14
  @anolilab/eslint-config loaded the following plugins:
15
15
  `),chunkYMWD4DNM_js.b(" @rushstack/eslint-plugin-security"),["compat","eslint-comments","i","promise","simple-import-sort","unicorn","no-secrets","sonarjs","json","jsonc","markdown","toml","yml","es",...l].forEach(n=>chunkYMWD4DNM_js.a(n)));let e=!1;Object.entries(h).forEach(([n,o])=>{Object.values(o).some(Boolean)&&(e=!0,chunkYMWD4DNM_js.b(`
16
16
  Your package.json container dependencies for the "${n}" eslint-plugin, please add the following dependencies with your chosen package manager to enable this plugin:`),Object.entries(o).forEach(([s,_])=>{_||chunkYMWD4DNM_js.b(` ${s}`);}));}),e&&(chunkYMWD4DNM_js.b(`
17
17
  To disable this message, add the following to your package.json:`),chunkYMWD4DNM_js.b(` "anolilab": { "eslint-config": { plugin: { "plugin-name": false } } }
18
- `)),chunkYMWD4DNM_js.b('To disable all logging, add the following to your eslint command call "NO_LOGS=true eslint ..."'),global.hasAnolilabEsLintConfigLoaded=!0;}var a={},c;packageJsonUtils.pkg?.engines?.node&&(c=packageJsonUtils.pkg.engines.node);var N={};packageJsonUtils.pkg&&(N=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);Object.entries(j).forEach(([e,n])=>{Object.keys(n).sort(x__default.default.rcompare).forEach(o=>{c&&x__default.default.intersects(c,`<${o}`)&&(a[e]=n[o]);});});packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigPrettier||(global.hasAnolilabEsLintConfigPrettier=!0,N?.info_on_disabling_prettier_conflict_rule!==!1&&chunkYMWD4DNM_js.b(`
18
+ `)),chunkYMWD4DNM_js.b('To disable all logging, add the following to your eslint command call "NO_LOGS=true eslint ..."'),global.hasAnolilabEsLintConfigLoaded=!0;}var a={},c;packageJsonUtils.pkg?.engines?.node&&(c=packageJsonUtils.pkg.engines.node);var x={};packageJsonUtils.pkg&&(x=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);Object.entries(j).forEach(([e,n])=>{Object.keys(n).sort(N__default.default.rcompare).forEach(o=>{c&&N__default.default.intersects(c,`<${o}`)&&(a[e]=n[o]);});});packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigPrettier||(global.hasAnolilabEsLintConfigPrettier=!0,x?.info_on_disabling_prettier_conflict_rule!==!1&&chunkYMWD4DNM_js.b(`
19
19
  Found prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier`)),a={...a,curly:0,"lines-around-comment":0,"max-len":0,"no-confusing-arrow":0,"no-mixed-operators":0,"no-tabs":0,"no-unexpected-multiline":0,quotes:0,"array-bracket-newline":"off","array-bracket-spacing":"off","array-element-newline":"off","arrow-parens":"off","arrow-spacing":"off","block-spacing":"off","brace-style":"off","comma-dangle":"off","comma-spacing":"off","comma-style":"off","computed-property-spacing":"off","dot-location":"off","eol-last":"off","func-call-spacing":"off","function-call-argument-newline":"off","function-paren-newline":"off","generator-star-spacing":"off","implicit-arrow-linebreak":"off",indent:"off","jsx-quotes":"off","key-spacing":"off","keyword-spacing":"off","linebreak-style":"off","multiline-ternary":"off","newline-per-chained-call":"off","new-parens":"off","no-extra-parens":"off","no-extra-semi":"off","no-floating-decimal":"off","no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-trailing-spaces":"off","no-whitespace-before-property":"off","nonblock-statement-body-position":"off","object-curly-newline":"off","object-curly-spacing":"off","object-property-newline":"off","one-var-declaration-per-line":"off","operator-linebreak":"off","padded-blocks":"off","quote-props":"off","rest-spread-spacing":"off",semi:"off","semi-spacing":"off","semi-style":"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off","switch-colon-spacing":"off","template-curly-spacing":"off","template-tag-spacing":"off","unicode-bom":"off","wrap-iife":"off","wrap-regex":"off","yield-star-spacing":"off"});var C={root:!0,parser:"",extends:[...b.map(e=>path.join(__dirname,`./config/${e}.${packageJsonUtils.packageIsTypeModule?"m":""}js`)),...l.map(e=>path.join(__dirname,`./config/plugins/${e}.${packageJsonUtils.packageIsTypeModule?"m":""}js`))],rules:{...a},overrides:[{files:["**/migrations/*.{js,ts}"],rules:{"filenames/match-regex":"off"}},{files:["**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}","**/test/*.{js,ts,tsx}"],rules:{"no-magic-numbers":"off","sonarjs/no-duplicate-string":"off"}}],ignorePatterns:["!.*",".git/","node_modules/","bower_components/","jspm_packages/",".npm/","lib-cov/","coverage/",".nyc_output/",".cache/","build/","dist/","tmp/","**/*.min.*","*.d.ts"]},I=C;
20
20
 
21
21
  module.exports = I;