@anolilab/eslint-config 6.1.7 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +35 -18
  3. package/dist/chunk-5IW32NSH.mjs +5 -0
  4. package/dist/chunk-5IW32NSH.mjs.map +1 -0
  5. package/dist/{chunk-6E2RGUNG.js → chunk-5S3UQ6WJ.js} +1 -1
  6. package/dist/{chunk-6E2RGUNG.js.map → chunk-5S3UQ6WJ.js.map} +1 -1
  7. package/dist/{chunk-GPLU2T35.mjs → chunk-5XOTKQJY.mjs} +1 -1
  8. package/dist/{chunk-GPLU2T35.mjs.map → chunk-5XOTKQJY.mjs.map} +1 -1
  9. package/dist/{chunk-72JA2E3L.js → chunk-EOABR2FR.js} +1 -1
  10. package/dist/{chunk-72JA2E3L.js.map → chunk-EOABR2FR.js.map} +1 -1
  11. package/dist/{chunk-NH6CJJWC.mjs → chunk-KNKUBOMM.mjs} +1 -1
  12. package/dist/chunk-KNKUBOMM.mjs.map +1 -0
  13. package/dist/{chunk-ZRBLJAQI.js → chunk-MLDIWITS.js} +1 -1
  14. package/dist/chunk-MLDIWITS.js.map +1 -0
  15. package/dist/{chunk-WDMF75TJ.mjs → chunk-U5JQC7EA.mjs} +1 -1
  16. package/dist/{chunk-WDMF75TJ.mjs.map → chunk-U5JQC7EA.mjs.map} +1 -1
  17. package/dist/chunk-VJL7NPM4.js +8 -0
  18. package/dist/chunk-VJL7NPM4.js.map +1 -0
  19. package/dist/config/best-practices.js +2 -2
  20. package/dist/config/best-practices.mjs +1 -1
  21. package/dist/config/plugins/antfu.js +2 -2
  22. package/dist/config/plugins/antfu.js.map +1 -1
  23. package/dist/config/plugins/antfu.mjs +1 -1
  24. package/dist/config/plugins/antfu.mjs.map +1 -1
  25. package/dist/config/plugins/array-func.js +2 -2
  26. package/dist/config/plugins/array-func.js.map +1 -1
  27. package/dist/config/plugins/array-func.mjs +1 -1
  28. package/dist/config/plugins/array-func.mjs.map +1 -1
  29. package/dist/config/plugins/babel.js +4 -4
  30. package/dist/config/plugins/babel.js.map +1 -1
  31. package/dist/config/plugins/babel.mjs +3 -3
  32. package/dist/config/plugins/babel.mjs.map +1 -1
  33. package/dist/config/plugins/html.js +2 -2
  34. package/dist/config/plugins/html.mjs +1 -1
  35. package/dist/config/plugins/import.js +2 -2
  36. package/dist/config/plugins/import.mjs +1 -1
  37. package/dist/config/plugins/jest.js +1 -1
  38. package/dist/config/plugins/jest.js.map +1 -1
  39. package/dist/config/plugins/jest.mjs +1 -1
  40. package/dist/config/plugins/jest.mjs.map +1 -1
  41. package/dist/config/plugins/mdx.js +2 -2
  42. package/dist/config/plugins/mdx.js.map +1 -1
  43. package/dist/config/plugins/mdx.mjs +2 -2
  44. package/dist/config/plugins/mdx.mjs.map +1 -1
  45. package/dist/config/plugins/react.js +5 -6
  46. package/dist/config/plugins/react.js.map +1 -1
  47. package/dist/config/plugins/react.mjs +4 -5
  48. package/dist/config/plugins/react.mjs.map +1 -1
  49. package/dist/config/plugins/regexp.js +9 -0
  50. package/dist/config/plugins/regexp.js.map +1 -0
  51. package/dist/config/plugins/regexp.mjs +7 -0
  52. package/dist/config/plugins/regexp.mjs.map +1 -0
  53. package/dist/config/plugins/sonarjs.js +4 -2
  54. package/dist/config/plugins/sonarjs.js.map +1 -1
  55. package/dist/config/plugins/sonarjs.mjs +4 -2
  56. package/dist/config/plugins/sonarjs.mjs.map +1 -1
  57. package/dist/config/plugins/tailwindcss.js +4 -2
  58. package/dist/config/plugins/tailwindcss.js.map +1 -1
  59. package/dist/config/plugins/tailwindcss.mjs +4 -2
  60. package/dist/config/plugins/tailwindcss.mjs.map +1 -1
  61. package/dist/config/plugins/testing-library.js +3 -2
  62. package/dist/config/plugins/testing-library.js.map +1 -1
  63. package/dist/config/plugins/testing-library.mjs +4 -3
  64. package/dist/config/plugins/testing-library.mjs.map +1 -1
  65. package/dist/config/plugins/tsdoc.js +2 -2
  66. package/dist/config/plugins/tsdoc.js.map +1 -1
  67. package/dist/config/plugins/tsdoc.mjs +1 -1
  68. package/dist/config/plugins/tsdoc.mjs.map +1 -1
  69. package/dist/config/plugins/typescript.js +4 -4
  70. package/dist/config/plugins/typescript.mjs +3 -3
  71. package/dist/config/plugins/unicorn.js +2 -2
  72. package/dist/config/plugins/unicorn.mjs +1 -1
  73. package/dist/config/style.js +2 -2
  74. package/dist/config/style.mjs +1 -1
  75. package/dist/index.js +2 -2
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.mjs +2 -2
  78. package/dist/index.mjs.map +1 -1
  79. package/dist/typescript-type-checking.js +3 -3
  80. package/dist/typescript-type-checking.js.map +1 -1
  81. package/dist/typescript-type-checking.mjs +2 -2
  82. package/dist/typescript-type-checking.mjs.map +1 -1
  83. package/package.json +6 -6
  84. package/dist/chunk-GWJVUZVN.js +0 -7
  85. package/dist/chunk-GWJVUZVN.js.map +0 -1
  86. package/dist/chunk-NH6CJJWC.mjs.map +0 -1
  87. package/dist/chunk-WP674HT2.mjs +0 -5
  88. package/dist/chunk-WP674HT2.mjs.map +0 -1
  89. package/dist/chunk-ZRBLJAQI.js.map +0 -1
  90. package/dist/config/plugins/optimize-regex.js +0 -7
  91. package/dist/config/plugins/optimize-regex.js.map +0 -1
  92. package/dist/config/plugins/optimize-regex.mjs +0 -5
  93. package/dist/config/plugins/optimize-regex.mjs.map +0 -1
  94. /package/dist/config/plugins/{optimize-regex.d.ts → regexp.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/style.ts"],"names":["pkg","anolilabEslintConfig","indent","config","style_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAIC,EAA6D,CAAC,EAE9DD,IAEAC,EAAuBD,GAAM,WAAc,eAAe,GAG9D,IAAIE,EAAiB,EAErB,GAAID,GAAuB,OAAW,CAClC,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI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GnE,YAAa,MAGb,sBAAuB,QAIvB,8BAA+B,CAC3B,QACA,CACI,UAAW,SACX,MAAO,QACP,WAAY,QAChB,CACJ,EAGA,kBAAmB,CAAC,QAAS,OAAO,EAGpC,kBAAmB,QAInB,kBAAmB,CACf,QACA,CACI,MAAO,GACP,SAAU,GACV,UAAW,CAAC,CAChB,CACJ,EAIA,iBAAkB,CACd,QACA,SACA,CACI,KAAM,CACF,WAAY,CAAC,IAAK,IAAK,GAAG,EAC1B,QAAS,CAAC,IAAK,IAAK,GAAG,CAC3B,EACA,MAAO,CACH,WAAY,CAAC,IAAK,GAAG,EACrB,QAAS,CAAC,IAAK,IAAK,IAAK,IAAI,EAC7B,SAAU,EACd,CACJ,CACJ,EAIA,uBAAwB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,KAClB,CACJ,EAEOE,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet anolilabEslintConfig: { [key: string]: false | undefined } = {};\n\nif (pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n anolilabEslintConfig = pkg?.[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nlet indent: number = 4;\n\nif (anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n indent = Number(anolilabEslintConfig[\"indent\"]);\n}\n\nconst config: Linter.Config = {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { properties: \"never\", ignoreDestructuring: false }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n line: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n block: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n arrays: \"always-multiline\",\n objects: \"always-multiline\",\n imports: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { before: false, after: true }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n NewExpression: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n includeCommonJSModuleExports: false,\n considerPropertyDescriptor: true,\n },\n ],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n SwitchCase: 1,\n VariableDeclarator: 1,\n outerIIFEBody: 1,\n // MemberExpression: null,\n FunctionDeclaration: {\n parameters: 1,\n body: 1,\n },\n FunctionExpression: {\n parameters: 1,\n body: 1,\n },\n CallExpression: {\n arguments: 1,\n },\n ArrayExpression: 1,\n ObjectExpression: 1,\n ImportDeclaration: 1,\n flatTernaryExpressions: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n ignoreComments: false,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { beforeColon: false, afterColon: true }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n before: true,\n after: true,\n overrides: {\n return: { after: true },\n throw: { after: true },\n case: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n // TODO: enable?\n \"line-comment-position\": [\n \"off\",\n {\n position: \"above\",\n ignorePattern: \"\",\n applyDefaultPatterns: true,\n },\n ],\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n before: \"always\",\n after: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreUrls: true,\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n IIFEs: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n newIsCap: true,\n newIsCapExceptions: [],\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n allowSamePrecedence: false,\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n selector: \"ForInStatement\",\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n },\n {\n selector: \"ForOfStatement\",\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n },\n {\n selector: \"LabeledStatement\",\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n },\n {\n selector: \"WithStatement\",\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n skipBlankLines: false,\n ignoreComments: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\"],\n allowAfterThis: false,\n allowAfterSuper: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce line breaks between braces\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ObjectExpression: { minProperties: 4, multiline: true, consistent: true },\n ObjectPattern: { minProperties: 4, multiline: true, consistent: true },\n ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n },\n ],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, unnecessary: true, numbers: false }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { before: false, after: true }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": [\"off\", \"asc\", { caseSensitive: false, natural: true }],\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n named: \"never\",\n asyncArrow: \"always\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n words: true,\n nonwords: false,\n overrides: {},\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n block: {\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n balanced: true,\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n },\n};\n\nexport default config;\n"]}
@@ -6,4 +6,4 @@ var e={};packageJsonUtils.pkg&&(e=packageJsonUtils.pkg?.anolilab?.["eslint-confi
6
6
 
7
7
  exports.a = a;
8
8
  //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-ZRBLJAQI.js.map
9
+ //# sourceMappingURL=chunk-MLDIWITS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/style.ts"],"names":["pkg","anolilabEslintConfig","indent","config","style_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAIC,EAA6D,CAAC,EAE9DD,IAEA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OAAQ,GAAO,MAAO,EAAK,CAAC,EAIxD,aAAc,CAAC,QAAS,MAAM,EAG9B,YAAa,CAAC,MAAO,MAAO,CAAE,cAAe,GAAO,QAAS,EAAK,CAAC,EAGnE,YAAa,MAGb,sBAAuB,QAIvB,8BAA+B,CAC3B,QACA,CACI,UAAW,SACX,MAAO,QACP,WAAY,QAChB,CACJ,EAGA,kBAAmB,CAAC,QAAS,OAAO,EAGpC,kBAAmB,QAInB,kBAAmB,CACf,QACA,CACI,MAAO,GACP,SAAU,GACV,UAAW,CAAC,CAChB,CACJ,EAIA,iBAAkB,CACd,QACA,SACA,CACI,KAAM,CACF,WAAY,CAAC,IAAK,IAAK,GAAG,EAC1B,QAAS,CAAC,IAAK,IAAK,GAAG,CAC3B,EACA,MAAO,CACH,WAAY,CAAC,IAAK,GAAG,EACrB,QAAS,CAAC,IAAK,IAAK,IAAK,IAAI,EAC7B,SAAU,EACd,CACJ,CACJ,EAIA,uBAAwB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,KAClB,CACJ,EAEOE,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet anolilabEslintConfig: { [key: string]: false | undefined } = {};\n\nif (pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n anolilabEslintConfig = pkg?.[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nlet indent: number = 4;\n\nif (anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n indent = Number(anolilabEslintConfig[\"indent\"]);\n}\n\nconst config: Linter.Config = {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { properties: \"never\", ignoreDestructuring: false }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n line: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n block: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n arrays: \"always-multiline\",\n objects: \"always-multiline\",\n imports: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { before: false, after: true }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n NewExpression: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n includeCommonJSModuleExports: false,\n considerPropertyDescriptor: true,\n },\n ],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n SwitchCase: 1,\n VariableDeclarator: 1,\n outerIIFEBody: 1,\n // MemberExpression: null,\n FunctionDeclaration: {\n parameters: 1,\n body: 1,\n },\n FunctionExpression: {\n parameters: 1,\n body: 1,\n },\n CallExpression: {\n arguments: 1,\n },\n ArrayExpression: 1,\n ObjectExpression: 1,\n ImportDeclaration: 1,\n flatTernaryExpressions: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n ignoreComments: false,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { beforeColon: false, afterColon: true }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n before: true,\n after: true,\n overrides: {\n return: { after: true },\n throw: { after: true },\n case: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n // TODO: enable?\n \"line-comment-position\": [\n \"off\",\n {\n position: \"above\",\n ignorePattern: \"\",\n applyDefaultPatterns: true,\n },\n ],\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n before: \"always\",\n after: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreUrls: true,\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n IIFEs: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n newIsCap: true,\n newIsCapExceptions: [],\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n allowSamePrecedence: false,\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n selector: \"ForInStatement\",\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n },\n {\n selector: \"ForOfStatement\",\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n },\n {\n selector: \"LabeledStatement\",\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n },\n {\n selector: \"WithStatement\",\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n skipBlankLines: false,\n ignoreComments: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\"],\n allowAfterThis: false,\n allowAfterSuper: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce line breaks between braces\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ObjectExpression: { minProperties: 4, multiline: true, consistent: true },\n ObjectPattern: { minProperties: 4, multiline: true, consistent: true },\n ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n },\n ],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, unnecessary: true, numbers: false }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { before: false, after: true }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": [\"off\", \"asc\", { caseSensitive: false, natural: true }],\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n named: \"never\",\n asyncArrow: \"always\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n words: true,\n nonwords: false,\n overrides: {},\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n block: {\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n balanced: true,\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n },\n};\n\nexport default config;\n"]}
@@ -2,4 +2,4 @@ var e={rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImpl
2
2
 
3
3
  export { r as a };
4
4
  //# sourceMappingURL=out.js.map
5
- //# sourceMappingURL=chunk-WDMF75TJ.mjs.map
5
+ //# sourceMappingURL=chunk-U5JQC7EA.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/config/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AAO,EACX,CACJ,EAGA,kBAAmB,QAGnB,eAAgB,QAGhB,mBAAoB,QAIpB,+BAAgC,MAGhC,wBAAyB,CACrB,QACA,CACI,kBAAmB,GACnB,aAAc,GACd,qBAAsB,EAC1B,CACJ,EAIA,mBAAoB,QAGpB,kBAAmB,MAInB,mBAAoB,QAIpB,oBAAqB,QAIrB,oBAAqB,QAIrB,oBAAqB,QAIrB,UAAW,QAGX,sBAAuB,CACnB,MACA,CACI,MAAO,CAAC,OAAQ,QAAS,MAAO,OAAO,EACvC,SAAU,OACd,CACJ,EAGA,UAAW,QAIX,+BAAgC,CAAC,QAAS,CAAE,iBAAkB,EAAK,CAAC,EAIpE,6BAA8B,MAG9B,wBAAyB,QAGzB,MAAO,QAIP,gBAAiB,MAIjB,yBAA0B,MAG1B,cAAe,QAIf,YAAa,CAAC,QAAS,UAAW,CAAE,yBAA0B,EAAM,CAAC,EAGrE,KAAM,QAEN,eAAgB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,CACrD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n rules: {\n // enforces getter/setter pairs in objects\n \"accessor-pairs\": \"off\",\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n \"array-callback-return\": [\"error\", { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n \"block-scoped-var\": \"error\",\n\n // specify the maximum cyclomatic complexity allowed in a program\n complexity: [\"off\", 11],\n\n // enforce that class methods use \"this\"\n // https://eslint.org/docs/rules/class-methods-use-this\n \"class-methods-use-this\": [\n \"error\",\n {\n exceptMethods: [],\n },\n ],\n\n // require return statements to either always or never specify values\n \"consistent-return\": \"error\",\n\n // specify curly brace conventions for all control statements\n curly: [\"error\", \"multi-line\"], // multiline\n\n // require default case in switch statements\n \"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n \"default-case-last\": \"error\",\n\n // https://eslint.org/docs/rules/default-param-last\n \"default-param-last\": \"error\",\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n \"dot-location\": [\"error\", \"property\"],\n\n // require the use of === and !==\n // https://eslint.org/docs/rules/eqeqeq\n eqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"error\",\n\n // make sure for-in loops have an if statement\n \"guard-for-in\": \"error\",\n\n // enforce a maximum number of classes per file\n // https://eslint.org/docs/rules/max-classes-per-file\n \"max-classes-per-file\": [\"error\", 1],\n\n // disallow the use of alert, confirm, and prompt\n \"no-alert\": \"error\",\n\n // disallow use of arguments.caller or arguments.callee\n \"no-caller\": \"error\",\n\n // disallow lexical declarations in case/default clauses\n // https://eslint.org/docs/rules/no-case-declarations.html\n \"no-case-declarations\": \"error\",\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-constructor-return\n \"no-constructor-return\": \"error\",\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-div-regex\n \"no-div-regex\": \"off\",\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-else-return\n \"no-else-return\": [\"error\", { allowElseIf: false }],\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-empty-function\n \"no-empty-function\": [\n \"error\",\n {\n allow: [\"arrowFunctions\", \"functions\", \"methods\"],\n },\n ],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-pattern\n \"no-empty-pattern\": \"error\",\n\n // Disallow empty static blocks\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n \"no-empty-static-block\": \"error\",\n\n // disallow comparisons to null without a type-checking operator\n \"no-eq-null\": \"off\",\n\n // disallow use of eval()\n \"no-eval\": \"error\",\n\n // disallow adding to native types\n \"no-extend-native\": \"error\",\n\n // disallow unnecessary function binding\n \"no-extra-bind\": \"error\",\n\n // disallow Unnecessary Labels\n // https://eslint.org/docs/rules/no-extra-label\n \"no-extra-label\": \"error\",\n\n // disallow fallthrough of case statements\n \"no-fallthrough\": \"error\",\n\n // disallow the use of leading or trailing decimal points in numeric literals\n \"no-floating-decimal\": \"error\",\n\n // disallow reassignments of native objects or read-only globals\n // https://eslint.org/docs/rules/no-global-assign\n \"no-global-assign\": [\"error\", { exceptions: [] }],\n // deprecated in favor of no-global-assign\n \"no-native-reassign\": \"off\",\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n \"no-implicit-coercion\": [\n \"off\",\n {\n boolean: false,\n number: true,\n string: true,\n allow: [],\n },\n ],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n \"no-implicit-globals\": \"off\",\n\n // disallow use of eval()-like methods\n \"no-implied-eval\": \"error\",\n\n // disallow this keywords outside of classes or class-like objects\n \"no-invalid-this\": \"off\",\n\n // disallow usage of __iterator__ property\n \"no-iterator\": \"error\",\n\n // disallow use of labels for anything other than loops and switches\n \"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n \"no-lone-blocks\": \"error\",\n\n // disallow creation of functions within loops\n \"no-loop-func\": \"error\",\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n \"no-magic-numbers\": [\n \"off\",\n {\n ignore: [],\n ignoreArrayIndexes: true,\n enforceConst: true,\n detectObjects: false,\n },\n ],\n\n // disallow use of multiple spaces\n \"no-multi-spaces\": [\n \"error\",\n {\n ignoreEOLComments: false,\n },\n ],\n\n // disallow use of multiline strings\n \"no-multi-str\": \"error\",\n\n // disallow use of new operator when not part of the assignment or comparison\n \"no-new\": \"error\",\n\n // disallow use of new operator for Function object\n \"no-new-func\": \"error\",\n\n // disallows creating new instances of String, Number, and Boolean\n \"no-new-wrappers\": \"error\",\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n \"no-nonoctal-decimal-escape\": \"error\",\n\n // disallow use of (old style) octal literals\n \"no-octal\": \"error\",\n\n // disallow use of octal escape sequences in string literals, such as\n // var foo = 'Copyright \\251';\n \"no-octal-escape\": \"error\",\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n \"no-param-reassign\": [\n \"error\",\n {\n props: true,\n ignorePropertyModificationsFor: [\n \"acc\", // for reduce accumulators\n \"accumulator\", // for reduce accumulators\n \"e\", // for e.returnvalue\n \"ctx\", // for Koa routing\n \"context\", // for Koa routing\n \"req\", // for Express requests\n \"request\", // for Express requests\n \"res\", // for Express responses\n \"response\", // for Express responses\n \"$scope\", // for Angular 1 scopes\n \"staticContext\", // for ReactRouter context\n ],\n },\n ],\n\n // disallow usage of __proto__ property\n \"no-proto\": \"error\",\n\n // disallow declaring the same variable more than once\n \"no-redeclare\": \"error\",\n\n // disallow certain object properties\n // https://eslint.org/docs/rules/no-restricted-properties\n \"no-restricted-properties\": [\n \"error\",\n {\n object: \"arguments\",\n property: \"callee\",\n message: \"arguments.callee is deprecated\",\n },\n {\n object: \"global\",\n property: \"isFinite\",\n // eslint-disable-next-line sonarjs/no-duplicate-string\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"self\",\n property: \"isFinite\",\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"window\",\n property: \"isFinite\",\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"global\",\n property: \"isNaN\",\n // eslint-disable-next-line sonarjs/no-duplicate-string\n message: \"Please use Number.isNaN instead\",\n },\n {\n object: \"self\",\n property: \"isNaN\",\n message: \"Please use Number.isNaN instead\",\n },\n {\n object: \"window\",\n property: \"isNaN\",\n message: \"Please use Number.isNaN instead\",\n },\n {\n property: \"__defineGetter__\",\n message: \"Please use Object.defineProperty instead.\",\n },\n {\n property: \"__defineSetter__\",\n message: \"Please use Object.defineProperty instead.\",\n },\n {\n object: \"Math\",\n property: \"pow\",\n message: \"Use the exponentiation operator (**) instead.\",\n },\n {\n object: \"globalThis\",\n property: \"isNaN\",\n message: \"Use `Number.isNaN` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"isFinite\",\n message: \"Use `Number.isFinite` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"parseFloat\",\n message: \"Use `Number.parseFloat` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"parseInt\",\n message: \"Use `Number.parseInt` instead.\",\n },\n {\n object: \"window\",\n property: \"parseFloat\",\n message: \"Use `Number.parseFloat` instead.\",\n },\n {\n object: \"window\",\n property: \"parseInt\",\n message: \"Use `Number.parseInt` instead.\",\n },\n {\n property: \"__proto__\",\n message: \"Use `Object.getPrototypeOf` instead.\",\n },\n {\n property: \"__lookupGetter__\",\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n },\n {\n property: \"__lookupSetter__\",\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n },\n ],\n\n // disallow use of assignment in return statement\n \"no-return-assign\": [\"error\", \"always\"],\n\n // disallow redundant `return await`\n \"no-return-await\": \"error\",\n\n // disallow use of `javascript:` urls.\n \"no-script-url\": \"error\",\n\n // disallow self assignment\n // https://eslint.org/docs/rules/no-self-assign\n \"no-self-assign\": [\n \"error\",\n {\n props: true,\n },\n ],\n\n // disallow comparisons where both sides are exactly the same\n \"no-self-compare\": \"error\",\n\n // disallow use of comma operator\n \"no-sequences\": \"error\",\n\n // restrict what can be thrown as an exception\n \"no-throw-literal\": \"error\",\n\n // disallow unmodified conditions of loops\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"off\",\n\n // disallow usage of expressions in statement position\n \"no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: false,\n allowTernary: false,\n allowTaggedTemplates: false,\n },\n ],\n\n // disallow unused labels\n // https://eslint.org/docs/rules/no-unused-labels\n \"no-unused-labels\": \"error\",\n\n // disallow unnecessary .call() and .apply()\n \"no-useless-call\": \"off\",\n\n // Disallow unnecessary catch clauses\n // https://eslint.org/docs/rules/no-useless-catch\n \"no-useless-catch\": \"error\",\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-concat\n \"no-useless-concat\": \"error\",\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-escape\n \"no-useless-escape\": \"error\",\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-return\n \"no-useless-return\": \"error\",\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-void\n \"no-void\": \"error\",\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n \"no-warning-comments\": [\n \"off\",\n {\n terms: [\"todo\", \"fixme\", \"xxx\", \"@todo\"],\n location: \"start\",\n },\n ],\n\n // disallow use of the with statement\n \"no-with\": \"error\",\n\n // require using Error objects as Promise rejection reasons\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n \"prefer-promise-reject-errors\": [\"error\", { allowEmptyReject: true }],\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n \"prefer-named-capture-group\": \"off\",\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n \"prefer-regex-literals\": \"error\",\n\n // require use of the second argument for parseInt()\n radix: \"error\",\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // https://eslint.org/docs/rules/require-await\n \"require-await\": \"off\",\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-unicode-regexp\n \"require-unicode-regexp\": \"off\",\n\n // requires to declare all vars on top of their containing scope\n \"vars-on-top\": \"error\",\n\n // require immediate function invocation to be wrapped in parentheses\n // https://eslint.org/docs/rules/wrap-iife.html\n \"wrap-iife\": [\"error\", \"outside\", { functionPrototypeMethods: false }],\n\n // require or disallow Yoda conditions\n yoda: \"error\",\n // encourages use of dot notation whenever possible\n \"dot-notation\": [\"error\", { allowKeywords: true }],\n },\n};\n\nexport default config;\n"]}
1
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AkB,CACd,QACA,CACI,MAAO,EACX,CACJ,EAGA,kBAAmB,QAGnB,eAAgB,QAGhB,mBAAoB,QAIpB,+BAAgC,MAGhC,wBAAyB,CACrB,QACA,CACI,kBAAmB,GACnB,aAAc,GACd,qBAAsB,EAC1B,CACJ,EAIA,mBAAoB,QAGpB,kBAAmB,MAInB,mBAAoB,QAIpB,oBAAqB,QAIrB,oBAAqB,QAIrB,oBAAqB,QAIrB,UAAW,QAGX,sBAAuB,CACnB,MACA,CACI,MAAO,CAAC,OAAQ,QAAS,MAAO,OAAO,EACvC,SAAU,OACd,CACJ,EAGA,UAAW,QAIX,+BAAgC,CAAC,QAAS,CAAE,iBAAkB,EAAK,CAAC,EAIpE,6BAA8B,MAG9B,wBAAyB,QAGzB,MAAO,QAIP,gBAAiB,MAIjB,yBAA0B,MAG1B,cAAe,QAIf,YAAa,CAAC,QAAS,UAAW,CAAE,yBAA0B,EAAM,CAAC,EAGrE,KAAM,QAEN,eAAgB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,CACrD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n rules: {\n // enforces getter/setter pairs in objects\n \"accessor-pairs\": \"off\",\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n \"array-callback-return\": [\"error\", { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n \"block-scoped-var\": \"error\",\n\n // specify the maximum cyclomatic complexity allowed in a program\n complexity: [\"off\", 11],\n\n // enforce that class methods use \"this\"\n // https://eslint.org/docs/rules/class-methods-use-this\n \"class-methods-use-this\": [\n \"error\",\n {\n exceptMethods: [],\n },\n ],\n\n // require return statements to either always or never specify values\n \"consistent-return\": \"error\",\n\n // specify curly brace conventions for all control statements\n curly: [\"error\", \"multi-line\"], // multiline\n\n // require default case in switch statements\n \"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n \"default-case-last\": \"error\",\n\n // https://eslint.org/docs/rules/default-param-last\n \"default-param-last\": \"error\",\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n \"dot-location\": [\"error\", \"property\"],\n\n // require the use of === and !==\n // https://eslint.org/docs/rules/eqeqeq\n eqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"error\",\n\n // make sure for-in loops have an if statement\n \"guard-for-in\": \"error\",\n\n // enforce a maximum number of classes per file\n // https://eslint.org/docs/rules/max-classes-per-file\n \"max-classes-per-file\": [\"error\", 1],\n\n // disallow the use of alert, confirm, and prompt\n \"no-alert\": \"error\",\n\n // disallow use of arguments.caller or arguments.callee\n \"no-caller\": \"error\",\n\n // disallow lexical declarations in case/default clauses\n // https://eslint.org/docs/rules/no-case-declarations.html\n \"no-case-declarations\": \"error\",\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-constructor-return\n \"no-constructor-return\": \"error\",\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-div-regex\n \"no-div-regex\": \"off\",\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-else-return\n \"no-else-return\": [\"error\", { allowElseIf: false }],\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-empty-function\n \"no-empty-function\": [\n \"error\",\n {\n allow: [\"arrowFunctions\", \"functions\", \"methods\"],\n },\n ],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-pattern\n \"no-empty-pattern\": \"error\",\n\n // Disallow empty static blocks\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n \"no-empty-static-block\": \"error\",\n\n // disallow comparisons to null without a type-checking operator\n \"no-eq-null\": \"off\",\n\n // disallow use of eval()\n \"no-eval\": \"error\",\n\n // disallow adding to native types\n \"no-extend-native\": \"error\",\n\n // disallow unnecessary function binding\n \"no-extra-bind\": \"error\",\n\n // disallow Unnecessary Labels\n // https://eslint.org/docs/rules/no-extra-label\n \"no-extra-label\": \"error\",\n\n // disallow fallthrough of case statements\n \"no-fallthrough\": \"error\",\n\n // disallow the use of leading or trailing decimal points in numeric literals\n \"no-floating-decimal\": \"error\",\n\n // disallow reassignments of native objects or read-only globals\n // https://eslint.org/docs/rules/no-global-assign\n \"no-global-assign\": [\"error\", { exceptions: [] }],\n // deprecated in favor of no-global-assign\n \"no-native-reassign\": \"off\",\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n \"no-implicit-coercion\": [\n \"off\",\n {\n boolean: false,\n number: true,\n string: true,\n allow: [],\n },\n ],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n \"no-implicit-globals\": \"off\",\n\n // disallow use of eval()-like methods\n \"no-implied-eval\": \"error\",\n\n // disallow this keywords outside of classes or class-like objects\n \"no-invalid-this\": \"off\",\n\n // disallow usage of __iterator__ property\n \"no-iterator\": \"error\",\n\n // disallow use of labels for anything other than loops and switches\n \"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n \"no-lone-blocks\": \"error\",\n\n // disallow creation of functions within loops\n \"no-loop-func\": \"error\",\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n \"no-magic-numbers\": [\n \"off\",\n {\n ignore: [],\n ignoreArrayIndexes: true,\n enforceConst: true,\n detectObjects: false,\n },\n ],\n\n // disallow use of multiple spaces\n \"no-multi-spaces\": [\n \"error\",\n {\n ignoreEOLComments: false,\n },\n ],\n\n // disallow use of multiline strings\n \"no-multi-str\": \"error\",\n\n // disallow use of new operator when not part of the assignment or comparison\n \"no-new\": \"error\",\n\n // disallow use of new operator for Function object\n \"no-new-func\": \"error\",\n\n // disallows creating new instances of String, Number, and Boolean\n \"no-new-wrappers\": \"error\",\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n \"no-nonoctal-decimal-escape\": \"error\",\n\n // disallow use of (old style) octal literals\n \"no-octal\": \"error\",\n\n // disallow use of octal escape sequences in string literals, such as\n // var foo = 'Copyright \\251';\n \"no-octal-escape\": \"error\",\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n \"no-param-reassign\": [\n \"error\",\n {\n props: true,\n ignorePropertyModificationsFor: [\n \"acc\", // for reduce accumulators\n \"accumulator\", // for reduce accumulators\n \"e\", // for e.returnvalue\n \"ctx\", // for Koa routing\n \"context\", // for Koa routing\n \"req\", // for Express requests\n \"request\", // for Express requests\n \"res\", // for Express responses\n \"response\", // for Express responses\n \"$scope\", // for Angular 1 scopes\n \"staticContext\", // for ReactRouter context\n ],\n },\n ],\n\n // disallow usage of __proto__ property\n \"no-proto\": \"error\",\n\n // disallow declaring the same variable more than once\n \"no-redeclare\": \"error\",\n\n // disallow certain object properties\n // https://eslint.org/docs/rules/no-restricted-properties\n \"no-restricted-properties\": [\n \"error\",\n {\n object: \"arguments\",\n property: \"callee\",\n message: \"arguments.callee is deprecated\",\n },\n {\n object: \"global\",\n property: \"isFinite\",\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"self\",\n property: \"isFinite\",\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"window\",\n property: \"isFinite\",\n message: \"Please use Number.isFinite instead\",\n },\n {\n object: \"global\",\n property: \"isNaN\",\n\n message: \"Please use Number.isNaN instead\",\n },\n {\n object: \"self\",\n property: \"isNaN\",\n message: \"Please use Number.isNaN instead\",\n },\n {\n object: \"window\",\n property: \"isNaN\",\n message: \"Please use Number.isNaN instead\",\n },\n {\n property: \"__defineGetter__\",\n message: \"Please use Object.defineProperty instead.\",\n },\n {\n property: \"__defineSetter__\",\n message: \"Please use Object.defineProperty instead.\",\n },\n {\n object: \"Math\",\n property: \"pow\",\n message: \"Use the exponentiation operator (**) instead.\",\n },\n {\n object: \"globalThis\",\n property: \"isNaN\",\n message: \"Use `Number.isNaN` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"isFinite\",\n message: \"Use `Number.isFinite` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"parseFloat\",\n message: \"Use `Number.parseFloat` instead.\",\n },\n {\n object: \"globalThis\",\n property: \"parseInt\",\n message: \"Use `Number.parseInt` instead.\",\n },\n {\n object: \"window\",\n property: \"parseFloat\",\n message: \"Use `Number.parseFloat` instead.\",\n },\n {\n object: \"window\",\n property: \"parseInt\",\n message: \"Use `Number.parseInt` instead.\",\n },\n {\n property: \"__proto__\",\n message: \"Use `Object.getPrototypeOf` instead.\",\n },\n {\n property: \"__lookupGetter__\",\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n },\n {\n property: \"__lookupSetter__\",\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n },\n ],\n\n // disallow use of assignment in return statement\n \"no-return-assign\": [\"error\", \"always\"],\n\n // disallow redundant `return await`\n \"no-return-await\": \"error\",\n\n // disallow use of `javascript:` urls.\n \"no-script-url\": \"error\",\n\n // disallow self assignment\n // https://eslint.org/docs/rules/no-self-assign\n \"no-self-assign\": [\n \"error\",\n {\n props: true,\n },\n ],\n\n // disallow comparisons where both sides are exactly the same\n \"no-self-compare\": \"error\",\n\n // disallow use of comma operator\n \"no-sequences\": \"error\",\n\n // restrict what can be thrown as an exception\n \"no-throw-literal\": \"error\",\n\n // disallow unmodified conditions of loops\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"off\",\n\n // disallow usage of expressions in statement position\n \"no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: false,\n allowTernary: false,\n allowTaggedTemplates: false,\n },\n ],\n\n // disallow unused labels\n // https://eslint.org/docs/rules/no-unused-labels\n \"no-unused-labels\": \"error\",\n\n // disallow unnecessary .call() and .apply()\n \"no-useless-call\": \"off\",\n\n // Disallow unnecessary catch clauses\n // https://eslint.org/docs/rules/no-useless-catch\n \"no-useless-catch\": \"error\",\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-concat\n \"no-useless-concat\": \"error\",\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-escape\n \"no-useless-escape\": \"error\",\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-return\n \"no-useless-return\": \"error\",\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-void\n \"no-void\": \"error\",\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n \"no-warning-comments\": [\n \"off\",\n {\n terms: [\"todo\", \"fixme\", \"xxx\", \"@todo\"],\n location: \"start\",\n },\n ],\n\n // disallow use of the with statement\n \"no-with\": \"error\",\n\n // require using Error objects as Promise rejection reasons\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n \"prefer-promise-reject-errors\": [\"error\", { allowEmptyReject: true }],\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n \"prefer-named-capture-group\": \"off\",\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n \"prefer-regex-literals\": \"error\",\n\n // require use of the second argument for parseInt()\n radix: \"error\",\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // https://eslint.org/docs/rules/require-await\n \"require-await\": \"off\",\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-unicode-regexp\n \"require-unicode-regexp\": \"off\",\n\n // requires to declare all vars on top of their containing scope\n \"vars-on-top\": \"error\",\n\n // require immediate function invocation to be wrapped in parentheses\n // https://eslint.org/docs/rules/wrap-iife.html\n \"wrap-iife\": [\"error\", \"outside\", { functionPrototypeMethods: false }],\n\n // require or disallow Yoda conditions\n yoda: \"error\",\n // encourages use of dot notation whenever possible\n \"dot-notation\": [\"error\", { allowKeywords: true }],\n },\n};\n\nexport default config;\n"]}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var r=s=>{switch(s){case"typescript":return ["*.ts","*.tsx","*.mts","*.cts"];case"jsx_and_tsx":return ["*.jsx","*.tsx"];case"js_and_ts":return ["*.js","*.mjs","*.cjs","*.ts","*.mts","*.cts"];case"javascript":return ["*.js","*.mjs","*.cjs"];case"all":return ["*.js","*.jsx","*.mjs","*.cjs","*.ts","*.tsx","*.mts","*.cts"];case"jest":return ["**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}"];case"ava":return ["test.js","src/test.js","source/test.js","**/test-*.js","**/*.spec.js","**/*.test.js","**/test/**/*.js","**/tests/**/*.js","**/__tests__/**/*.js"];case"vitest":return ["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"tests":return ["test.js","src/test.js","source/test.js","**/test-*.js","**/*.spec.js","**/*.test.js","**/test/**/*.js","**/tests/**/*.js","**/__tests__/**/*.js","**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];default:throw new Error(`Unknown type: ${s}`)}},j=(s,t,e)=>({env:e,overrides:[{files:r(s),...t}]}),c=s=>({overrides:s.map(({type:t,config:e})=>({files:r(t),...e}))});
4
+
5
+ exports.a = j;
6
+ exports.b = c;
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=chunk-VJL7NPM4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/create-config.ts"],"names":["getType","type","createConfig","config","environment","createConfigs","rules"],"mappings":"AAIA,IAAMA,EAAWC,GAAmB,CAChC,OAAQA,EAAM,CACV,IAAK,aAED,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EAE7C,IAAK,cACD,MAAO,CAAC,QAAS,OAAO,EAE5B,IAAK,YACD,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAQ,QAAS,OAAO,EAE9D,IAAK,aACD,MAAO,CAAC,OAAQ,QAAS,OAAO,EAEpC,IAAK,MACD,MAAO,CAAC,OAAQ,QAAS,QAAS,QAAS,OAAQ,QAAS,QAAS,OAAO,EAEhF,IAAK,OACD,MAAO,CAEH,wBACA,wBACA,wBAGA,6BACA,4BACJ,EAEJ,IAAK,MACD,MAAO,CACH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,sBACJ,EAEJ,IAAK,SACD,MAAO,CAAC,oCAAqC,qCAAqC,EAEtF,IAAK,QACD,MAAO,CAEH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,uBAGA,wBACA,wBACA,wBACA,6BACA,6BACA,oCACA,qCACJ,EAEJ,QACI,MAAM,IAAI,MAAM,iBAAiBA,GAAM,CAE/C,CACJ,EAEaC,EAAe,CACxBD,EACAE,EACAC,KAEO,CACH,IAAKA,EACL,UAAW,CACP,CACI,MAAOJ,EAAQC,CAAI,EACnB,GAAGE,CACP,CACJ,CACJ,GAESE,EACTC,IAKO,CACH,UAAWA,EAAM,IAAI,CAAC,CAAE,KAAAL,EAAM,OAAAE,CAAO,KAC1B,CACH,MAAOH,EAAQC,CAAI,EACnB,GAAGE,CACP,EACH,CACL","sourcesContent":["import type { Linter } from \"eslint\";\n\ntype FileType = \"all\" | \"ava\" | \"javascript\" | \"jest\" | \"js_and_ts\" | \"jsx_and_tsx\" | \"tests\" | \"typescript\" | \"vitest\";\n\nconst getType = (type: FileType) => {\n switch (type) {\n case \"typescript\": {\n // @see https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions\n return [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"];\n }\n case \"jsx_and_tsx\": {\n return [\"*.jsx\", \"*.tsx\"];\n }\n case \"js_and_ts\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.mts\", \"*.cts\"];\n }\n case \"javascript\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\"];\n }\n case \"all\": {\n return [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"];\n }\n case \"jest\": {\n return [\n // Test files\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n\n // Facebook convention\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n ];\n }\n case \"ava\": {\n return [\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n ];\n }\n case \"vitest\": {\n return [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"];\n }\n case \"tests\": {\n return [\n // ava\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n\n // jest\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n \"**/__tests__/**/*.?(c|m)[jt]s?(x)\",\n \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\",\n ];\n }\n default: {\n throw new Error(`Unknown type: ${type}`);\n }\n }\n};\n\nexport const createConfig = (\n type: FileType,\n config: Omit<Linter.ConfigOverride<Linter.RulesRecord>, \"files\">,\n environment?: { [name: string]: boolean },\n): Linter.Config => {\n return {\n env: environment,\n overrides: [\n {\n files: getType(type),\n ...config,\n },\n ],\n };\n};\nexport const createConfigs = (\n rules: {\n config: Omit<Linter.ConfigOverride<Linter.RulesRecord>, \"files\">;\n type: FileType;\n }[],\n): Linter.Config => {\n return {\n overrides: rules.map(({ type, config }) => {\n return {\n files: getType(type),\n ...config,\n };\n }),\n };\n};\n"]}
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk6E2RGUNG_js = require('../chunk-6E2RGUNG.js');
3
+ var chunk5S3UQ6WJ_js = require('../chunk-5S3UQ6WJ.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunk6E2RGUNG_js.a;
7
+ module.exports = chunk5S3UQ6WJ_js.a;
8
8
  //# sourceMappingURL=out.js.map
9
9
  //# sourceMappingURL=best-practices.js.map
@@ -1,3 +1,3 @@
1
- export { a as default } from '../chunk-WDMF75TJ.mjs';
1
+ export { a as default } from '../chunk-U5JQC7EA.mjs';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=best-practices.mjs.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkGWJVUZVN_js = require('../../chunk-GWJVUZVN.js');
3
+ var chunkVJL7NPM4_js = require('../../chunk-VJL7NPM4.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
 
6
- var t=chunkGWJVUZVN_js.a("all",{plugins:["antfu"],rules:{"antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/generic-spacing":"error","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off","antfu/no-cjs-exports":packageJsonUtils.packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":packageJsonUtils.hasTypescript?"error":"off"}}),i=t;
6
+ var t=chunkVJL7NPM4_js.a("all",{plugins:["antfu"],rules:{"antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/generic-spacing":"error","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off","antfu/no-cjs-exports":packageJsonUtils.packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":packageJsonUtils.hasTypescript?"error":"off"}}),i=t;
7
7
 
8
8
  module.exports = i;
9
9
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/antfu.ts"],"names":["hasTypescript","packageIsTypeModule","config","create_config_default","antfu_default"],"mappings":"4CAAA,OAAS,iBAAAA,EAAe,uBAAAC,MAA2B,+BAKnD,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,mBAAoB,QACpB,sBAAuB,QACvB,wBAAyB,QACzB,kCAAmC,MACnC,2BAA4B,MAC5B,uBAAwBF,EAAsB,QAAU,MACxD,2BAA4BD,EAAgB,QAAU,KAC1D,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasTypescript, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"antfu\"],\n rules: {\n \"antfu/if-newline\": \"error\",\n \"antfu/import-dedupe\": \"error\",\n \"antfu/generic-spacing\": \"error\",\n \"antfu/prefer-inline-type-import\": \"off\",\n \"antfu/top-level-function\": \"off\",\n \"antfu/no-cjs-exports\": packageIsTypeModule ? \"error\" : \"off\",\n \"antfu/no-ts-export-equal\": hasTypescript ? \"error\" : \"off\",\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/antfu.ts"],"names":["hasTypescript","packageIsTypeModule","config","createConfig","antfu_default"],"mappings":"4CAAA,OAAS,iBAAAA,EAAe,uBAAAC,MAA2B,+BAKnD,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,mBAAoB,QACpB,sBAAuB,QACvB,wBAAyB,QACzB,kCAAmC,MACnC,2BAA4B,MAC5B,uBAAwBF,EAAsB,QAAU,MACxD,2BAA4BD,EAAgB,QAAU,KAC1D,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasTypescript, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"antfu\"],\n rules: {\n \"antfu/if-newline\": \"error\",\n \"antfu/import-dedupe\": \"error\",\n \"antfu/generic-spacing\": \"error\",\n \"antfu/prefer-inline-type-import\": \"off\",\n \"antfu/top-level-function\": \"off\",\n \"antfu/no-cjs-exports\": packageIsTypeModule ? \"error\" : \"off\",\n \"antfu/no-ts-export-equal\": hasTypescript ? \"error\" : \"off\",\n },\n});\n\nexport default config;\n"]}
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-WP674HT2.mjs';
1
+ import { a } from '../../chunk-5IW32NSH.mjs';
2
2
  import { packageIsTypeModule, hasTypescript } from '@anolilab/package-json-utils';
3
3
 
4
4
  var t=a("all",{plugins:["antfu"],rules:{"antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/generic-spacing":"error","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off","antfu/no-cjs-exports":packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":hasTypescript?"error":"off"}}),i=t;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/antfu.ts"],"names":["hasTypescript","packageIsTypeModule","config","create_config_default","antfu_default"],"mappings":"6CAAA,OAAS,iBAAAA,EAAe,uBAAAC,MAA2B,+BAKnD,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,mBAAoB,QACpB,sBAAuB,QACvB,wBAAyB,QACzB,kCAAmC,MACnC,2BAA4B,MAC5B,uBAAwBF,EAAsB,QAAU,MACxD,2BAA4BD,EAAgB,QAAU,KAC1D,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasTypescript, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"antfu\"],\n rules: {\n \"antfu/if-newline\": \"error\",\n \"antfu/import-dedupe\": \"error\",\n \"antfu/generic-spacing\": \"error\",\n \"antfu/prefer-inline-type-import\": \"off\",\n \"antfu/top-level-function\": \"off\",\n \"antfu/no-cjs-exports\": packageIsTypeModule ? \"error\" : \"off\",\n \"antfu/no-ts-export-equal\": hasTypescript ? \"error\" : \"off\",\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/antfu.ts"],"names":["hasTypescript","packageIsTypeModule","config","createConfig","antfu_default"],"mappings":"6CAAA,OAAS,iBAAAA,EAAe,uBAAAC,MAA2B,+BAKnD,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,mBAAoB,QACpB,sBAAuB,QACvB,wBAAyB,QACzB,kCAAmC,MACnC,2BAA4B,MAC5B,uBAAwBF,EAAsB,QAAU,MACxD,2BAA4BD,EAAgB,QAAU,KAC1D,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasTypescript, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"antfu\"],\n rules: {\n \"antfu/if-newline\": \"error\",\n \"antfu/import-dedupe\": \"error\",\n \"antfu/generic-spacing\": \"error\",\n \"antfu/prefer-inline-type-import\": \"off\",\n \"antfu/top-level-function\": \"off\",\n \"antfu/no-cjs-exports\": packageIsTypeModule ? \"error\" : \"off\",\n \"antfu/no-ts-export-equal\": hasTypescript ? \"error\" : \"off\",\n },\n});\n\nexport default config;\n"]}
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkGWJVUZVN_js = require('../../chunk-GWJVUZVN.js');
3
+ var chunkVJL7NPM4_js = require('../../chunk-VJL7NPM4.js');
4
4
 
5
- var e=chunkGWJVUZVN_js.a("all",{plugins:["array-func"],extends:["plugin:array-func/recommended"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
5
+ var e=chunkVJL7NPM4_js.a("all",{plugins:["array-func"],extends:["plugin:array-func/recommended"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
6
6
 
7
7
  module.exports = a;
8
8
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/array-func.ts"],"names":["config","create_config_default","array_func_default"],"mappings":"4CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,YAAY,EACtB,QAAS,CAAC,+BAA+B,EACzC,MAAO,CAEH,+BAAgC,MAGhC,yBAA0B,EAC1B,6BAA8B,CAClC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["// eslint-disable-next-line unicorn/prevent-abbreviations\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"array-func\"],\n extends: [\"plugin:array-func/recommended\"],\n rules: {\n // Rule disabled due to clash with Unicorn\n \"array-func/prefer-array-from\": \"off\",\n\n // Rules not in recommended config\n \"array-func/prefer-flat\": 0,\n \"array-func/prefer-flat-map\": 0,\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/array-func.ts"],"names":["config","createConfig","array_func_default"],"mappings":"4CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,YAAY,EACtB,QAAS,CAAC,+BAA+B,EACzC,MAAO,CAEH,+BAAgC,MAGhC,yBAA0B,EAC1B,6BAA8B,CAClC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["// eslint-disable-next-line unicorn/prevent-abbreviations\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"array-func\"],\n extends: [\"plugin:array-func/recommended\"],\n rules: {\n // Rule disabled due to clash with Unicorn\n \"array-func/prefer-array-from\": \"off\",\n\n // Rules not in recommended config\n \"array-func/prefer-flat\": 0,\n \"array-func/prefer-flat-map\": 0,\n },\n});\n\nexport default config;\n"]}
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from '../../chunk-WP674HT2.mjs';
1
+ import { a as a$1 } from '../../chunk-5IW32NSH.mjs';
2
2
 
3
3
  var e=a$1("all",{plugins:["array-func"],extends:["plugin:array-func/recommended"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
4
4
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/array-func.ts"],"names":["config","create_config_default","array_func_default"],"mappings":"6CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,YAAY,EACtB,QAAS,CAAC,+BAA+B,EACzC,MAAO,CAEH,+BAAgC,MAGhC,yBAA0B,EAC1B,6BAA8B,CAClC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["// eslint-disable-next-line unicorn/prevent-abbreviations\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"array-func\"],\n extends: [\"plugin:array-func/recommended\"],\n rules: {\n // Rule disabled due to clash with Unicorn\n \"array-func/prefer-array-from\": \"off\",\n\n // Rules not in recommended config\n \"array-func/prefer-flat\": 0,\n \"array-func/prefer-flat-map\": 0,\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/array-func.ts"],"names":["config","createConfig","array_func_default"],"mappings":"6CAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,YAAY,EACtB,QAAS,CAAC,+BAA+B,EACzC,MAAO,CAEH,+BAAgC,MAGhC,yBAA0B,EAC1B,6BAA8B,CAClC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["// eslint-disable-next-line unicorn/prevent-abbreviations\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"array-func\"],\n extends: [\"plugin:array-func/recommended\"],\n rules: {\n // Rule disabled due to clash with Unicorn\n \"array-func/prefer-array-from\": \"off\",\n\n // Rules not in recommended config\n \"array-func/prefer-flat\": 0,\n \"array-func/prefer-flat-map\": 0,\n },\n});\n\nexport default config;\n"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkZRBLJAQI_js = require('../../chunk-ZRBLJAQI.js');
4
- var chunk6E2RGUNG_js = require('../../chunk-6E2RGUNG.js');
3
+ var chunkMLDIWITS_js = require('../../chunk-MLDIWITS.js');
4
+ var chunk5S3UQ6WJ_js = require('../../chunk-5S3UQ6WJ.js');
5
5
  var chunkSV64EPVP_js = require('../../chunk-SV64EPVP.js');
6
- var chunkGWJVUZVN_js = require('../../chunk-GWJVUZVN.js');
6
+ var chunkVJL7NPM4_js = require('../../chunk-VJL7NPM4.js');
7
7
  var packageJsonUtils = require('@anolilab/package-json-utils');
8
8
 
9
- var a=chunk6E2RGUNG_js.a.rules,n=chunkSV64EPVP_js.a.rules,e=chunkZRBLJAQI_js.a.rules,l={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(l={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var f=chunkGWJVUZVN_js.a("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":a["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":a["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":n["valid-typeof"],...l}}),d=f;
9
+ var a=chunk5S3UQ6WJ_js.a.rules,n=chunkSV64EPVP_js.a.rules,e=chunkMLDIWITS_js.a.rules,l={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(l={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var f=chunkVJL7NPM4_js.a("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":a["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":a["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":n["valid-typeof"],...l}}),d=f;
10
10
 
11
11
  module.exports = d;
12
12
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","create_config_default","babel_default"],"mappings":"gLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","createConfig","babel_default"],"mappings":"gLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
@@ -1,7 +1,7 @@
1
- import { a as a$3 } from '../../chunk-NH6CJJWC.mjs';
2
- import { a as a$1 } from '../../chunk-WDMF75TJ.mjs';
1
+ import { a as a$3 } from '../../chunk-KNKUBOMM.mjs';
2
+ import { a as a$1 } from '../../chunk-U5JQC7EA.mjs';
3
3
  import { a as a$2 } from '../../chunk-DJDHW6UR.mjs';
4
- import { a as a$4 } from '../../chunk-WP674HT2.mjs';
4
+ import { a as a$4 } from '../../chunk-5IW32NSH.mjs';
5
5
  import { hasAnyDep } from '@anolilab/package-json-utils';
6
6
 
7
7
  var a=a$1.rules,n=a$2.rules,e=a$3.rules,l={};hasAnyDep(["prettier"],{peerDeps:!1})&&(l={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var f=a$4("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":a["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":a["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":n["valid-typeof"],...l}}),d=f;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","create_config_default","babel_default"],"mappings":"oLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","createConfig","babel_default"],"mappings":"oLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkZRBLJAQI_js = require('../../chunk-ZRBLJAQI.js');
3
+ var chunkMLDIWITS_js = require('../../chunk-MLDIWITS.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
 
6
- var n=chunkZRBLJAQI_js.a.rules,e=!1,s={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(e=!0,s={"@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/element-newline":"off","@html-eslint/quotes":"off"});var l={overrides:[{files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],plugins:["html","@html-eslint"],parser:"@html-eslint/parser",extends:["plugin:@html-eslint/recommended"],globals:{sourceCode:!0},settings:{"html/indent":`+${n.indent[1]}`,"html/report-bad-indent":e?"off":"error"},rules:{"spaced-comment":"off","capitalized-comments":"off","@html-eslint/indent":e?"off":["error",n.indent[1]],...s}}]},m=l;
6
+ var n=chunkMLDIWITS_js.a.rules,e=!1,s={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(e=!0,s={"@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/element-newline":"off","@html-eslint/quotes":"off"});var l={overrides:[{files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],plugins:["html","@html-eslint"],parser:"@html-eslint/parser",extends:["plugin:@html-eslint/recommended"],globals:{sourceCode:!0},settings:{"html/indent":`+${n.indent[1]}`,"html/report-bad-indent":e?"off":"error"},rules:{"spaced-comment":"off","capitalized-comments":"off","@html-eslint/indent":e?"off":["error",n.indent[1]],...s}}]},m=l;
7
7
 
8
8
  module.exports = m;
9
9
  //# sourceMappingURL=out.js.map
@@ -1,4 +1,4 @@
1
- import { a } from '../../chunk-NH6CJJWC.mjs';
1
+ import { a } from '../../chunk-KNKUBOMM.mjs';
2
2
  import { hasAnyDep } from '@anolilab/package-json-utils';
3
3
 
4
4
  var n=a.rules,e=!1,s={};hasAnyDep(["prettier"],{peerDeps:!1})&&(e=!0,s={"@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/element-newline":"off","@html-eslint/quotes":"off"});var l={overrides:[{files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],plugins:["html","@html-eslint"],parser:"@html-eslint/parser",extends:["plugin:@html-eslint/recommended"],globals:{sourceCode:!0},settings:{"html/indent":`+${n.indent[1]}`,"html/report-bad-indent":e?"off":"error"},rules:{"spaced-comment":"off","capitalized-comments":"off","@html-eslint/indent":e?"off":["error",n.indent[1]],...s}}]},m=l;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk72JA2E3L_js = require('../../chunk-72JA2E3L.js');
3
+ var chunkEOABR2FR_js = require('../../chunk-EOABR2FR.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunk72JA2E3L_js.a;
7
+ module.exports = chunkEOABR2FR_js.a;
8
8
  //# sourceMappingURL=out.js.map
9
9
  //# sourceMappingURL=import.js.map
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-GPLU2T35.mjs';
1
+ export { a as default } from '../../chunk-5XOTKQJY.mjs';
2
2
  //# sourceMappingURL=out.js.map
3
3
  //# sourceMappingURL=import.mjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var e={overrides:[{files:["setupJest.js"],rules:{"import/no-extraneous-dependencies":"off"}},{plugins:["jest"],files:["**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}"],extends:["plugin:jest/recommended","plugin:jest/style"],env:{jest:!0},rules:{"jsdoc/check-tag-names":"off","jest/no-disabled-tests":"off","jest/consistent-test-it":0,"jest/lowercase-name":0,"jest/no-conditional-expect":0,"jest/no-deprecated-functions":0,"jest/no-duplicate-hooks":0,"jest/no-expect-resolves":0,"jest/no-hooks":0,"jest/no-if":0,"jest/no-interpolation-in-snapshots":0,"jest/no-large-snapshots":0,"jest/no-restricted-matchers":0,"jest/no-test-return-statement":0,"jest/no-truthy-falsy":0,"jest/prefer-called-with":0,"jest/prefer-expect-assertions":0,"jest/prefer-hooks-on-top":0,"jest/prefer-inline-snapshots":0,"jest/prefer-spy-on":0,"jest/prefer-strict-equal":0,"jest/prefer-todo":0,"jest/require-to-throw-message":0,"jest/require-top-level-describe":0,"jest/valid-title":0,"@typescript-eslint/unbound-method":"off"}}]},t=e;
3
+ var e={overrides:[{files:["setupJest.js"],rules:{"import/no-extraneous-dependencies":"off"}},{plugins:["jest"],files:["**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}"],extends:["plugin:jest/recommended","plugin:jest/style"],env:{es6:!0,node:!0,jest:!0},rules:{"jsdoc/check-tag-names":"off","jest/no-disabled-tests":"off","jest/prefer-hooks-in-order":"error","jest/prefer-hooks-on-top":"error","jest/no-duplicate-hooks":"error","jest/no-test-return-statement":"error","jest/prefer-strict-equal":"error","jest/prefer-to-have-length":"error","jest/consistent-test-it":["error",{fn:"it"}],"import/namespace":"off","import/default":"off","import/no-duplicates":"off","import/no-named-as-default-member":"off","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-object-literal-type-assertion":"off","@typescript-eslint/no-empty-function":"off","@typescript-eslint/no-explicit-any":"off","@typescript-eslint/ban-ts-comment":"off","@typescript-eslint/unbound-method":"off"}}]},t=e;
4
4
 
5
5
  module.exports = t;
6
6
  //# sourceMappingURL=out.js.map