@anolilab/eslint-config 15.0.3 → 16.0.1

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 (224) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +386 -466
  3. package/dist/index.cjs +20 -0
  4. package/dist/index.d.cts +16370 -0
  5. package/dist/index.d.mts +16370 -0
  6. package/dist/index.d.ts +16367 -2
  7. package/dist/index.mjs +20 -0
  8. package/package.json +95 -271
  9. package/bin/generate-eslint-cofig.js +0 -3
  10. package/dist/chunk-5RAVHY5O.js +0 -8
  11. package/dist/chunk-5RAVHY5O.js.map +0 -1
  12. package/dist/chunk-A6LXZAWN.js +0 -9
  13. package/dist/chunk-A6LXZAWN.js.map +0 -1
  14. package/dist/chunk-MKL3NIXX.js +0 -9
  15. package/dist/chunk-MKL3NIXX.js.map +0 -1
  16. package/dist/chunk-R26SPKXH.js +0 -9
  17. package/dist/chunk-R26SPKXH.js.map +0 -1
  18. package/dist/chunk-RG6NJDJA.js +0 -9
  19. package/dist/chunk-RG6NJDJA.js.map +0 -1
  20. package/dist/chunk-SEYYGHPU.js +0 -8
  21. package/dist/chunk-SEYYGHPU.js.map +0 -1
  22. package/dist/chunk-SLM5UENV.js +0 -14
  23. package/dist/chunk-SLM5UENV.js.map +0 -1
  24. package/dist/chunk-UGG52B5H.js +0 -11
  25. package/dist/chunk-UGG52B5H.js.map +0 -1
  26. package/dist/chunk-WG6GTAIA.js +0 -8
  27. package/dist/chunk-WG6GTAIA.js.map +0 -1
  28. package/dist/chunk-WW4PDMXQ.js +0 -9
  29. package/dist/chunk-WW4PDMXQ.js.map +0 -1
  30. package/dist/config/best-practices.d.ts +0 -5
  31. package/dist/config/best-practices.js +0 -11
  32. package/dist/config/best-practices.js.map +0 -1
  33. package/dist/config/errors.d.ts +0 -5
  34. package/dist/config/errors.js +0 -11
  35. package/dist/config/errors.js.map +0 -1
  36. package/dist/config/es6.d.ts +0 -5
  37. package/dist/config/es6.js +0 -11
  38. package/dist/config/es6.js.map +0 -1
  39. package/dist/config/plugins/antfu.d.ts +0 -5
  40. package/dist/config/plugins/antfu.js +0 -11
  41. package/dist/config/plugins/antfu.js.map +0 -1
  42. package/dist/config/plugins/array-func.d.ts +0 -5
  43. package/dist/config/plugins/array-func.js +0 -10
  44. package/dist/config/plugins/array-func.js.map +0 -1
  45. package/dist/config/plugins/ava.d.ts +0 -5
  46. package/dist/config/plugins/ava.js +0 -9
  47. package/dist/config/plugins/ava.js.map +0 -1
  48. package/dist/config/plugins/babel.d.ts +0 -5
  49. package/dist/config/plugins/babel.js +0 -16
  50. package/dist/config/plugins/babel.js.map +0 -1
  51. package/dist/config/plugins/compat.d.ts +0 -5
  52. package/dist/config/plugins/compat.js +0 -9
  53. package/dist/config/plugins/compat.js.map +0 -1
  54. package/dist/config/plugins/cypress.d.ts +0 -5
  55. package/dist/config/plugins/cypress.js +0 -9
  56. package/dist/config/plugins/cypress.js.map +0 -1
  57. package/dist/config/plugins/deprecation.d.ts +0 -5
  58. package/dist/config/plugins/deprecation.js +0 -10
  59. package/dist/config/plugins/deprecation.js.map +0 -1
  60. package/dist/config/plugins/editorconfig.d.ts +0 -5
  61. package/dist/config/plugins/editorconfig.js +0 -10
  62. package/dist/config/plugins/editorconfig.js.map +0 -1
  63. package/dist/config/plugins/es.d.ts +0 -5
  64. package/dist/config/plugins/es.js +0 -10
  65. package/dist/config/plugins/es.js.map +0 -1
  66. package/dist/config/plugins/eslint-comments.d.ts +0 -5
  67. package/dist/config/plugins/eslint-comments.js +0 -10
  68. package/dist/config/plugins/eslint-comments.js.map +0 -1
  69. package/dist/config/plugins/etc.d.ts +0 -5
  70. package/dist/config/plugins/etc.js +0 -18
  71. package/dist/config/plugins/etc.js.map +0 -1
  72. package/dist/config/plugins/html.d.ts +0 -5
  73. package/dist/config/plugins/html.js +0 -12
  74. package/dist/config/plugins/html.js.map +0 -1
  75. package/dist/config/plugins/import.d.ts +0 -5
  76. package/dist/config/plugins/import.js +0 -12
  77. package/dist/config/plugins/import.js.map +0 -1
  78. package/dist/config/plugins/jest-async.d.ts +0 -5
  79. package/dist/config/plugins/jest-async.js +0 -9
  80. package/dist/config/plugins/jest-async.js.map +0 -1
  81. package/dist/config/plugins/jest-dom.d.ts +0 -5
  82. package/dist/config/plugins/jest-dom.js +0 -9
  83. package/dist/config/plugins/jest-dom.js.map +0 -1
  84. package/dist/config/plugins/jest-formatting.d.ts +0 -5
  85. package/dist/config/plugins/jest-formatting.js +0 -9
  86. package/dist/config/plugins/jest-formatting.js.map +0 -1
  87. package/dist/config/plugins/jest.d.ts +0 -5
  88. package/dist/config/plugins/jest.js +0 -14
  89. package/dist/config/plugins/jest.js.map +0 -1
  90. package/dist/config/plugins/jsdoc.d.ts +0 -5
  91. package/dist/config/plugins/jsdoc.js +0 -12
  92. package/dist/config/plugins/jsdoc.js.map +0 -1
  93. package/dist/config/plugins/jsonc.d.ts +0 -5
  94. package/dist/config/plugins/jsonc.js +0 -17
  95. package/dist/config/plugins/jsonc.js.map +0 -1
  96. package/dist/config/plugins/jsx-a11y.d.ts +0 -5
  97. package/dist/config/plugins/jsx-a11y.js +0 -10
  98. package/dist/config/plugins/jsx-a11y.js.map +0 -1
  99. package/dist/config/plugins/markdown.d.ts +0 -5
  100. package/dist/config/plugins/markdown.js +0 -10
  101. package/dist/config/plugins/markdown.js.map +0 -1
  102. package/dist/config/plugins/mdx.d.ts +0 -5
  103. package/dist/config/plugins/mdx.js +0 -10
  104. package/dist/config/plugins/mdx.js.map +0 -1
  105. package/dist/config/plugins/no-extend-native.d.ts +0 -5
  106. package/dist/config/plugins/no-extend-native.js +0 -9
  107. package/dist/config/plugins/no-extend-native.js.map +0 -1
  108. package/dist/config/plugins/no-loops.d.ts +0 -5
  109. package/dist/config/plugins/no-loops.js +0 -9
  110. package/dist/config/plugins/no-loops.js.map +0 -1
  111. package/dist/config/plugins/no-only-tests.d.ts +0 -5
  112. package/dist/config/plugins/no-only-tests.js +0 -10
  113. package/dist/config/plugins/no-only-tests.js.map +0 -1
  114. package/dist/config/plugins/no-secrets.d.ts +0 -5
  115. package/dist/config/plugins/no-secrets.js +0 -9
  116. package/dist/config/plugins/no-secrets.js.map +0 -1
  117. package/dist/config/plugins/no-unsanitized.d.ts +0 -5
  118. package/dist/config/plugins/no-unsanitized.js +0 -9
  119. package/dist/config/plugins/no-unsanitized.js.map +0 -1
  120. package/dist/config/plugins/node.d.ts +0 -5
  121. package/dist/config/plugins/node.js +0 -10
  122. package/dist/config/plugins/node.js.map +0 -1
  123. package/dist/config/plugins/perfectionist.d.ts +0 -5
  124. package/dist/config/plugins/perfectionist.js +0 -14
  125. package/dist/config/plugins/perfectionist.js.map +0 -1
  126. package/dist/config/plugins/playwright.d.ts +0 -5
  127. package/dist/config/plugins/playwright.js +0 -10
  128. package/dist/config/plugins/playwright.js.map +0 -1
  129. package/dist/config/plugins/promise.d.ts +0 -5
  130. package/dist/config/plugins/promise.js +0 -9
  131. package/dist/config/plugins/promise.js.map +0 -1
  132. package/dist/config/plugins/react-hooks.d.ts +0 -5
  133. package/dist/config/plugins/react-hooks.js +0 -10
  134. package/dist/config/plugins/react-hooks.js.map +0 -1
  135. package/dist/config/plugins/react-redux.d.ts +0 -5
  136. package/dist/config/plugins/react-redux.js +0 -10
  137. package/dist/config/plugins/react-redux.js.map +0 -1
  138. package/dist/config/plugins/react-usememo.d.ts +0 -5
  139. package/dist/config/plugins/react-usememo.js +0 -10
  140. package/dist/config/plugins/react-usememo.js.map +0 -1
  141. package/dist/config/plugins/react.d.ts +0 -5
  142. package/dist/config/plugins/react.js +0 -29
  143. package/dist/config/plugins/react.js.map +0 -1
  144. package/dist/config/plugins/regexp.d.ts +0 -5
  145. package/dist/config/plugins/regexp.js +0 -10
  146. package/dist/config/plugins/regexp.js.map +0 -1
  147. package/dist/config/plugins/security.d.ts +0 -5
  148. package/dist/config/plugins/security.js +0 -9
  149. package/dist/config/plugins/security.js.map +0 -1
  150. package/dist/config/plugins/simple-import-sort.d.ts +0 -5
  151. package/dist/config/plugins/simple-import-sort.js +0 -10
  152. package/dist/config/plugins/simple-import-sort.js.map +0 -1
  153. package/dist/config/plugins/sonarjs.d.ts +0 -5
  154. package/dist/config/plugins/sonarjs.js +0 -10
  155. package/dist/config/plugins/sonarjs.js.map +0 -1
  156. package/dist/config/plugins/ssr-friendly.d.ts +0 -5
  157. package/dist/config/plugins/ssr-friendly.js +0 -10
  158. package/dist/config/plugins/ssr-friendly.js.map +0 -1
  159. package/dist/config/plugins/storybook.d.ts +0 -5
  160. package/dist/config/plugins/storybook.js +0 -9
  161. package/dist/config/plugins/storybook.js.map +0 -1
  162. package/dist/config/plugins/tailwindcss.d.ts +0 -5
  163. package/dist/config/plugins/tailwindcss.js +0 -10
  164. package/dist/config/plugins/tailwindcss.js.map +0 -1
  165. package/dist/config/plugins/tanstack-query.d.ts +0 -5
  166. package/dist/config/plugins/tanstack-query.js +0 -10
  167. package/dist/config/plugins/tanstack-query.js.map +0 -1
  168. package/dist/config/plugins/testing-library-dom.d.ts +0 -5
  169. package/dist/config/plugins/testing-library-dom.js +0 -12
  170. package/dist/config/plugins/testing-library-dom.js.map +0 -1
  171. package/dist/config/plugins/testing-library-react.d.ts +0 -5
  172. package/dist/config/plugins/testing-library-react.js +0 -12
  173. package/dist/config/plugins/testing-library-react.js.map +0 -1
  174. package/dist/config/plugins/toml.d.ts +0 -5
  175. package/dist/config/plugins/toml.js +0 -9
  176. package/dist/config/plugins/toml.js.map +0 -1
  177. package/dist/config/plugins/tsdoc.d.ts +0 -5
  178. package/dist/config/plugins/tsdoc.js +0 -10
  179. package/dist/config/plugins/tsdoc.js.map +0 -1
  180. package/dist/config/plugins/typescript.d.ts +0 -5
  181. package/dist/config/plugins/typescript.js +0 -19
  182. package/dist/config/plugins/typescript.js.map +0 -1
  183. package/dist/config/plugins/unicorn.d.ts +0 -5
  184. package/dist/config/plugins/unicorn.js +0 -12
  185. package/dist/config/plugins/unicorn.js.map +0 -1
  186. package/dist/config/plugins/validate-jsx-nesting.d.ts +0 -5
  187. package/dist/config/plugins/validate-jsx-nesting.js +0 -10
  188. package/dist/config/plugins/validate-jsx-nesting.js.map +0 -1
  189. package/dist/config/plugins/vitest.d.ts +0 -5
  190. package/dist/config/plugins/vitest.js +0 -10
  191. package/dist/config/plugins/vitest.js.map +0 -1
  192. package/dist/config/plugins/yml.d.ts +0 -5
  193. package/dist/config/plugins/yml.js +0 -12
  194. package/dist/config/plugins/yml.js.map +0 -1
  195. package/dist/config/plugins/you-dont-need-lodash-underscore.d.ts +0 -5
  196. package/dist/config/plugins/you-dont-need-lodash-underscore.js +0 -10
  197. package/dist/config/plugins/you-dont-need-lodash-underscore.js.map +0 -1
  198. package/dist/config/plugins/you-dont-need-momentjs.d.ts +0 -5
  199. package/dist/config/plugins/you-dont-need-momentjs.js +0 -10
  200. package/dist/config/plugins/you-dont-need-momentjs.js.map +0 -1
  201. package/dist/config/plugins/zod.d.ts +0 -5
  202. package/dist/config/plugins/zod.js +0 -10
  203. package/dist/config/plugins/zod.js.map +0 -1
  204. package/dist/config/style.d.ts +0 -5
  205. package/dist/config/style.js +0 -13
  206. package/dist/config/style.js.map +0 -1
  207. package/dist/config/variables.d.ts +0 -5
  208. package/dist/config/variables.js +0 -11
  209. package/dist/config/variables.js.map +0 -1
  210. package/dist/define-config.d.ts +0 -1
  211. package/dist/define-config.js +0 -17
  212. package/dist/define-config.js.map +0 -1
  213. package/dist/globals.d.ts +0 -8
  214. package/dist/globals.js +0 -17
  215. package/dist/globals.js.map +0 -1
  216. package/dist/index.js +0 -26
  217. package/dist/index.js.map +0 -1
  218. package/dist/postinstall.d.ts +0 -1
  219. package/dist/postinstall.js +0 -79
  220. package/dist/postinstall.js.map +0 -1
  221. package/dist/typescript-type-checking.d.ts +0 -5
  222. package/dist/typescript-type-checking.js +0 -13
  223. package/dist/typescript-type-checking.js.map +0 -1
  224. package/skip.js +0 -7
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/es6.ts"],"names":["config","createConfigs","es6_default"],"mappings":"wCAIA,IAAMA,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,IAAK,CACD,IAAK,EACT,EACA,cAAe,CACX,aAAc,CACV,WAAY,GACZ,iCAAkC,EACtC,EACA,YAAa,EACb,WAAY,QAChB,EACA,MAAO,CAGH,mBAAoB,CAChB,QACA,YACA,CACI,8BAA+B,EACnC,CACJ,EAIA,eAAgB,CAAC,QAAS,QAAQ,EAIlC,gBAAiB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAK,CAAC,EAGxD,oBAAqB,QAIrB,yBAA0B,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIlE,kBAAmB,QAInB,qBAAsB,CAClB,QACA,CACI,YAAa,EACjB,CACJ,EAGA,kBAAmB,QAInB,wBAAyB,QAKzB,uBAAwB,MAIxB,gBAAiB,QAIjB,wBAAyB,CACrB,QACA,CAII,uBAAwB,CACpB,YAAa,GACb,OAAQ,GACR,MAAO,GACP,UAAW,GACX,cAAe,EACnB,EAEA,uBAAwB,CAAC,MAAM,CACnC,CACJ,EAIA,wBAAyB,CACrB,QACA,CACI,MAAO,CACH,CACI,QACI,gIACJ,KAAM,gBACV,EACA,CACI,QACI,gIACJ,KAAM,iBACV,EACA,CACI,QACI,gIACJ,KAAM,kBACV,EACA,CACI,QACI,gIACJ,KAAM,aACV,EACA,CACI,KAAM,OACV,EACA,CACI,KAAM,QACV,EACA,CACI,KAAM,UACV,EACA,CACI,KAAM,SACV,EACA,CACI,KAAM,UACV,EACA,CACI,KAAM,KACV,EACA,CACI,QAAS,4GACT,KAAM,aACV,EACA,CACI,QAAS,qFACT,KAAM,QACV,EACA,CACI,QAAS,8CACT,KAAM,QACV,EACA,CACI,QAAS,gDACT,KAAM,OACV,EACA,CACI,QAAS,gDACT,KAAM,OACV,EACA,CACI,QAAS,gDACT,KAAM,eACV,EACA,CACI,QAAS,gDACT,KAAM,gBACV,EACA,CACI,QA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,QAI1B,qBAAsB,CAAC,QAAS,OAAO,CAC3C,CACJ,EACA,KAAM,KACV,EAGA,CACI,OAAQ,CACJ,MAAO,CACH,oBAAqB,MAIrB,yBAA0B,MAI1B,wBAAyB,MAGzB,kBAAmB,MAGnB,gBAAiB,MAGjB,uBAAwB,KAC5B,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../utils/create-config\";\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n env: {\n es6: true,\n },\n parserOptions: {\n ecmaFeatures: {\n generators: false,\n objectLiteralDuplicateProperties: false,\n },\n ecmaVersion: 6,\n sourceType: \"module\",\n },\n rules: {\n // enforces no braces where they can be omitted\n // https://eslint.org/docs/rules/arrow-body-style\n \"arrow-body-style\": [\n \"error\",\n \"as-needed\",\n {\n requireReturnForObjectLiteral: true,\n },\n ],\n\n // require parens in arrow function arguments\n // https://eslint.org/docs/rules/arrow-parens\n \"arrow-parens\": [\"error\", \"always\"],\n\n // require space before/after arrow function's arrow\n // https://eslint.org/docs/rules/arrow-spacing\n \"arrow-spacing\": [\"error\", { after: true, before: true }],\n\n // verify super() callings in constructors\n \"constructor-super\": \"error\",\n\n // enforce the spacing around the * in generator functions\n // https://eslint.org/docs/rules/generator-star-spacing\n \"generator-star-spacing\": [\"error\", { after: true, before: false }],\n\n // disallow modifying variables of class declarations\n // https://eslint.org/docs/rules/no-class-assign\n \"no-class-assign\": \"error\",\n\n // disallow arrow functions where they could be confused with comparisons\n // https://eslint.org/docs/rules/no-confusing-arrow\n \"no-confusing-arrow\": [\n \"error\",\n {\n allowParens: true,\n },\n ],\n\n // disallow modifying variables that are declared using const\n \"no-const-assign\": \"error\",\n\n // disallow duplicate class members\n // https://eslint.org/docs/rules/no-dupe-class-members\n \"no-dupe-class-members\": \"error\",\n\n // disallow importing from the same path more than once\n // https://eslint.org/docs/rules/no-duplicate-imports\n // replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md\n \"no-duplicate-imports\": \"off\",\n\n // disallow symbol constructor\n // https://eslint.org/docs/rules/no-new-symbol\n \"no-new-symbol\": \"error\",\n\n // Disallow specified names in exports\n // https://eslint.org/docs/rules/no-restricted-exports\n \"no-restricted-exports\": [\n \"error\",\n {\n // default export while still blocking other \"default\" exports.\n // The 'default' entry in restrictedNamedExports must also be removed.\n // See https://github.com/airbnb/javascript/issues/2500 and https://github.com/eslint/eslint/pull/16785\n restrictDefaultExports: {\n defaultFrom: false, // permits `export { default } from 'foo';` declarations\n direct: false, // permits `export default` declarations\n named: true, // restricts `export { foo as default };` declarations\n namedFrom: false, // permits `export { foo as default } from 'foo';` declarations\n namespaceFrom: true, // restricts `export * as default from 'foo';` declarations\n },\n // this will cause tons of confusion when your module is dynamically `import()`ed\n restrictedNamedExports: [\"then\"],\n },\n ],\n\n // disallow specific imports\n // https://eslint.org/docs/rules/no-restricted-imports\n \"no-restricted-imports\": [\n \"error\",\n {\n paths: [\n {\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n name: \"lodash.isequal\",\n },\n {\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n name: \"lodash.uniqueId\",\n },\n {\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n name: \"lodash.mergewith\",\n },\n {\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n name: \"lodash.pick\",\n },\n {\n name: \"error\",\n },\n {\n name: \"domain\",\n },\n {\n name: \"freelist\",\n },\n {\n name: \"smalloc\",\n },\n {\n name: \"punycode\",\n },\n {\n name: \"sys\",\n },\n {\n message: 'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try \"qs\" as a package',\n name: \"querystring\",\n },\n {\n message: \"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors\",\n name: \"colors\",\n },\n {\n message: \"node v10.12 mkdir supports recursive option\",\n name: \"mkdirp\",\n },\n {\n message: 'Please use \"@faker-js/faker\" as a replacement',\n name: \"faker\",\n },\n {\n message: \"Please use Object.assign or spread { ...obj }\",\n name: \"xtend\",\n },\n {\n message: \"Please use Object.assign or spread { ...obj }\",\n name: \"object-assign\",\n },\n {\n message: \"Please use Object.assign or spread { ...obj }\",\n name: \"extend-shallow\",\n },\n {\n message: \"node supports recursive option now\",\n name: \"rimraf\",\n },\n {\n message: 'just use \"\".padStart() and \"\".padEnd()',\n name: \"pad-left\",\n },\n {\n message: 'just use \"\".padStart() and \"\".padEnd()',\n name: \"pad-right\",\n },\n {\n message: 'just use \"\".padStart() and \"\".padEnd()',\n name: \"left-pad\",\n },\n {\n message: 'just use \"\".padStart() and \"\".padEnd()',\n name: \"right-pad\",\n },\n {\n message: 'just use \"\".padStart() and \"\".padEnd()',\n name: \"pad\",\n },\n {\n name: \"safe-buffer\",\n },\n {\n name: \"safer-buffer\",\n },\n {\n message: \"just use [].flat() or some other polyfill\",\n name: \"array-flatten\",\n },\n {\n message: \"Been deprecated\",\n name: \"request\",\n },\n {\n message: \"use async/await instead\",\n name: \"co\",\n },\n {\n message: \"Please use TextDecoder instead\",\n name: \"windows-1252\",\n },\n {\n message: \"Please use TextDecoder instead\",\n name: \"string_decoder\",\n },\n {\n message: \"Please use array.prototype.flatMap instead\",\n name: \"concat-map\",\n },\n {\n name: \"buffer-alloc\",\n },\n ],\n // catch-all for any lodash modularized.\n // The CVE is listed against the entire family for lodash < 4.17.11\n patterns: [\"lodash.*\"],\n },\n ],\n\n // disallow to use this/super before super() calling in constructors.\n // https://eslint.org/docs/rules/no-this-before-super\n \"no-this-before-super\": \"error\",\n\n // disallow useless computed property keys\n // https://eslint.org/docs/rules/no-useless-computed-key\n \"no-useless-computed-key\": \"error\",\n\n // disallow unnecessary constructor\n // https://eslint.org/docs/rules/no-useless-constructor\n \"no-useless-constructor\": \"error\",\n\n // disallow renaming import, export, and destructured assignments to the same name\n // https://eslint.org/docs/rules/no-useless-rename\n \"no-useless-rename\": [\n \"error\",\n {\n ignoreDestructuring: false,\n ignoreExport: false,\n ignoreImport: false,\n },\n ],\n\n // require let or const instead of var\n \"no-var\": \"error\",\n\n // require method and property shorthand syntax for object literals\n // https://eslint.org/docs/rules/object-shorthand\n \"object-shorthand\": [\n \"error\",\n \"always\",\n {\n avoidQuotes: true,\n ignoreConstructors: false,\n },\n ],\n\n // suggest using arrow functions as callbacks\n \"prefer-arrow-callback\": [\n \"error\",\n {\n allowNamedFunctions: false,\n allowUnboundThis: true,\n },\n ],\n\n // suggest using of const declaration for variables that are never modified after declared\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"any\",\n ignoreReadBeforeAssign: true,\n },\n ],\n\n // Prefer destructuring from arrays and objects\n // https://eslint.org/docs/rules/prefer-destructuring\n \"prefer-destructuring\": [\n \"error\",\n {\n AssignmentExpression: {\n array: true,\n object: false,\n },\n VariableDeclarator: {\n array: false,\n object: true,\n },\n },\n {\n enforceForRenamedProperties: false,\n },\n ],\n\n // disallow parseInt() in favor of binary, octal, and hexadecimal literals\n // https://eslint.org/docs/rules/prefer-numeric-literals\n \"prefer-numeric-literals\": \"error\",\n\n // suggest using Reflect methods where applicable\n // https://eslint.org/docs/rules/prefer-reflect\n \"prefer-reflect\": \"off\",\n\n // use rest parameters instead of arguments\n // https://eslint.org/docs/rules/prefer-rest-params\n \"prefer-rest-params\": \"error\",\n\n // suggest using the spread operator instead of .apply()\n // https://eslint.org/docs/rules/prefer-spread\n \"prefer-spread\": \"error\",\n\n // suggest using template literals instead of string concatenation\n // https://eslint.org/docs/rules/prefer-template\n \"prefer-template\": \"error\",\n\n // disallow generator functions that do not have yield\n // https://eslint.org/docs/rules/require-yield\n \"require-yield\": \"error\",\n\n // enforce spacing between object rest-spread\n // https://eslint.org/docs/rules/rest-spread-spacing\n \"rest-spread-spacing\": [\"error\", \"never\"],\n\n // import sorting\n // https://eslint.org/docs/rules/sort-imports\n \"sort-imports\": [\n \"off\",\n {\n ignoreCase: false,\n ignoreDeclarationSort: false,\n ignoreMemberSort: false,\n memberSyntaxSortOrder: [\"none\", \"all\", \"multiple\", \"single\"],\n },\n ],\n\n // require a Symbol description\n // https://eslint.org/docs/rules/symbol-description\n \"symbol-description\": \"error\",\n\n // enforce usage of spacing in template strings\n // https://eslint.org/docs/rules/template-curly-spacing\n \"template-curly-spacing\": \"error\",\n\n // enforce spacing around the * in yield* expressions\n // https://eslint.org/docs/rules/yield-star-spacing\n \"yield-star-spacing\": [\"error\", \"after\"],\n },\n },\n type: \"all\",\n },\n // The following rules are enabled in config, but are already checked (more thoroughly) by the TypeScript compiler\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n {\n config: {\n rules: {\n \"constructor-super\": \"off\",\n\n // Disallow returning a value with type any from a function.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md\n \"no-useless-constructor\": \"off\",\n\n // Enforce specifying generic type arguments on constructor name of a constructor call.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md\n \"no-dupe-class-members\": \"off\",\n\n // Enforce constituents of a type union/intersection to be sorted alphabetically.\n \"no-const-assign\": \"off\",\n\n // Disallow TypeScript namespaces.\n \"no-new-symbol\": \"off\",\n\n // Disallow aliasing this.\n \"no-this-before-super\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWW4PDMXQ_js = require('./chunk-WW4PDMXQ.js');
4
-
5
- if(global.anolilabEslintIndent===void 0&&chunkWW4PDMXQ_js.a.indent){if(Number.isNaN(chunkWW4PDMXQ_js.a.indent))throw new TypeError("Indent must be a number");global.anolilabEslintIndent=Number(chunkWW4PDMXQ_js.a.indent);}else global.anolilabEslintIndent=4;var l=global.anolilabEslintIndent,i=l;
6
-
7
- exports.a = i;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-R26SPKXH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/indent.ts"],"names":["eslint_config_default","indent","indent_default"],"mappings":"wCAEA,GAAI,OAAO,uBAAyB,QAAaA,EAAqB,OAAW,CAC7E,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjD,OAAO,qBAAuB,OAAOA,EAAqB,MAAS,CACvE,MACI,OAAO,qBAAuB,EAGlC,IAAMC,EAAS,OAAO,qBAEfC,EAAQD","sourcesContent":["import anolilabEslintConfig from \"./eslint-config\";\n\nif (global.anolilabEslintIndent === undefined && anolilabEslintConfig[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n global.anolilabEslintIndent = Number(anolilabEslintConfig[\"indent\"]);\n} else {\n global.anolilabEslintIndent = 4;\n}\n\nconst indent = global.anolilabEslintIndent;\n\nexport default indent;\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
-
5
- var o=chunkWG6GTAIA_js.b([{config:{rules:{"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"no-extra-semi":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-obj-calls":"error","no-new-native-nonconstructor":"off","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]}},type:"all"},{config:{rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off","no-extra-semi":"off"}},type:"typescript"}]),n=o;
6
-
7
- exports.a = n;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-RG6NJDJA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/errors.ts"],"names":["config","createConfigs","errors_default"],"mappings":"wCAIA,IAAMA,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,MAAO,CAGH,gBAAiB,QAIjB,gBAAiB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,EAIlD,4BAA6B,QAI7B,mBAAoB,QAIpB,sBAAuB,QAGvB,iBAAkB,CAAC,QAAS,QAAQ,EAGpC,aAAc,OAGd,wBAAyB,OAIzB,mBAAoB,MAGpB,cAAe,QAGf,eAAgB,QAIhB,kBAAmB,QAGnB,eAAgB,QAGhB,oBAAqB,QAGrB,WAAY,QAGZ,2BAA4B,QAG5B,eAAgB,QAIhB,wBAAyB,QAIzB,kBAAmB,CACf,QACA,MACA,CACI,kBAAmB,GACnB,4BAA6B,GAC7B,UAAW,MACX,wBAAyB,GACzB,aAAc,EAClB,CACJ,EAIA,gBAAiB,QAGjB,iBAAkB,QAGlB,mBAAoB,QAGpB,wBAAyB,QAIzB,oBAAqB,MAGrB,0BAA2B,QAI3B,uBAAwB,QAIxB,gCAAiC,QAGjC,oBAAqB,MAIrB,eAAgB,QAKhB,+BAAgC,MAIhC,6BAA8B,QAG9B,wBAAyB,QAIzB,kBAAmB,MAGnB,mBAAoB,QAIpB,mBAAoB,QAIpB,8BAA+B,QAG/B,0BAA2B,QAI3B,iBAAkB,QAIlB,sBAAuB,MAIvB,oBAAqB,QAIrB,qBAAsB,QAItB,8BAA+B,CAAC,QAAS,CAAE,4BAA6B,EAAK,CAAC,EAI9E,2BAA4B,QAK5B,yBAA0B,MAG1B,YAAa,QAIb,cAAe,MAIf,eAAgB,CAAC,QAAS,CAAE,sBAAuB,EAAK,CAAC,CAC7D,CACJ,EACA,KAAM,KACV,EAGA,CACI,OAAQ,CACJ,MAAO,CACH,gBAAiB,MAGjB,eAAgB,MAGhB,eAAgB,MAIhB,kBAAmB,MAGnB,iBAAkB,MAGlB,eAAgB,MAGhB,iBAAkB,MAGlB,qBAAsB,MAItB,kBAAmB,MAEnB,eAAgB,MAEhB,gBAAiB,KACrB,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../utils/create-config\";\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n rules: {\n // Enforce “for” loop update clause moving the counter in the right direction\n // https://eslint.org/docs/rules/for-direction\n \"for-direction\": \"error\",\n\n // Enforces that a return statement is present in property getters\n // https://eslint.org/docs/rules/getter-return\n \"getter-return\": [\"error\", { allowImplicit: true }],\n\n // disallow using an async function as a Promise executor\n // https://eslint.org/docs/rules/no-async-promise-executor\n \"no-async-promise-executor\": \"error\",\n\n // Disallow await inside of loops\n // https://eslint.org/docs/rules/no-await-in-loop\n \"no-await-in-loop\": \"error\",\n\n // Disallow comparisons to negative zero\n // https://eslint.org/docs/rules/no-compare-neg-zero\n \"no-compare-neg-zero\": \"error\",\n\n // disallow assignment in conditional expressions\n \"no-cond-assign\": [\"error\", \"always\"],\n\n // disallow use of console\n \"no-console\": \"warn\",\n\n // disallow use of constant expressions in conditions\n \"no-constant-condition\": \"warn\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow control characters in regular expressions\n \"no-control-regex\": \"off\",\n\n // disallow use of debugger\n \"no-debugger\": \"error\",\n\n // disallow duplicate arguments in functions\n \"no-dupe-args\": \"error\",\n\n // Disallow duplicate conditions in if-else-if chains\n // https://eslint.org/docs/rules/no-dupe-else-if\n \"no-dupe-else-if\": \"error\",\n\n // disallow duplicate keys when creating object literals\n \"no-dupe-keys\": \"error\",\n\n // disallow a duplicate case label.\n \"no-duplicate-case\": \"error\",\n\n // disallow empty statements\n \"no-empty\": \"error\",\n\n // disallow the use of empty character classes in regular expressions\n \"no-empty-character-class\": \"error\",\n\n // disallow assigning to the exception in a catch block\n \"no-ex-assign\": \"error\",\n\n // disallow double-negation boolean casts in a boolean context\n // https://eslint.org/docs/rules/no-extra-boolean-cast\n \"no-extra-boolean-cast\": \"error\",\n\n // disallow unnecessary parentheses\n // https://eslint.org/docs/rules/no-extra-parens\n \"no-extra-parens\": [\n \"error\",\n \"all\",\n {\n conditionalAssign: true,\n enforceForArrowConditionals: false,\n ignoreJSX: \"all\", // delegate to eslint-plugin-react\n nestedBinaryExpressions: false,\n returnAssign: false,\n },\n ],\n\n // Disallow non-null assertion in locations that may be confusing.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md\n \"no-extra-semi\": \"error\",\n\n // disallow overwriting functions written as function declarations\n \"no-func-assign\": \"error\",\n\n // https://eslint.org/docs/rules/no-import-assign\n \"no-import-assign\": \"error\",\n\n // disallow function or variable declarations in nested blocks\n \"no-inner-declarations\": \"error\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow invalid regular expression strings in the RegExp constructor\n \"no-invalid-regexp\": \"off\",\n\n // disallow irregular whitespace outside of strings and comments\n \"no-irregular-whitespace\": \"error\",\n\n // Disallow Number Literals That Lose Precision\n // https://eslint.org/docs/rules/no-loss-of-precision\n \"no-loss-of-precision\": \"error\",\n\n // Disallow characters which are made with multiple code points in character class syntax\n // https://eslint.org/docs/rules/no-misleading-character-class\n \"no-misleading-character-class\": \"error\",\n\n // deprecated in favor of no-unsafe-negation\n \"no-negated-in-lhs\": \"off\",\n\n // Disallow returning values from Promise executor functions\n // disallow the use of object properties of the global object (Math and JSON) as functions\n \"no-obj-calls\": \"error\",\n\n // Disallow new operators with global non-constructor functions\n // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor\n // TODO: semver-major, enable\n \"no-new-native-nonconstructor\": \"off\",\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-promise-executor-return\n \"no-promise-executor-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-prototype-builtins\n \"no-prototype-builtins\": \"error\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow multiple spaces in a regular expression literal\n \"no-regex-spaces\": \"off\",\n\n // https://eslint.org/docs/rules/no-setter-return\n \"no-setter-return\": \"error\",\n\n // Disallow template literal placeholder syntax in regular strings\n // disallow sparse arrays\n \"no-sparse-arrays\": \"error\",\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-template-curly-in-string\n \"no-template-curly-in-string\": \"error\",\n\n // https://eslint.org/docs/rules/no-unexpected-multiline\n \"no-unexpected-multiline\": \"error\",\n\n // Disallow loops with a body that allows only one iteration\n // disallow unreachable statements after a return, throw, continue, or break statement\n \"no-unreachable\": \"error\",\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unreachable-loop\n \"no-unreachable-loop\": \"off\", // error with typescript\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-finally\n \"no-unsafe-finally\": \"error\",\n\n // disallow use of optional chaining in contexts where the undefined value is not allowed\n // https://eslint.org/docs/rules/no-unsafe-negation\n \"no-unsafe-negation\": \"error\",\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-unsafe-optional-chaining\n \"no-unsafe-optional-chaining\": [\"error\", { disallowArithmeticOperators: true }],\n\n // disallow negation of the left operand of an in expression\n // https://eslint.org/docs/rules/no-useless-backreference\n \"no-useless-backreference\": \"error\",\n\n // Disallow assignments that can lead to race conditions due to usage of await or yield\n // https://eslint.org/docs/rules/require-atomic-updates\n // note: not enabled because it is very buggy\n \"require-atomic-updates\": \"off\",\n\n // disallow comparisons with the value NaN\n \"use-isnan\": \"error\",\n\n // ensure JSDoc comments are valid\n // https://eslint.org/docs/rules/valid-jsdoc\n \"valid-jsdoc\": \"off\",\n\n // ensure that the results of typeof are compared against a valid string\n // https://eslint.org/docs/rules/valid-typeof\n \"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n },\n },\n type: \"all\",\n },\n // The following rules are enabled in config, but are already checked (more thoroughly) by the TypeScript compiler\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n {\n config: {\n rules: {\n \"getter-return\": \"off\",\n\n // Enforce using @ts-expect-error over @ts-ignore.\n \"no-dupe-args\": \"off\",\n\n // Require explicit accessibility modifiers on class properties and methods.\n \"no-dupe-keys\": \"off\",\n\n // Enforce using a particular method signature syntax.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md\n \"no-extra-parens\": \"off\",\n\n // Disallow duplicate enum member values.\n \"no-func-assign\": \"off\",\n\n // Disallow non-null assertions in the left operand of a nullish coalescing operator.\n \"no-obj-calls\": \"off\",\n\n // Disallow calling a function with a value with type any.\n \"no-unreachable\": \"off\",\n\n // Disallow assigning a value with type any to variables and properties.\n \"no-unsafe-negation\": \"off\",\n\n // Enforce using the nullish coalescing operator instead of logical chaining.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md\n \"space-infix-ops\": \"off\",\n\n \"valid-typeof\": \"off\",\n\n \"no-extra-semi\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- var e=()=>{},o=n=>process.env.NO_LOGS?e:s=>console.log(`${n}${s}`),c=o(" eslint-plugin-"),t=o("");
4
-
5
- exports.a = c;
6
- exports.b = t;
7
- //# sourceMappingURL=out.js.map
8
- //# sourceMappingURL=chunk-SEYYGHPU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/loggers.ts"],"names":["noop","consolePrefix","prefix","message","consolePlugin","consoleLog"],"mappings":"AAAA,IAAMA,EAAO,IAAG,GAEVC,EAAiBC,GAAoB,QAAQ,IAAI,QAAaF,EAAQG,GAAoB,QAAQ,IAAI,GAAGD,CAAM,GAAGC,CAAO,EAAE,EAEpHC,EAAgBH,EAAc,kBAAkB,EAChDI,EAAaJ,EAAc,EAAE","sourcesContent":["const noop = () => undefined;\n\nconst consolePrefix = (prefix: string) => (process.env[\"NO_LOGS\"] ? noop : (message: string) => console.log(`${prefix}${message}`));\n\nexport const consolePlugin = consolePrefix(\" eslint-plugin-\");\nexport const consoleLog = consolePrefix(\"\");\n"]}
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
- var o = require('confusing-browser-globals');
5
-
6
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
-
8
- var o__default = /*#__PURE__*/_interopDefault(o);
9
-
10
- var s=chunkWG6GTAIA_js.b([{config:{rules:{"init-declarations":"off","no-catch-shadow":"off","no-delete-var":"error","no-label-var":"error","no-restricted-globals":["error",{message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite",name:"isFinite"},{message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan",name:"isNaN"},...o__default.default.map(e=>({name:e,message:`Use window.${e} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`}))],"no-shadow":"error","no-shadow-restricted-names":"error","no-undef":"error","no-undef-init":"error","no-undefined":"off","no-unused-vars":["error",{args:"after-used",ignoreRestSiblings:!0,vars:"all"}],"no-use-before-define":["error",{classes:!0,functions:!0,variables:!0}]}},type:"all"},{config:{rules:{"no-use-before-define":"off","no-unused-vars":"off","no-shadow":"off","no-undef":"off"}},type:"typescript"}]),i=s;
11
-
12
- exports.a = i;
13
- //# sourceMappingURL=out.js.map
14
- //# sourceMappingURL=chunk-SLM5UENV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/variables.ts"],"names":["confusingBrowserGlobals","config","createConfigs","g","variables_default"],"mappings":"wCAAA,OAAOA,MAA6B,4BAKpC,IAAMC,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,MAAO,CAEH,oBAAqB,MAGrB,kBAAmB,MAGnB,gBAAiB,QAIjB,eAAgB,QAGhB,wBAAyB,CACrB,QACA,CACI,QAAS,8FACT,KAAM,UACV,EACA,CACI,QAAS,wFACT,KAAM,OACV,EACA,GAAGF,EAAwB,IAAKG,IACrB,CACH,KAAMA,EACN,QAAS,cAAcA,CAAC,+GAC5B,EACH,CACL,EAGA,YAAa,QAGb,6BAA8B,QAG9B,WAAY,QAGZ,gBAAiB,QAIjB,eAAgB,MAGhB,iBAAkB,CAAC,QAAS,CAAE,KAAM,aAAc,mBAAoB,GAAM,KAAM,KAAM,CAAC,EAGzF,uBAAwB,CAAC,QAAS,CAAE,QAAS,GAAM,UAAW,GAAM,UAAW,EAAK,CAAC,CACzF,CACJ,EACA,KAAM,KACV,EACA,CACI,OAAQ,CACJ,MAAO,CAGH,uBAAwB,MAIxB,iBAAkB,MAIlB,YAAa,MAGb,WAAY,KAChB,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQH","sourcesContent":["import confusingBrowserGlobals from \"confusing-browser-globals\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../utils/create-config\";\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n rules: {\n // enforce or disallow variable initializations at definition\n \"init-declarations\": \"off\",\n\n // disallow the catch clause parameter name being the same as a variable in the outer scope\n \"no-catch-shadow\": \"off\",\n\n // disallow deletion of variables\n \"no-delete-var\": \"error\",\n\n // disallow labels that share a name with a variable\n // https://eslint.org/docs/rules/no-label-var\n \"no-label-var\": \"error\",\n\n // disallow specific globals\n \"no-restricted-globals\": [\n \"error\",\n {\n message: \"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite\",\n name: \"isFinite\",\n },\n {\n message: \"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan\",\n name: \"isNaN\",\n },\n ...confusingBrowserGlobals.map((g) => {\n return {\n name: g,\n message: `Use window.${g} instead. https://github.com/facebook/create-react-app/blob/HEAD/packages/confusing-browser-globals/README.md`,\n };\n }),\n ],\n\n // disallow declaration of variables already declared in the outer scope\n \"no-shadow\": \"error\",\n\n // disallow shadowing of names such as arguments\n \"no-shadow-restricted-names\": \"error\",\n\n // disallow use of undeclared variables unless mentioned in a /*global */ block\n \"no-undef\": \"error\",\n\n // disallow use of undefined when initializing variables\n \"no-undef-init\": \"error\",\n\n // allow use of undefined variable\n // https://eslint.org/docs/rules/no-undefined\n \"no-undefined\": \"off\",\n\n // disallow declaration of variables that are not used in the code\n \"no-unused-vars\": [\"error\", { args: \"after-used\", ignoreRestSiblings: true, vars: \"all\" }],\n\n // disallow use of variables before they are defined\n \"no-use-before-define\": [\"error\", { classes: true, functions: true, variables: true }],\n },\n },\n type: \"all\",\n },\n {\n config: {\n rules: {\n // Disallow member access on a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md\n \"no-use-before-define\": \"off\",\n\n // Disallow unsafe declaration merging.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md\n \"no-unused-vars\": \"off\",\n\n // Disallow invocation of require().\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md\n \"no-shadow\": \"off\",\n\n // Disallow unnecessary constraints on generic types.\n \"no-undef\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkR26SPKXH_js = require('./chunk-R26SPKXH.js');
4
- var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
5
- var packageJsonUtils = require('@anolilab/package-json-utils');
6
-
7
- !global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);var o={};global.hasAnolilabEsLintConfigPrettier&&(o={"array-bracket-newline":"off","array-bracket-spacing":"off","array-element-newline":"off","arrow-parens":"off","arrow-spacing":"off","block-spacing":"off","brace-style":"off","comma-dangle":"off","comma-spacing":"off","comma-style":"off","computed-property-spacing":"off",curly:0,"dot-location":"off","eol-last":"off","func-call-spacing":"off","function-call-argument-newline":"off","function-paren-newline":"off","generator-star-spacing":"off","implicit-arrow-linebreak":"off",indent:"off","jsx-quotes":"off","key-spacing":"off","keyword-spacing":"off","linebreak-style":"off","lines-around-comment":0,"max-len":0,"max-statements-per-line":"off","multiline-ternary":"off","new-parens":"off","newline-per-chained-call":"off","no-confusing-arrow":0,"no-extra-parens":"off","no-extra-semi":"off","no-floating-decimal":"off","no-mixed-operators":0,"no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":0,"no-trailing-spaces":"off","no-unexpected-multiline":0,"no-whitespace-before-property":"off","nonblock-statement-body-position":"off","object-curly-newline":"off","object-curly-spacing":"off","object-property-newline":"off","one-var-declaration-per-line":"off","operator-linebreak":"off","padded-blocks":"off","quote-props":"off",quotes:0,"rest-spread-spacing":"off",semi:"off","semi-spacing":"off","semi-style":"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-unary-ops":"off","switch-colon-spacing":"off","template-curly-spacing":"off","template-tag-spacing":"off","wrap-iife":"off","wrap-regex":"off","yield-star-spacing":"off"});var t=chunkWG6GTAIA_js.b([{config:{rules:{"array-bracket-newline":"off","array-bracket-spacing":["error","never"],"array-element-newline":"off","block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{ignoreDestructuring:!1,properties:"never"}],"capitalized-comments":["off","never",{block:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"},line:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"}}],"comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"always-multiline",imports:"always-multiline",objects:"always-multiline"}],"comma-spacing":["error",{after:!0,before:!1}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,NewExpression:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{considerPropertyDescriptor:!0,includeCommonJSModuleExports:!1}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-call-argument-newline":["error","consistent"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",chunkR26SPKXH_js.a,{ArrayExpression:1,CallExpression:{arguments:1},FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ImportDeclaration:1,ObjectExpression:1,SwitchCase:1,VariableDeclarator:1,flatTernaryExpressions:!1,ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],outerIIFEBody:1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{afterColon:!0,beforeColon:!1}],"keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"line-comment-position":"off","linebreak-style":["error","unix"],"lines-around-comment":"off","lines-around-directive":["error",{after:"always",before:"always"}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreUrls:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{IIFEs:!0,max:50,skipBlankLines:!0,skipComments:!0}],"max-nested-callbacks":"off","max-params":["off",3],"max-statements":["off",10],"max-statements-per-line":["off",{max:1}],"multiline-comment-style":["off","starred-block"],"multiline-ternary":["off","never"],"new-cap":["error",{capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"],newIsCap:!0,newIsCapExceptions:[]}],"new-parens":"error","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":["error",{ignoreChainWithDepth:4}],"no-array-constructor":"error","no-bitwise":"error","no-continue":"error","no-inline-comments":"off","no-lonely-if":"error","no-mixed-operators":["error",{allowSamePrecedence:!1,groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]]}],"no-mixed-spaces-and-tabs":"error","no-multi-assign":["error"],"no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"error","no-new-object":"error","no-plusplus":"error","no-restricted-syntax":["error",{message:"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.",selector:"ForInStatement"},{message:"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.",selector:"ForOfStatement"},{message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",selector:"LabeledStatement"},{message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",selector:"WithStatement"},{message:"`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.",selector:"CallExpression[callee.name=useMemo][arguments.1.type=ArrayExpression][arguments.1.elements.length=0]"},{message:"Use `.key` instead of `.keyCode`",selector:"MemberExpression > .property[type=Identifier][name=keyCode]"}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{ignoreComments:!1,skipBlankLines:!1}],"no-underscore-dangle":["error",{allow:["__DEV__","__STORYBOOK_CLIENT_API__","__STORYBOOK_ADDONS_CHANNEL__","__STORYBOOK_STORY_STORE__"],allowAfterSuper:!1,allowAfterThis:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-newline":["error",{ExportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ImportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ObjectExpression:{consistent:!0,minProperties:4,multiline:!0},ObjectPattern:{consistent:!0,minProperties:4,multiline:!0}}],"object-curly-spacing":["error","always"],"object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"one-var":["error","never"],"one-var-declaration-per-line":["error","always"],"operator-assignment":["error","always"],"operator-linebreak":["error","before",{overrides:{"=":"none"}}],"padded-blocks":["error",{blocks:"never",classes:"never",switches:"never"},{allowSingleLineBlocks:!0}],"padding-line-between-statements":"off","prefer-exponentiation-operator":"error","prefer-object-spread":"error","quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{after:!0,before:!1}],"semi-style":["error","last"],"sort-keys":"off","sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{nonwords:!1,overrides:{},words:!0}],"spaced-comment":["error","always",{block:{balanced:!0,exceptions:["-","+"],markers:["=","!",":","::"]},line:{exceptions:["-","+","*"],markers:["=","!","/"]}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off",...o}},type:"all"},{config:{rules:{"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}]}},type:"javascript"},{config:{rules:{"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","func-call-spacing":"off",indent:"off","keyword-spacing":"off","lines-between-class-members":"off",quotes:"off",semi:"off","space-before-function-paren":"off","no-array-constructor":"off"}},type:"typescript"}]),f=t;
8
-
9
- exports.a = f;
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=chunk-UGG52B5H.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/style.ts"],"names":["hasDependency","hasDevDependency","prettierRules","config","createConfigs","indent_default","style_default"],"mappings":"gFAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAM5C,CAAC,OAAO,kCAAoCD,EAAc,UAAU,GAAKC,EAAiB,UAAU,KACpG,OAAO,gCAAkC,IAG7C,IAAIC,EAAwC,CAAC,EAEzC,OAAO,kCACPA,EAAgB,CAEZ,wBAAyB,MACzB,wBAAyB,MACzB,wBAAyB,MACzB,eAAgB,MAChB,gBAAiB,MACjB,gBAAiB,MACjB,cAAe,MACf,eAAgB,MAEhB,gBAAiB,MACjB,cAAe,MACf,4BAA6B,MAE7B,MAAO,EACP,eAAgB,MAChB,WAAY,MACZ,oBAAqB,MACrB,iCAAkC,MAClC,yBAA0B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H,8BAA+B,CAAC,QAAS,SAAU,CAAE,sBAAuB,EAAM,CAAC,CACvF,CACJ,EACA,KAAM,YACV,EACA,CACI,OAAQ,CACJ,MAAO,CAEH,cAAe,MAEf,UAAW,MAEX,eAAgB,MAGhB,gBAAiB,MAGjB,oBAAqB,MAIrB,OAAQ,MAGR,kBAAmB,MAGnB,8BAA+B,MAI/B,OAAQ,MAIR,KAAM,MAIN,8BAA+B,MAK/B,uBAAwB,KAC5B,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMI,EAAQH","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../utils/create-config\";\nimport indent from \"../utils/indent\";\n\nif (!global.hasAnolilabEsLintConfigPrettier && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.hasAnolilabEsLintConfigPrettier = true;\n}\n\nlet prettierRules: Linter.Config[\"rules\"] = {};\n\nif (global.hasAnolilabEsLintConfigPrettier) {\n prettierRules = {\n // The rest are rules that you never need to enable when using Prettier.\n \"array-bracket-newline\": \"off\",\n \"array-bracket-spacing\": \"off\",\n \"array-element-newline\": \"off\",\n \"arrow-parens\": \"off\",\n \"arrow-spacing\": \"off\",\n \"block-spacing\": \"off\",\n \"brace-style\": \"off\",\n \"comma-dangle\": \"off\",\n\n \"comma-spacing\": \"off\",\n \"comma-style\": \"off\",\n \"computed-property-spacing\": \"off\",\n // script can distinguish them.)\n curly: 0,\n \"dot-location\": \"off\",\n \"eol-last\": \"off\",\n \"func-call-spacing\": \"off\",\n \"function-call-argument-newline\": \"off\",\n \"function-paren-newline\": \"off\",\n \"generator-star-spacing\": \"off\",\n \"implicit-arrow-linebreak\": \"off\",\n indent: \"off\",\n \"jsx-quotes\": \"off\",\n \"key-spacing\": \"off\",\n \"keyword-spacing\": \"off\",\n \"linebreak-style\": \"off\",\n \"lines-around-comment\": 0,\n \"max-len\": 0,\n \"max-statements-per-line\": \"off\",\n \"multiline-ternary\": \"off\",\n \"new-parens\": \"off\",\n \"newline-per-chained-call\": \"off\",\n \"no-confusing-arrow\": 0,\n \"no-extra-parens\": \"off\",\n \"no-extra-semi\": \"off\",\n \"no-floating-decimal\": \"off\",\n \"no-mixed-operators\": 0,\n \"no-mixed-spaces-and-tabs\": \"off\",\n \"no-multi-spaces\": \"off\",\n \"no-multiple-empty-lines\": \"off\",\n \"no-tabs\": 0,\n \"no-trailing-spaces\": \"off\",\n \"no-unexpected-multiline\": 0,\n \"no-whitespace-before-property\": \"off\",\n \"nonblock-statement-body-position\": \"off\",\n \"object-curly-newline\": \"off\",\n \"object-curly-spacing\": \"off\",\n \"object-property-newline\": \"off\",\n \"one-var-declaration-per-line\": \"off\",\n \"operator-linebreak\": \"off\",\n \"padded-blocks\": \"off\",\n \"quote-props\": \"off\",\n quotes: 0,\n \"rest-spread-spacing\": \"off\",\n semi: \"off\",\n \"semi-spacing\": \"off\",\n \"semi-style\": \"off\",\n \"space-before-blocks\": \"off\",\n \"space-before-function-paren\": \"off\",\n \"space-in-parens\": \"off\",\n \"space-unary-ops\": \"off\",\n \"switch-colon-spacing\": \"off\",\n \"template-curly-spacing\": \"off\",\n \"template-tag-spacing\": \"off\",\n \"wrap-iife\": \"off\",\n \"wrap-regex\": \"off\",\n \"yield-star-spacing\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfigs([\n {\n 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 // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\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\", { ignoreDestructuring: false, properties: \"never\" }],\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 block: {\n ignoreConsecutiveComments: true,\n ignoreInlineComments: true,\n ignorePattern: \".*\",\n },\n line: {\n ignoreConsecutiveComments: true,\n ignoreInlineComments: true,\n ignorePattern: \".*\",\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n arrays: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n imports: \"always-multiline\",\n objects: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { after: true, before: false }],\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 NewExpression: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: 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/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n considerPropertyDescriptor: true,\n includeCommonJSModuleExports: false,\n },\n ],\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-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\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 ArrayExpression: 1,\n CallExpression: {\n arguments: 1,\n },\n // MemberExpression: null,\n FunctionDeclaration: {\n body: 1,\n parameters: 1,\n },\n FunctionExpression: {\n body: 1,\n parameters: 1,\n },\n ImportDeclaration: 1,\n ObjectExpression: 1,\n SwitchCase: 1,\n VariableDeclarator: 1,\n flatTernaryExpressions: false,\n ignoreComments: 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 outerIIFEBody: 1,\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\", { afterColon: true, beforeColon: false }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n after: true,\n before: true,\n overrides: {\n case: { after: true },\n return: { after: true },\n throw: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n \"line-comment-position\": \"off\",\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 // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n after: \"always\",\n before: \"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 ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n ignoreUrls: 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 IIFEs: true,\n max: 50,\n skipBlankLines: true,\n skipComments: 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 capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n newIsCap: true,\n newIsCapExceptions: [],\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 allowSamePrecedence: false,\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\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 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 selector: \"ForInStatement\",\n },\n {\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 selector: \"ForOfStatement\",\n },\n {\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n selector: \"LabeledStatement\",\n },\n {\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n selector: \"WithStatement\",\n },\n {\n message: \"`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.\",\n selector: \"CallExpression[callee.name=useMemo][arguments.1.type=ArrayExpression][arguments.1.elements.length=0]\",\n },\n {\n message: \"Use `.key` instead of `.keyCode`\",\n selector: \"MemberExpression > .property[type=Identifier][name=keyCode]\",\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 ignoreComments: false,\n skipBlankLines: 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__\", \"__STORYBOOK_CLIENT_API__\", \"__STORYBOOK_ADDONS_CHANNEL__\", \"__STORYBOOK_STORY_STORE__\"],\n allowAfterSuper: false,\n allowAfterThis: 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 // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ExportDeclaration: { consistent: true, minProperties: 4, multiline: true },\n ImportDeclaration: { consistent: true, minProperties: 4, multiline: true },\n ObjectExpression: { consistent: true, minProperties: 4, multiline: true },\n ObjectPattern: { consistent: true, minProperties: 4, multiline: true },\n },\n ],\n\n // enforce line breaks between braces\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\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, numbers: false, unnecessary: true }],\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\", { after: true, before: false }],\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 // Disabled because of perfectionist/sort-objects\n \"sort-keys\": \"off\",\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 asyncArrow: \"always\",\n named: \"never\",\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 nonwords: false,\n overrides: {},\n words: true,\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 block: {\n balanced: true,\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n },\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\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 ...prettierRules,\n },\n },\n type: \"all\",\n },\n {\n config: {\n rules: {\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n },\n },\n type: \"javascript\",\n },\n {\n config: {\n rules: {\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md\n \"brace-style\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md\n camelcase: \"off\",\n // The TypeScript version also adds 3 new options, all of which should be set to the same value as the base config\n \"comma-dangle\": \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md\n \"comma-spacing\": \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md\n \"func-call-spacing\": \"off\",\n\n // Require that function overload signatures be consecutive.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md\n indent: \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md\n \"keyword-spacing\": \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md\n \"lines-between-class-members\": \"off\",\n\n // Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md\n quotes: \"off\",\n\n // Require each enum member value to be explicitly initialized.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md\n semi: \"off\",\n\n // Enforce using function types instead of interfaces with call signatures.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md\n \"space-before-function-paren\": \"off\",\n\n // Some built-in types have aliases, while some types are considered dangerous or harmful.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/ban-types.md\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md\n \"no-array-constructor\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- var r=s=>{switch(s){case"typescript":return ["**/*.ts","**/*.d.ts","**/*.tsx","**/*.mts","**/*.cts"];case"jsx_and_tsx":return ["**/*.jsx","**/*.tsx"];case"js_and_ts":return ["**/*.js","**/*.mjs","**/*.cjs","**/*.ts","**/*.d.ts","**/*.mts","**/*.cts"];case"javascript":return ["**/*.js","**/*.mjs","**/*.cjs"];case"all":return ["**/*.js","**/*.jsx","**/*.mjs","**/*.cjs","**/*.ts","**/*.d.ts","**/*.tsx","**/*.mts","**/*.cts"];case"markdown":return ["**/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return ["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"mdx":return ["**/*.mdx"];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)"];case"d.ts":return ["**/*.d.ts"];case"postcss":return ["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];default:throw new Error("Unknown type")}},j=(s,t,e)=>({env:e,overrides:[{files:r(s),...t}]}),n=s=>({overrides:s.map(({config:t,type:e})=>({files:r(e),...t}))});
4
-
5
- exports.a = j;
6
- exports.b = n;
7
- //# sourceMappingURL=out.js.map
8
- //# sourceMappingURL=chunk-WG6GTAIA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/create-config.ts"],"names":["getType","fileType","createConfig","type","config","environment","createConfigs","rules"],"mappings":"AAkBA,IAAMA,EAAWC,GAAuB,CACpC,OAAQA,EAAU,CACd,IAAK,aAED,MAAO,CAAC,UAAW,YAAa,WAAY,WAAY,UAAU,EAEtE,IAAK,cACD,MAAO,CAAC,WAAY,UAAU,EAElC,IAAK,YACD,MAAO,CAAC,UAAW,WAAY,WAAY,UAAW,YAAa,WAAY,UAAU,EAE7F,IAAK,aACD,MAAO,CAAC,UAAW,WAAY,UAAU,EAE7C,IAAK,MACD,MAAO,CAAC,UAAW,WAAY,WAAY,WAAY,UAAW,YAAa,WAAY,WAAY,UAAU,EAErH,IAAK,WACD,MAAO,CAAC,+BAA+B,EAE3C,IAAK,yBACD,MAAO,CAAC,+DAA+D,EAE3E,IAAK,MACD,MAAO,CAAC,UAAU,EAEtB,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,IAAK,OACD,MAAO,CAAC,WAAW,EAEvB,IAAK,UACD,MAAO,CAAC,uBAAwB,kBAAmB,wBAAyB,kBAAkB,EAElG,QACI,MAAM,IAAI,MAAM,cAAc,CAEtC,CACJ,EAEaC,EAAe,CAACC,EAAgBC,EAA8CC,KAChF,CACH,IAAKA,EACL,UAAW,CACP,CACI,MAAOL,EAAQG,CAAI,EACnB,GAAGC,CACP,CACJ,CACJ,GAESE,EACTC,IAKO,CACH,UAAWA,EAAM,IAAI,CAAC,CAAE,OAAAH,EAAQ,KAAAD,CAAK,KAC1B,CACH,MAAOH,EAAQG,CAAI,EACnB,GAAGC,CACP,EACH,CACL","sourcesContent":["import type { Linter } from \"eslint\";\n\ntype FileType =\n | \"all\"\n | \"ava\"\n | \"d.ts\"\n | \"javascript\"\n | \"jest\"\n | \"js_and_ts\"\n | \"jsx_and_tsx\"\n | \"markdown_inline_js_jsx\"\n | \"markdown\"\n | \"mdx\"\n | \"postcss\"\n | \"tests\"\n | \"typescript\"\n | \"vitest\";\n\nconst getType = (fileType: FileType) => {\n switch (fileType) {\n case \"typescript\": {\n // @see https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions\n return [\"**/*.ts\", \"**/*.d.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\", \"**/*.d.ts\", \"**/*.mts\", \"**/*.cts\"];\n }\n case \"javascript\": {\n return [\"**/*.js\", \"**/*.mjs\", \"**/*.cjs\"];\n }\n case \"all\": {\n return [\"**/*.js\", \"**/*.jsx\", \"**/*.mjs\", \"**/*.cjs\", \"**/*.ts\", \"**/*.d.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"];\n }\n case \"markdown\": {\n return [\"**/*.{md,mkdn,mdown,markdown}\"];\n }\n case \"markdown_inline_js_jsx\": {\n return [\"**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}\"];\n }\n case \"mdx\": {\n return [\"**/*.mdx\"];\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 case \"d.ts\": {\n return [\"**/*.d.ts\"];\n }\n case \"postcss\": {\n return [\"**/postcss.config.js\", \"**/postcssrc.js\", \"**/postcss.config.cjs\", \"**/postcssrc.cjs\"];\n }\n default: {\n throw new Error(\"Unknown type\");\n }\n }\n};\n\nexport const createConfig = (type: FileType, config: Omit<Linter.ConfigOverride, \"files\">, environment?: Record<string, boolean>): 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, \"files\">;\n type: FileType;\n }[],\n): Linter.Config => {\n return {\n overrides: rules.map(({ config, type }) => {\n return {\n files: getType(type),\n ...config,\n };\n }),\n };\n};\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var packageJsonUtils = require('@anolilab/package-json-utils');
4
-
5
- !global.anolilabEslintPackageJsonConfig&&packageJsonUtils.pkg&&(global.anolilabEslintPackageJsonConfig=packageJsonUtils.pkg.anolilab?.["eslint-config"]);var o=global.anolilabEslintPackageJsonConfig??{},a=o;
6
-
7
- exports.a = a;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-WW4PDMXQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils/eslint-config.ts"],"names":["pkg","config","eslint_config_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAEhB,CAAC,OAAO,iCAAmCA,IAE3C,OAAO,gCAAkCA,EAAI,WAAc,eAAe,GAG9E,IAAMC,EAAyD,OAAO,iCAAmC,CAAC,EAEnGC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\n\nif (!global.anolilabEslintPackageJsonConfig && pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n global.anolilabEslintPackageJsonConfig = pkg[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nconst config: Record<string, string[] | boolean | undefined> = global.anolilabEslintPackageJsonConfig ?? {};\n\nexport default config;\n"]}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkA6LXZAWN_js = require('../chunk-A6LXZAWN.js');
4
- require('../chunk-WG6GTAIA.js');
5
- require('../chunk-5RAVHY5O.js');
6
-
7
-
8
-
9
- module.exports = chunkA6LXZAWN_js.a;
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=best-practices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkRG6NJDJA_js = require('../chunk-RG6NJDJA.js');
4
- require('../chunk-WG6GTAIA.js');
5
- require('../chunk-5RAVHY5O.js');
6
-
7
-
8
-
9
- module.exports = chunkRG6NJDJA_js.a;
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkMKL3NIXX_js = require('../chunk-MKL3NIXX.js');
4
- require('../chunk-WG6GTAIA.js');
5
- require('../chunk-5RAVHY5O.js');
6
-
7
-
8
-
9
- module.exports = chunkMKL3NIXX_js.a;
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
4
- require('../../chunk-5RAVHY5O.js');
5
- var packageJsonUtils = require('@anolilab/package-json-utils');
6
-
7
- var t=chunkWG6GTAIA_js.a("all",{plugins:["antfu"],rules:{"antfu/generic-spacing":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-cjs-exports":packageJsonUtils.packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":packageJsonUtils.hasTypescript?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off"}}),i=t;
8
-
9
- module.exports = i;
10
- //# sourceMappingURL=out.js.map
11
- //# sourceMappingURL=antfu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/config/plugins/antfu.ts"],"names":["hasTypescript","packageIsTypeModule","config","createConfig","antfu_default"],"mappings":"4EAAA,OAAS,iBAAAA,EAAe,uBAAAC,MAA2B,+BAKnD,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,wBAAyB,QACzB,mBAAoB,QACpB,sBAAuB,QACvB,uBAAwBF,EAAsB,QAAU,MACxD,2BAA4BD,EAAgB,QAAU,MACtD,kCAAmC,MACnC,2BAA4B,KAChC,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/generic-spacing\": \"error\",\n \"antfu/if-newline\": \"error\",\n \"antfu/import-dedupe\": \"error\",\n \"antfu/no-cjs-exports\": packageIsTypeModule ? \"error\" : \"off\",\n \"antfu/no-ts-export-equal\": hasTypescript ? \"error\" : \"off\",\n \"antfu/prefer-inline-type-import\": \"off\",\n \"antfu/top-level-function\": \"off\",\n },\n});\n\nexport default config;\n"]}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
4
- require('../../chunk-5RAVHY5O.js');
5
-
6
- var e=chunkWG6GTAIA_js.a("all",{extends:["plugin:array-func/recommended"],plugins:["array-func"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
7
-
8
- module.exports = a;
9
- //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=array-func.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/config/plugins/array-func.ts"],"names":["config","createConfig","array_func_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,+BAA+B,EACzC,QAAS,CAAC,YAAY,EACtB,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 extends: [\"plugin:array-func/recommended\"],\n plugins: [\"array-func\"],\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,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- require('../../chunk-5RAVHY5O.js');
4
-
5
- var e={overrides:[{env:{es6:!0},extends:"plugin:ava/recommended",files:["test.js","src/test.js","source/test.js","**/test-*.js","**/*.spec.js","**/*.test.js","**/test/**/*.js","**/tests/**/*.js","**/__tests__/**/*.js"],parserOptions:{ecmaVersion:"latest",sourceType:"module"},plugins:["ava"]}]},s=e;
6
-
7
- module.exports = s;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=ava.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/config/plugins/ava.ts"],"names":["config","ava_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,IAAK,CACD,IAAK,EACT,EACA,QAAS,yBAET,MAAO,CACH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,sBACJ,EACA,cAAe,CACX,YAAa,SACb,WAAY,QAChB,EACA,QAAS,CAAC,KAAK,CACnB,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n overrides: [\n {\n env: {\n es6: true,\n },\n extends: \"plugin:ava/recommended\",\n // Default ava test search patterns\n files: [\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 parserOptions: {\n ecmaVersion: \"latest\",\n sourceType: \"module\",\n },\n plugins: [\"ava\"],\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkUGG52B5H_js = require('../../chunk-UGG52B5H.js');
4
- require('../../chunk-R26SPKXH.js');
5
- require('../../chunk-WW4PDMXQ.js');
6
- var chunkA6LXZAWN_js = require('../../chunk-A6LXZAWN.js');
7
- var chunkRG6NJDJA_js = require('../../chunk-RG6NJDJA.js');
8
- var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
9
- require('../../chunk-5RAVHY5O.js');
10
- var packageJsonUtils = require('@anolilab/package-json-utils');
11
-
12
- var n=chunkA6LXZAWN_js.a.overrides[0].rules,t=chunkRG6NJDJA_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules;global.anolilabEslintConfigBabelPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigBabelPrettierRules={"@babel/object-curly-spacing":"off","@babel/semi":"off","babel/quotes":0});var f=chunkWG6GTAIA_js.a("all",{plugins:["babel"],rules:{"babel/camelcase":[...e.camelcase],"babel/new-cap":e["new-cap"],"babel/no-invalid-this":n["no-invalid-this"],"babel/no-unused-expressions":n["no-unused-expressions"],"babel/object-curly-spacing":e["object-curly-spacing"],"babel/quotes":e.quotes,"babel/semi":e.semi,"babel/valid-typeof":t["valid-typeof"],camelcase:"off","new-cap":"off","no-invalid-this":"off","no-unused-expressions":"off","object-curly-spacing":"off",quotes:"off",semi:"off","valid-typeof":"off",...global.anolilabEslintConfigBabelPrettierRules}}),m=f;
13
-
14
- module.exports = m;
15
- //# sourceMappingURL=out.js.map
16
- //# sourceMappingURL=babel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasDependency","hasDevDependency","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","createConfig","babel_default"],"mappings":"gRAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAShD,IAAMC,EAAqBC,EAAoB,UAAU,CAAC,EAAE,MAEtDC,EAAcC,EAAa,UAAU,CAAC,EAAE,MAExCC,EAAaC,EAAY,UAAU,CAAC,EAAE,MAExC,OAAO,yCAA2C,SAAcP,EAAc,UAAU,GAAKC,EAAiB,UAAU,KACxH,OAAO,uCAAyC,CAC5C,8BAA+B,MAE/B,cAAe,MACf,eAAgB,CACpB,GAGJ,IAAMO,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CAEH,kBAAmB,CAAC,GAAIH,EAAW,SAA0B,EAC7D,gBAAiBA,EAAW,SAAS,EAErC,wBAAyBJ,EAAmB,iBAAiB,EAC7D,8BAA+BA,EAAmB,uBAAuB,EAEzE,6BAA8BI,EAAW,sBAAsB,EAC/D,eAAgBA,EAAW,OAE3B,aAAcA,EAAW,KACzB,qBAAsBF,EAAY,cAAc,EAEhD,UAAW,MACX,UAAW,MAEX,kBAAmB,MACnB,wBAAyB,MAEzB,uBAAwB,MACxB,OAAQ,MAER,KAAM,MACN,eAAgB,MAEhB,GAAG,OAAO,sCACd,CACJ,CAAC,EAEMM,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } 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\n// @ts-expect-error TODO: find the correct type\nconst bestPracticesRules = bestPracticesConfig.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\nconst errorsRules = errorsConfig.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\nconst styleRules = styleConfig.overrides[0].rules as Linter.RulesRecord;\n\nif (global.anolilabEslintConfigBabelPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigBabelPrettierRules = {\n \"@babel/object-curly-spacing\": \"off\",\n\n \"@babel/semi\": \"off\",\n \"babel/quotes\": 0,\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n // Deep clone to avoid object mutation weirdness\n \"babel/camelcase\": [...(styleRules[\"camelcase\"] as unknown[])] as Linter.RuleEntry,\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n \"babel/quotes\": styleRules[\"quotes\"],\n\n \"babel/semi\": styleRules[\"semi\"],\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n camelcase: \"off\",\n \"new-cap\": \"off\",\n\n \"no-invalid-this\": \"off\",\n \"no-unused-expressions\": \"off\",\n\n \"object-curly-spacing\": \"off\",\n quotes: \"off\",\n\n semi: \"off\",\n \"valid-typeof\": \"off\",\n\n ...global.anolilabEslintConfigBabelPrettierRules,\n },\n});\n\nexport default config;\n"]}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- require('../../chunk-5RAVHY5O.js');
4
-
5
- var e={extends:["plugin:compat/recommended"]},t=e;
6
-
7
- module.exports = t;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=compat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/config/plugins/compat.ts"],"names":["config","compat_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,2BAA2B,CACzC,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n extends: [\"plugin:compat/recommended\"],\n};\n\nexport default config;\n"]}
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.Config;
4
-
5
- export { config as default };