@anolilab/eslint-config 7.3.2 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +35 -23
  3. package/dist/chunk-3NVDJZNH.js +7 -0
  4. package/dist/chunk-3NVDJZNH.js.map +1 -0
  5. package/dist/{chunk-SV64EPVP.js → chunk-6COSQA7M.js} +2 -2
  6. package/dist/chunk-6COSQA7M.js.map +1 -0
  7. package/dist/chunk-BH4PQLFK.js +10 -0
  8. package/dist/chunk-BH4PQLFK.js.map +1 -0
  9. package/dist/chunk-KKHL2OSJ.js +7 -0
  10. package/dist/chunk-KKHL2OSJ.js.map +1 -0
  11. package/dist/chunk-MQFZFF2T.js +7 -0
  12. package/dist/chunk-MQFZFF2T.js.map +1 -0
  13. package/dist/chunk-PW4WCSOE.js +9 -0
  14. package/dist/chunk-PW4WCSOE.js.map +1 -0
  15. package/dist/{chunk-UYUXBUWX.js → chunk-SEYYGHPU.js} +1 -1
  16. package/dist/chunk-SEYYGHPU.js.map +1 -0
  17. package/dist/chunk-TWVXPNWB.js +9 -0
  18. package/dist/chunk-TWVXPNWB.js.map +1 -0
  19. package/dist/{chunk-U5H7JNHH.js → chunk-VW5ZVT2B.js} +2 -2
  20. package/dist/{chunk-U5H7JNHH.js.map → chunk-VW5ZVT2B.js.map} +1 -1
  21. package/dist/{chunk-UJAIXHCQ.js → chunk-ZFO6DTP4.js} +2 -2
  22. package/dist/{chunk-UJAIXHCQ.js.map → chunk-ZFO6DTP4.js.map} +1 -1
  23. package/dist/config/best-practices.js +3 -2
  24. package/dist/config/errors.js +3 -2
  25. package/dist/config/es6.js +3 -2
  26. package/dist/config/plugins/antfu.js +3 -2
  27. package/dist/config/plugins/antfu.js.map +1 -1
  28. package/dist/config/plugins/array-func.js +3 -2
  29. package/dist/config/plugins/array-func.js.map +1 -1
  30. package/dist/config/plugins/ava.js +3 -1
  31. package/dist/config/plugins/ava.js.map +1 -1
  32. package/dist/config/plugins/babel.js +7 -5
  33. package/dist/config/plugins/babel.js.map +1 -1
  34. package/dist/config/plugins/compat.js +2 -0
  35. package/dist/config/plugins/compat.js.map +1 -1
  36. package/dist/config/plugins/cypress.js +2 -0
  37. package/dist/config/plugins/cypress.js.map +1 -1
  38. package/dist/config/plugins/es.js +3 -2
  39. package/dist/config/plugins/es.js.map +1 -1
  40. package/dist/config/plugins/eslint-comments.js +3 -1
  41. package/dist/config/plugins/eslint-comments.js.map +1 -1
  42. package/dist/config/plugins/etc.js +3 -2
  43. package/dist/config/plugins/etc.js.map +1 -1
  44. package/dist/config/plugins/html.js +4 -3
  45. package/dist/config/plugins/html.js.map +1 -1
  46. package/dist/config/plugins/import.js +3 -2
  47. package/dist/config/plugins/jest-async.js +2 -0
  48. package/dist/config/plugins/jest-async.js.map +1 -1
  49. package/dist/config/plugins/jest-dom.js +2 -0
  50. package/dist/config/plugins/jest-dom.js.map +1 -1
  51. package/dist/config/plugins/jest-formatting.js +2 -0
  52. package/dist/config/plugins/jest-formatting.js.map +1 -1
  53. package/dist/config/plugins/jest.js +3 -1
  54. package/dist/config/plugins/jest.js.map +1 -1
  55. package/dist/config/plugins/jsdoc.js +4 -3
  56. package/dist/config/plugins/jsdoc.js.map +1 -1
  57. package/dist/config/plugins/jsonc.js +4 -3
  58. package/dist/config/plugins/jsonc.js.map +1 -1
  59. package/dist/config/plugins/jsx-a11y.js +2 -1
  60. package/dist/config/plugins/jsx-a11y.js.map +1 -1
  61. package/dist/config/plugins/lodash-fp.js +2 -0
  62. package/dist/config/plugins/lodash-fp.js.map +1 -1
  63. package/dist/config/plugins/lodash.js +3 -1
  64. package/dist/config/plugins/lodash.js.map +1 -1
  65. package/dist/config/plugins/markdown.js +3 -1
  66. package/dist/config/plugins/markdown.js.map +1 -1
  67. package/dist/config/plugins/mdx.js +3 -1
  68. package/dist/config/plugins/mdx.js.map +1 -1
  69. package/dist/config/plugins/no-extend-native.js +2 -0
  70. package/dist/config/plugins/no-extend-native.js.map +1 -1
  71. package/dist/config/plugins/no-loops.js +2 -0
  72. package/dist/config/plugins/no-loops.js.map +1 -1
  73. package/dist/config/plugins/no-secrets.js +3 -1
  74. package/dist/config/plugins/no-secrets.js.map +1 -1
  75. package/dist/config/plugins/no-unsanitized.js +2 -0
  76. package/dist/config/plugins/no-unsanitized.js.map +1 -1
  77. package/dist/config/plugins/node.js +2 -1
  78. package/dist/config/plugins/node.js.map +1 -1
  79. package/dist/config/plugins/playwright.js +2 -1
  80. package/dist/config/plugins/playwright.js.map +1 -1
  81. package/dist/config/plugins/promise.js +2 -0
  82. package/dist/config/plugins/promise.js.map +1 -1
  83. package/dist/config/plugins/react-hooks.js +3 -1
  84. package/dist/config/plugins/react-hooks.js.map +1 -1
  85. package/dist/config/plugins/react-redux.js +3 -1
  86. package/dist/config/plugins/react-redux.js.map +1 -1
  87. package/dist/config/plugins/react.js +10 -7
  88. package/dist/config/plugins/react.js.map +1 -1
  89. package/dist/config/plugins/regexp.js +3 -2
  90. package/dist/config/plugins/regexp.js.map +1 -1
  91. package/dist/config/plugins/security.js +4 -2
  92. package/dist/config/plugins/security.js.map +1 -1
  93. package/dist/config/plugins/simple-import-sort.js +3 -1
  94. package/dist/config/plugins/simple-import-sort.js.map +1 -1
  95. package/dist/config/plugins/sonarjs.js +3 -2
  96. package/dist/config/plugins/sonarjs.js.map +1 -1
  97. package/dist/config/plugins/sort-keys-fix.js +2 -0
  98. package/dist/config/plugins/sort-keys-fix.js.map +1 -1
  99. package/dist/config/plugins/storybook.js +3 -1
  100. package/dist/config/plugins/storybook.js.map +1 -1
  101. package/dist/config/plugins/tailwindcss.js +3 -2
  102. package/dist/config/plugins/tailwindcss.js.map +1 -1
  103. package/dist/config/plugins/tanstack-query.js +3 -2
  104. package/dist/config/plugins/tanstack-query.js.map +1 -1
  105. package/dist/config/plugins/testing-library.js +4 -3
  106. package/dist/config/plugins/testing-library.js.map +1 -1
  107. package/dist/config/plugins/toml.js +3 -1
  108. package/dist/config/plugins/toml.js.map +1 -1
  109. package/dist/config/plugins/tsdoc.js +3 -2
  110. package/dist/config/plugins/tsdoc.js.map +1 -1
  111. package/dist/config/plugins/typescript-sort-keys.js +2 -0
  112. package/dist/config/plugins/typescript-sort-keys.js.map +1 -1
  113. package/dist/config/plugins/typescript.js +9 -7
  114. package/dist/config/plugins/typescript.js.map +1 -1
  115. package/dist/config/plugins/unicorn.js +4 -3
  116. package/dist/config/plugins/unicorn.js.map +1 -1
  117. package/dist/config/plugins/vitest.js +3 -1
  118. package/dist/config/plugins/vitest.js.map +1 -1
  119. package/dist/config/plugins/yml.js +4 -3
  120. package/dist/config/plugins/yml.js.map +1 -1
  121. package/dist/config/plugins/you-dont-need-lodash-underscore.js +2 -0
  122. package/dist/config/plugins/you-dont-need-lodash-underscore.js.map +1 -1
  123. package/dist/config/plugins/you-dont-need-momentjs.js +2 -0
  124. package/dist/config/plugins/you-dont-need-momentjs.js.map +1 -1
  125. package/dist/config/plugins/zod.js +2 -0
  126. package/dist/config/plugins/zod.js.map +1 -1
  127. package/dist/config/style.js +4 -2
  128. package/dist/config/variables.js +3 -2
  129. package/dist/index.js +11 -10
  130. package/dist/index.js.map +1 -1
  131. package/dist/postinstall.js +6 -3
  132. package/dist/postinstall.js.map +1 -1
  133. package/dist/typescript-type-checking.js +4 -3
  134. package/dist/typescript-type-checking.js.map +1 -1
  135. package/package.json +13 -11
  136. package/dist/chunk-5S3UQ6WJ.js +0 -7
  137. package/dist/chunk-5S3UQ6WJ.js.map +0 -1
  138. package/dist/chunk-GGJONTGP.js +0 -7
  139. package/dist/chunk-GGJONTGP.js.map +0 -1
  140. package/dist/chunk-NE6XHV4I.js +0 -9
  141. package/dist/chunk-NE6XHV4I.js.map +0 -1
  142. package/dist/chunk-SV64EPVP.js.map +0 -1
  143. package/dist/chunk-UYUXBUWX.js.map +0 -1
  144. package/dist/chunk-XJPLKY3T.js +0 -9
  145. package/dist/chunk-XJPLKY3T.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/es6.ts"],"names":["config","es6_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,IAAK,CACD,IAAK,EACT,EACA,cAAe,CACX,YAAa,EACb,WAAY,SACZ,aAAc,CACV,WAAY,GACZ,iCAAkC,EACtC,CACJ,EACA,MAAO,CAGH,mBAAoB,CAChB,QACA,YACA,CACI,8BAA+B,EACnC,CACJ,EAIA,eAAgB,CAAC,QAAS,QAAQ,EAIlC,gBAAiB,CAAC,QAAS,CAAE,OAAQ,GAAM,MAAO,EAAK,CAAC,EAGxD,oBAAqB,QAIrB,yBAA0B,CAAC,QAAS,CAAE,OAAQ,GAAO,MAAO,EAAK,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,OAAQ,GACR,MAAO,GACP,YAAa,GACb,UAAW,GACX,cAAe,EACnB,EAEA,uBAAwB,CAAC,MAAM,CACnC,CACJ,EAIA,wBAAyB,CACrB,QACA,CACI,MAAO,CACH,CACI,KAAM,iBACN,QACI,+HACR,EACA,CACI,KAAM,kBACN,QACI,+HACR,EACA,CACI,KAAM,mBACN,QACI,+HACR,EACA,CACI,KAAM,cACN,QACI,+HACR,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,KAAM,cACN,QAAS,2GACb,EACA,CACI,KAAM,SACN,QAAS,oFACb,EACA,CACI,KAAM,SACN,QAAS,6CACb,EACA,CACI,KAAM,QACN,QAAS,+CACb,EACA,CACI,KAAM,QACN,QAAS,+CACb,EACA,CACI,KAAM,gBACN,QAAS,+CACb,EACA,CACI,KAAM,iBACN,QA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A,qBAAsB,QAItB,yBAA0B,QAI1B,qBAAsB,CAAC,QAAS,OAAO,CAC3C,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n env: {\n es6: true,\n },\n parserOptions: {\n ecmaVersion: 6,\n sourceType: \"module\",\n ecmaFeatures: {\n generators: false,\n objectLiteralDuplicateProperties: false,\n },\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\", { before: true, after: 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\", { before: false, after: true }],\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 direct: false, // permits `export default` declarations\n named: true, // restricts `export { foo as default };` declarations\n defaultFrom: false, // permits `export { default } from 'foo';` 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 name: \"lodash.isequal\",\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n },\n {\n name: \"lodash.uniqueId\",\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n },\n {\n name: \"lodash.mergewith\",\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\n },\n {\n name: \"lodash.pick\",\n message:\n \"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead\",\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 name: \"querystring\",\n message: 'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try \"qs\" as a package',\n },\n {\n name: \"colors\",\n message: \"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors\",\n },\n {\n name: \"mkdirp\",\n message: \"node v10.12 mkdir supports recursive option\",\n },\n {\n name: \"faker\",\n message: 'Please use \"@faker-js/faker\" as a replacement',\n },\n {\n name: \"xtend\",\n message: \"Please use Object.assign or spread { ...obj }\",\n },\n {\n name: \"object-assign\",\n message: \"Please use Object.assign or spread { ...obj }\",\n },\n {\n name: \"extend-shallow\",\n message: \"Please use Object.assign or spread { ...obj }\",\n },\n {\n name: \"rimraf\",\n message: \"node supports recursive option now\",\n },\n {\n name: \"pad-left\",\n message: 'just use \"\".padStart() and \"\".padEnd()',\n },\n {\n name: \"pad-right\",\n message: 'just use \"\".padStart() and \"\".padEnd()',\n },\n {\n name: \"left-pad\",\n message: 'just use \"\".padStart() and \"\".padEnd()',\n },\n {\n name: \"right-pad\",\n message: 'just use \"\".padStart() and \"\".padEnd()',\n },\n {\n name: \"pad\",\n message: 'just use \"\".padStart() and \"\".padEnd()',\n },\n {\n name: \"safe-buffer\",\n },\n {\n name: \"safer-buffer\",\n },\n {\n name: \"array-flatten\",\n message: \"just use [].flat() or some other polyfill\",\n },\n {\n name: \"request\",\n message: \"Been deprecated\",\n },\n {\n name: \"co\",\n message: \"use async/await instead\",\n },\n {\n name: \"windows-1252\",\n message: \"Please use TextDecoder instead\",\n },\n {\n name: \"string_decoder\",\n message: \"Please use TextDecoder instead\",\n },\n {\n name: \"concat-map\",\n message: \"Please use array.prototype.flatMap instead\",\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 ignoreImport: false,\n ignoreExport: 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 ignoreConstructors: false,\n avoidQuotes: true,\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 VariableDeclarator: {\n array: false,\n object: true,\n },\n AssignmentExpression: {\n array: true,\n object: false,\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\nexport default config;\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var packageJsonUtils = require('@anolilab/package-json-utils');
4
-
5
- var r={env:{es6:!0},parserOptions:{ecmaVersion:6,sourceType:"module"},plugins:["import"],overrides:[{files:["*.js","*.jsx","*.mjs","*.cjs","*.ts","*.tsx","*.mts","*.cts"],settings:{"import/resolver":{node:{extensions:[".mjs",".js",".json"]},...packageJsonUtils.hasTypescript?{typescript:{alwaysTryTypes:!0,project:packageJsonUtils.fromRoot("tsconfig.json")}}:{}},...packageJsonUtils.hasTypescript?{"import/parsers":{"@typescript-eslint/parser":[".ts",".tsx"]}}:{},"import/extensions":[".js",".cjs",".mjs",".jsx"],"import/core-modules":[],"import/ignore":["\\.(coffee|scss|css|less|hbs|svg|json)$"]},rules:{"import/no-unresolved":["error",{commonjs:!0,caseSensitive:!0}],"import/named":"error","import/default":"off","import/namespace":"off","import/export":"error","import/no-named-as-default":"error","import/no-named-as-default-member":"error","import/no-deprecated":"off","import/no-extraneous-dependencies":["error",{devDependencies:["test/**","tests/**","spec/**","**/fixture/**","**/__mocks__/**","test.{js,jsx}","test-*.{js,jsx}","**/*{.,_}{test,spec}.{js,jsx}","**/jest.config.cjs","**/jest.setup.js","**/vue.config.cjs","**/webpack.config.cjs","**/webpack.config.*.js","**/rollup.config.cjs","**/rollup.config.*.js","**/gulpfile.js","**/gulpfile.*.js","**/Gruntfile{,.js}","**/protractor.conf.js","**/protractor.conf.*.js","**/karma.conf.js","**/.eslintrc.js","**/.eslintrc.cjs","**/.eslintrc.mjs","**/vite.config.js","**/vite.config.ts","**/vitest.config.js","**/vitest.config.ts","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],optionalDependencies:!1}],"import/no-mutable-exports":"error","import/no-commonjs":"off","import/no-amd":"error","import/no-nodejs-modules":"off","import/first":"error","import/imports-first":"off","import/no-duplicates":"error","import/no-namespace":"error","import/extensions":["error","ignorePackages",{js:"never",mjs:"never",jsx:"never"}],"import/order":["error",{groups:[["builtin","external","internal"]]}],"import/newline-after-import":"error","import/prefer-default-export":"error","import/no-restricted-paths":"off","import/max-dependencies":["off",{max:10}],"import/no-absolute-path":"error","import/no-dynamic-require":"error","import/no-internal-modules":["off",{allow:[]}],"import/unambiguous":"off","import/no-webpack-loader-syntax":"error","import/no-unassigned-import":"off","import/no-named-default":"error","import/no-anonymous-default-export":["off",{allowArray:!1,allowArrowFunction:!1,allowAnonymousClass:!1,allowAnonymousFunction:!1,allowLiteral:!1,allowObject:!1}],"import/exports-last":"error","import/group-exports":"off","import/no-default-export":"off","import/no-named-export":"off","import/no-self-import":"error","import/no-cycle":["error",{maxDepth:"\u221E"}],"import/no-useless-path-segments":["error",{commonjs:!0,noUselessIndex:!0}],"import/dynamic-import-chunkname":["off",{importFunctions:[],webpackChunknameFormat:"[0-9a-zA-Z-_/.]+"}],"import/no-relative-parent-imports":"off","import/no-unused-modules":"off","import/consistent-type-specifier-style":["off","prefer-inline"],"import/no-empty-named-blocks":"error"}},{files:["*.ts","*.tsx","*.mts","*.cts"],rules:{"import/export":"off","import/default":"off","import/named":"off"}}]},s=r;
6
-
7
- exports.a = s;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-NE6XHV4I.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/plugins/import.ts"],"names":["fromRoot","hasTypescript","config","import_default"],"mappings":"AAAA,OAAS,YAAAA,EAAU,iBAAAC,MAAqB,+BAGxC,IAAMC,EAAwB,CAC1B,IAAK,CACD,IAAK,EACT,EACA,cAAe,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/B,+BAAgC,QAIhC,6BAA8B,MAI9B,0BAA2B,CAAC,MAAO,CAAE,IAAK,EAAG,CAAC,EAI9C,0BAA2B,QAI3B,4BAA6B,QAI7B,6BAA8B,CAC1B,MACA,CACI,MAAO,CAAC,CACZ,CACJ,EAOA,qBAAsB,MAItB,kCAAmC,QAKnC,8BAA+B,MAI/B,0BAA2B,QAI3B,qCAAsC,CAClC,MACA,CACI,WAAY,GACZ,mBAAoB,GACpB,oBAAqB,GACrB,uBAAwB,GACxB,aAAc,GACd,YAAa,EACjB,CACJ,EAIA,sBAAuB,QAMvB,uBAAwB,MAIxB,2BAA4B,MAI5B,yBAA0B,MAI1B,wBAAyB,QAKzB,kBAAmB,CAAC,QAAS,CAAE,SAAU,QAAI,CAAC,EAI9C,kCAAmC,CAAC,QAAS,CAAE,SAAU,GAAM,eAAgB,EAAK,CAAC,EAIrF,kCAAmC,CAC/B,MACA,CACI,gBAAiB,CAAC,EAClB,uBAAwB,kBAC5B,CACJ,EAIA,oCAAqC,MAKrC,2BAA4B,MAK5B,yCAA0C,CAAC,MAAO,eAAe,EAIjE,+BAAgC,OACpC,CACJ,EACA,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,MAAO,CAEH,gBAAiB,MAGjB,iBAAkB,MAIlB,eAAgB,KACpB,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { fromRoot, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n env: {\n es6: true,\n },\n parserOptions: {\n ecmaVersion: 6,\n sourceType: \"module\",\n },\n plugins: [\"import\"],\n overrides: [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n settings: {\n \"import/resolver\": {\n node: {\n extensions: [\".mjs\", \".js\", \".json\"],\n },\n ...(hasTypescript\n ? {\n typescript: {\n // eslint-disable-next-line max-len\n alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`\n project: fromRoot(\"tsconfig.json\"),\n },\n }\n : {}),\n },\n ...(hasTypescript ? { \"import/parsers\": { \"@typescript-eslint/parser\": [\".ts\", \".tsx\"] } } : {}),\n \"import/extensions\": [\".js\", \".cjs\", \".mjs\", \".jsx\"],\n \"import/core-modules\": [],\n \"import/ignore\": [\"\\\\.(coffee|scss|css|less|hbs|svg|json)$\"],\n },\n rules: {\n // Static analysis:\n\n // ensure imports point to files/modules that can be resolved\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md\n \"import/no-unresolved\": [\"error\", { commonjs: true, caseSensitive: true }],\n\n // ensure named imports coupled with named exports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it\n \"import/named\": \"error\",\n\n // ensure default import coupled with default export\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it\n \"import/default\": \"off\",\n\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/namespace.md\n \"import/namespace\": \"off\",\n\n // Helpful warnings:\n\n // disallow invalid exports, e.g. multiple defaults\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md\n \"import/export\": \"error\",\n\n // do not allow a default import name to match a named export\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md\n \"import/no-named-as-default\": \"error\",\n\n // warn on accessing default export property names that are also named exports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md\n \"import/no-named-as-default-member\": \"error\",\n\n // disallow use of jsdoc-marked-deprecated imports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md\n \"import/no-deprecated\": \"off\",\n\n // Forbid the use of extraneous packages\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md\n // paths are treated both as absolute paths, and relative to process.cwd()\n \"import/no-extraneous-dependencies\": [\n \"error\",\n {\n devDependencies: [\n \"test/**\", // tape, common npm pattern\n \"tests/**\", // also common npm pattern\n \"spec/**\", // mocha, rspec-like pattern\n \"**/fixture/**\", // jest pattern\n \"**/__mocks__/**\", // jest pattern\n \"test.{js,jsx}\", // repos with a single test file\n \"test-*.{js,jsx}\", // repos with multiple top-level test files\n \"**/*{.,_}{test,spec}.{js,jsx}\", // tests where the extension or filename suffix denotes that it is a test\n \"**/jest.config.cjs\", // jest config\n \"**/jest.setup.js\", // jest setup\n \"**/vue.config.cjs\", // vue-cli config\n \"**/webpack.config.cjs\", // webpack config\n \"**/webpack.config.*.js\", // webpack config\n \"**/rollup.config.cjs\", // rollup config\n \"**/rollup.config.*.js\", // rollup config\n \"**/gulpfile.js\", // gulp config\n \"**/gulpfile.*.js\", // gulp config\n \"**/Gruntfile{,.js}\", // grunt config\n \"**/protractor.conf.js\", // protractor config\n \"**/protractor.conf.*.js\", // protractor config\n \"**/karma.conf.js\", // karma config\n \"**/.eslintrc.js\", // eslint config\n \"**/.eslintrc.cjs\", // eslint config\n \"**/.eslintrc.mjs\", // eslint config\n \"**/vite.config.js\", // vite config\n \"**/vite.config.ts\", // vite config\n \"**/vitest.config.js\", // vitest config\n \"**/vitest.config.ts\", // vitest config\n \"**/__tests__/**/*.?(c|m)[jt]s?(x)\", // vitest config test include\n \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\", // vitest config test include\n ],\n optionalDependencies: false,\n },\n ],\n\n // Forbid mutable exports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md\n \"import/no-mutable-exports\": \"error\",\n\n // Module systems:\n\n // disallow require()\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md\n \"import/no-commonjs\": \"off\",\n\n // disallow AMD require/define\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md\n \"import/no-amd\": \"error\",\n\n // No Node.js builtin modules\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md\n \"import/no-nodejs-modules\": \"off\",\n\n // Style guide:\n\n // disallow non-import statements appearing before import statements\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md\n \"import/first\": \"error\",\n\n // disallow non-import statements appearing before import statements\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md\n // deprecated: use `import/first`\n \"import/imports-first\": \"off\",\n\n // disallow duplicate imports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md\n \"import/no-duplicates\": \"error\",\n\n // disallow namespace imports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md\n \"import/no-namespace\": \"error\",\n\n // Ensure consistent use of file extension within the import path\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md\n \"import/extensions\": [\n \"error\",\n \"ignorePackages\",\n {\n js: \"never\",\n mjs: \"never\",\n jsx: \"never\",\n },\n ],\n\n // ensure absolute imports are above relative imports and that unassigned imports are ignored\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md\n // TODO: enforce a stricter convention in module import order?\n \"import/order\": [\n \"error\",\n {\n groups: [[\"builtin\", \"external\", \"internal\"]],\n },\n ],\n\n // Require a newline after the last import/require in a group\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md\n \"import/newline-after-import\": \"error\",\n\n // Require modules with a single export to use a default export\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md\n \"import/prefer-default-export\": \"error\",\n\n // Restrict which files can be imported in a given folder\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md\n \"import/no-restricted-paths\": \"off\",\n\n // Forbid modules to have too many dependencies\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md\n \"import/max-dependencies\": [\"off\", { max: 10 }],\n\n // Forbid import of modules using absolute paths\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md\n \"import/no-absolute-path\": \"error\",\n\n // Forbid require() calls with expressions\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md\n \"import/no-dynamic-require\": \"error\",\n\n // prevent importing the submodules of other modules\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md\n \"import/no-internal-modules\": [\n \"off\",\n {\n allow: [],\n },\n ],\n\n // Warn if a module could be mistakenly parsed as a script by a consumer\n // leveraging Unambiguous JavaScript Grammar\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/unambiguous.md\n // this should not be enabled until this proposal has at least been *presented* to TC39.\n // At the moment, it's not a thing.\n \"import/unambiguous\": \"off\",\n\n // Forbid Webpack loader syntax in imports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md\n \"import/no-webpack-loader-syntax\": \"error\",\n\n // Prevent unassigned imports\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md\n // importing for side effects is perfectly acceptable, if you need side effects.\n \"import/no-unassigned-import\": \"off\",\n\n // Prevent importing the default as if it were named\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-default.md\n \"import/no-named-default\": \"error\",\n\n // Reports if a module's default export is unnamed\n // https://github.com/benmosher/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md\n \"import/no-anonymous-default-export\": [\n \"off\",\n {\n allowArray: false,\n allowArrowFunction: false,\n allowAnonymousClass: false,\n allowAnonymousFunction: false,\n allowLiteral: false,\n allowObject: false,\n },\n ],\n\n // This rule enforces that all exports are declared at the bottom of the file.\n // https://github.com/benmosher/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md\n \"import/exports-last\": \"error\",\n\n // Reports when named exports are not grouped together in a single export declaration\n // or when multiple assignments to CommonJS const config or exports object are present\n // in a single file.\n // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md\n \"import/group-exports\": \"off\",\n\n // forbid default exports. this is a terrible rule, do not use it.\n // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md\n \"import/no-default-export\": \"off\",\n\n // Prohibit named exports. this is a terrible rule, do not use it.\n // https://github.com/benmosher/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md\n \"import/no-named-export\": \"off\",\n\n // Forbid a module from importing itself\n // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md\n \"import/no-self-import\": \"error\",\n\n // Forbid cyclical dependencies between modules\n // https://github.com/benmosher/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md\n // https://medium.com/@steven-lemon182/are-typescript-barrel-files-an-anti-pattern-72a713004250\n \"import/no-cycle\": [\"error\", { maxDepth: \"∞\" }],\n\n // Ensures that there are no useless path segments\n // https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md\n \"import/no-useless-path-segments\": [\"error\", { commonjs: true, noUselessIndex: true }],\n\n // dynamic imports require a leading comment with a webpackChunkName\n // https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md\n \"import/dynamic-import-chunkname\": [\n \"off\",\n {\n importFunctions: [],\n webpackChunknameFormat: \"[0-9a-zA-Z-_/.]+\",\n },\n ],\n\n // Use this rule to prevent imports to folders in relative parent paths.\n // https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md\n \"import/no-relative-parent-imports\": \"off\",\n\n // Reports modules without any exports, or with unused exports\n // https://github.com/benmosher/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md\n // Note: you must disable the base rule as it can report incorrect errors\n \"import/no-unused-modules\": \"off\",\n\n // enforce a consistent style for type specifiers (inline or top-level)\n // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md\n // TODO, semver-major: enable (just in case)\n \"import/consistent-type-specifier-style\": [\"off\", \"prefer-inline\"],\n\n // Reports the use of empty named import blocks.\n // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md\n \"import/no-empty-named-blocks\": \"error\",\n },\n },\n {\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n rules: {\n // Disabled because of https://github.com/benmosher/eslint-plugin-import/issues/1590\n \"import/export\": \"off\",\n\n // Does not work when the TS definition exports a default const.\n \"import/default\": \"off\",\n\n // Disabled as it doesn't work with TypeScript.\n // This issue and some others: https://github.com/benmosher/eslint-plugin-import/issues/1341\n \"import/named\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/errors.ts"],"names":["config","errors_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,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,OAGzB,mBAAoB,QAGpB,cAAe,QAGf,eAAgB,QAIhB,kBAAmB,QAGnB,eAAgB,QAGhB,oBAAqB,QAGrB,WAAY,QAGZ,2BAA4B,QAG5B,eAAgB,QAIhB,wBAAyB,QAIzB,kBAAmB,CACf,MACA,MACA,CACI,kBAAmB,GACnB,wBAAyB,GACzB,aAAc,GACd,UAAW,MACX,4BAA6B,EACjC,CACJ,EAGA,gBAAiB,QAGjB,iBAAkB,QAGlB,mBAAoB,QAGpB,wBAAyB,QAGzB,oBAAqB,QAGrB,0BAA2B,QAI3B,uBAAwB,QAIxB,gCAAiC,QAGjC,eAAgB,QAIhB,6BAA8B,QAI9B,wBAAyB,QAGzB,kBAAmB,QAInB,mBAAoB,QAGpB,mBAAoB,QAIpB,8BAA+B,QAI/B,0BAA2B,QAG3B,iBAAkB,QAIlB,sBAAuB,MAIvB,oBAAqB,QAIrB,qBAAsB,QAItB,8BAA+B,CAAC,QAAS,CAAE,4BAA6B,EAAK,CAAC,EAI9E,2BAA4B,QAI5B,oBAAqB,MAKrB,yBAA0B,MAG1B,YAAa,QAIb,cAAe,MAIf,eAAgB,CAAC,QAAS,CAAE,sBAAuB,EAAK,CAAC,CAC7D,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.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 // disallow control characters in regular expressions\n \"no-control-regex\": \"error\",\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 \"off\",\n \"all\",\n {\n conditionalAssign: true,\n nestedBinaryExpressions: false,\n returnAssign: false,\n ignoreJSX: \"all\", // delegate to eslint-plugin-react\n enforceForArrowConditionals: false,\n },\n ],\n\n // disallow unnecessary semicolons\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 // disallow invalid regular expression strings in the RegExp constructor\n \"no-invalid-regexp\": \"error\",\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 // disallow the use of object properties of the global object (Math and JSON) as functions\n \"no-obj-calls\": \"error\",\n\n // Disallow returning values from Promise executor functions\n // https://eslint.org/docs/rules/no-promise-executor-return\n \"no-promise-executor-return\": \"error\",\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-prototype-builtins\n \"no-prototype-builtins\": \"error\",\n\n // disallow multiple spaces in a regular expression literal\n \"no-regex-spaces\": \"error\",\n\n // Disallow returning values from setters\n // https://eslint.org/docs/rules/no-setter-return\n \"no-setter-return\": \"error\",\n\n // disallow sparse arrays\n \"no-sparse-arrays\": \"error\",\n\n // Disallow template literal placeholder syntax in regular strings\n // https://eslint.org/docs/rules/no-template-curly-in-string\n \"no-template-curly-in-string\": \"error\",\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-unexpected-multiline\n \"no-unexpected-multiline\": \"error\",\n\n // disallow unreachable statements after a return, throw, continue, or break statement\n \"no-unreachable\": \"error\",\n\n // Disallow loops with a body that allows only one iteration\n // https://eslint.org/docs/rules/no-unreachable-loop\n \"no-unreachable-loop\": \"off\", // error with typescript\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unsafe-finally\n \"no-unsafe-finally\": \"error\",\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-negation\n \"no-unsafe-negation\": \"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-optional-chaining\n \"no-unsafe-optional-chaining\": [\"error\", { disallowArithmeticOperators: true }],\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-useless-backreference\n \"no-useless-backreference\": \"error\",\n\n // disallow negation of the left operand of an in expression\n // deprecated in favor of no-unsafe-negation\n \"no-negated-in-lhs\": \"off\",\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\nexport default config;\n"]}
@@ -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,GAElB,QAAQ,IAAI,QAAaF,EAAQG,GAAoB,QAAQ,IAAI,GAAGD,CAAM,GAAGC,CAAO,EAAE,EAE9EC,EAAgBH,EAAc,kBAAkB,EAChDI,EAAaJ,EAAc,EAAE","sourcesContent":["const noop = () => undefined;\n\nconst consolePrefix = (prefix: string) =>\n // eslint-disable-next-line implicit-arrow-linebreak\n (process.env[\"NO_LOGS\"] ? noop : (message: string) => console.log(`${prefix}${message}`));\n\nexport const consolePlugin = consolePrefix(\" eslint-plugin-\");\nexport const consoleLog = consolePrefix(\"\");\n"]}
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkPTQ3FFI5_js = require('./chunk-PTQ3FFI5.js');
4
-
5
- var r=4;if(chunkPTQ3FFI5_js.a?.indent){if(Number.isNaN(chunkPTQ3FFI5_js.a.indent))throw new TypeError("Indent must be a number");r=Number(chunkPTQ3FFI5_js.a.indent);}var n={rules:{"array-bracket-newline":"off","array-element-newline":"off","array-bracket-spacing":["error","never"],"block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{properties:"never",ignoreDestructuring:!1}],"capitalized-comments":["off","never",{line:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0},block:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0}}],"comma-dangle":["error",{arrays:"always-multiline",objects:"always-multiline",imports:"always-multiline",exports:"always-multiline",functions:"always-multiline"}],"comma-spacing":["error",{before:!1,after:!0}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"function-call-argument-newline":["error","consistent"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{includeCommonJSModuleExports:!1,considerPropertyDescriptor:!0}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",r,{SwitchCase:1,VariableDeclarator:1,outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ignoreComments:!1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{beforeColon:!1,afterColon:!0}],"keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"line-comment-position":["off",{position:"above",ignorePattern:"",applyDefaultPatterns:!0}],"linebreak-style":["error","unix"],"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"lines-around-comment":"off","lines-around-directive":["error",{before:"always",after:"always"}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreUrls:!0,ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{max:50,skipBlankLines:!0,skipComments:!0,IIFEs:!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",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"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",{groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!1}],"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",{selector:"ForInStatement",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:"ForOfStatement",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:"LabeledStatement",message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."},{selector:"WithStatement",message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize."}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{skipBlankLines:!1,ignoreComments:!1}],"no-underscore-dangle":["error",{allow:["__DEV__","__STORYBOOK_CLIENT_API__","__STORYBOOK_ADDONS_CHANNEL__","__STORYBOOK_STORY_STORE__"],allowAfterThis:!1,allowAfterSuper:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-spacing":["error","always"],"object-curly-newline":["error",{ObjectExpression:{minProperties:4,multiline:!0,consistent:!0},ObjectPattern:{minProperties:4,multiline:!0,consistent:!0},ImportDeclaration:{minProperties:4,multiline:!0,consistent:!0},ExportDeclaration:{minProperties:4,multiline:!0,consistent:!0}}],"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,unnecessary:!0,numbers:!1}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{before:!1,after:!0}],"semi-style":["error","last"],"sort-keys":["off","asc",{caseSensitive:!1,natural:!0}],"sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"spaced-comment":["error","always",{line:{exceptions:["-","+","*"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off"}},t=n;
6
-
7
- exports.a = t;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-XJPLKY3T.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/style.ts"],"names":["indent","eslint_config_default","config","style_default"],"mappings":"wCAIA,IAAIA,EAAiB,EAErB,GAAIC,GAAuB,OAAW,CAClC,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjDD,EAAS,OAAOC,EAAqB,MAAS,CAClD,CAEA,IAAMC,EAAwB,CAC1B,MAA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AW,SACX,MAAO,QACP,WAAY,QAChB,CACJ,EAGA,kBAAmB,CAAC,QAAS,OAAO,EAGpC,kBAAmB,QAInB,kBAAmB,CACf,QACA,CACI,MAAO,GACP,SAAU,GACV,UAAW,CAAC,CAChB,CACJ,EAIA,iBAAkB,CACd,QACA,SACA,CACI,KAAM,CACF,WAAY,CAAC,IAAK,IAAK,GAAG,EAC1B,QAAS,CAAC,IAAK,IAAK,GAAG,CAC3B,EACA,MAAO,CACH,WAAY,CAAC,IAAK,GAAG,EACrB,QAAS,CAAC,IAAK,IAAK,IAAK,IAAI,EAC7B,SAAU,EACd,CACJ,CACJ,EAIA,uBAAwB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,KAClB,CACJ,EAEOG,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport anolilabEslintConfig from \"../utils/eslint-config\";\n\nlet indent: number = 4;\n\nif (anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n indent = Number(anolilabEslintConfig[\"indent\"]);\n}\n\nconst config: Linter.Config = {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { properties: \"never\", ignoreDestructuring: false }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n line: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n block: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n arrays: \"always-multiline\",\n objects: \"always-multiline\",\n imports: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { before: false, after: true }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n NewExpression: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n includeCommonJSModuleExports: false,\n considerPropertyDescriptor: true,\n },\n ],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n SwitchCase: 1,\n VariableDeclarator: 1,\n outerIIFEBody: 1,\n // MemberExpression: null,\n FunctionDeclaration: {\n parameters: 1,\n body: 1,\n },\n FunctionExpression: {\n parameters: 1,\n body: 1,\n },\n CallExpression: {\n arguments: 1,\n },\n ArrayExpression: 1,\n ObjectExpression: 1,\n ImportDeclaration: 1,\n flatTernaryExpressions: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n ignoreComments: false,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { beforeColon: false, afterColon: true }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n before: true,\n after: true,\n overrides: {\n return: { after: true },\n throw: { after: true },\n case: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n // TODO: enable?\n \"line-comment-position\": [\n \"off\",\n {\n position: \"above\",\n ignorePattern: \"\",\n applyDefaultPatterns: true,\n },\n ],\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n before: \"always\",\n after: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreUrls: true,\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n IIFEs: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n newIsCap: true,\n newIsCapExceptions: [],\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n allowSamePrecedence: false,\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n selector: \"ForInStatement\",\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n },\n {\n selector: \"ForOfStatement\",\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n },\n {\n selector: \"LabeledStatement\",\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n },\n {\n selector: \"WithStatement\",\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n skipBlankLines: false,\n ignoreComments: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\", \"__STORYBOOK_CLIENT_API__\", \"__STORYBOOK_ADDONS_CHANNEL__\", \"__STORYBOOK_STORY_STORE__\"],\n allowAfterThis: false,\n allowAfterSuper: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce line breaks between braces\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ObjectExpression: { minProperties: 4, multiline: true, consistent: true },\n ObjectPattern: { minProperties: 4, multiline: true, consistent: true },\n ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n },\n ],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, unnecessary: true, numbers: false }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { before: false, after: true }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": [\"off\", \"asc\", { caseSensitive: false, natural: true }],\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n named: \"never\",\n asyncArrow: \"always\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n words: true,\n nonwords: false,\n overrides: {},\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n block: {\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n balanced: true,\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n },\n};\n\nexport default config;\n"]}