@anolilab/eslint-config 13.0.0 → 13.0.2

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,38 @@
1
+ ## @anolilab/eslint-config [13.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@13.0.1...@anolilab/eslint-config@13.0.2) (2023-09-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update package dependencies and adjust eslint config rules, no-use-before-define is off in ts files ([52ebed8](https://github.com/anolilab/javascript-style-guide/commit/52ebed8db697d734a0a3cc36ce47fa46aad2ef06))
7
+
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ * update package versions and Node.js versions in actions ([ba1bd5f](https://github.com/anolilab/javascript-style-guide/commit/ba1bd5fbdb5a053b7b2929c189486399012d58bc))
12
+
13
+
14
+ ### Continuous Integration
15
+
16
+ * downgrade semantic-release to v21 and conventional-changelog-conventionalcommits to v6.1 ([30d8cd7](https://github.com/anolilab/javascript-style-guide/commit/30d8cd78dae211ed4566c7d23f5b85b696cbae13))
17
+
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * **@anolilab/semantic-release-preset:** upgraded to 7.0.0
23
+
24
+ ## @anolilab/eslint-config [13.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@13.0.0...@anolilab/eslint-config@13.0.1) (2023-09-15)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * **deps:** update dependency @rushstack/eslint-plugin-security to ^0.7.0 ([#758](https://github.com/anolilab/javascript-style-guide/issues/758)) ([5fe11f1](https://github.com/anolilab/javascript-style-guide/commit/5fe11f12be7cbd8e514467107af7a3673a0e40bc))
30
+
31
+
32
+ ### Miscellaneous Chores
33
+
34
+ * **deps:** update dependency eslint-plugin-jsdoc to ^46.8.0 ([#757](https://github.com/anolilab/javascript-style-guide/issues/757)) ([a9ab7c6](https://github.com/anolilab/javascript-style-guide/commit/a9ab7c60773c51ff5b690bb27b77601d3eb5ec99))
35
+
1
36
  ## @anolilab/eslint-config [13.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@12.0.0...@anolilab/eslint-config@13.0.0) (2023-09-14)
2
37
 
3
38
 
package/README.md CHANGED
@@ -341,7 +341,7 @@ Of course, we also provide a recommended Prettier [configuration](../prettier-co
341
341
  If you are using experimental features such as class fields with JavaScript files you should install `@babel/eslint-parser`.
342
342
 
343
343
  ```bash
344
- npm install --save-dev @babel/eslint-parser
344
+ npm install --save-dev @babel/core @babel/eslint-parser
345
345
  ```
346
346
 
347
347
  ## Plugins
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkO7JDC6TD_js = require('./chunk-O7JDC6TD.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",chunkO7JDC6TD_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-AC2XVGN7.js.map
@@ -0,0 +1 @@
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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E,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,MAEd,GAAGH,CACP,CACJ,EACA,KAAM,KACV,EACA,CACI,OAAQ,CACJ,MAAO,CAGH,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 \"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"]}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
+ var r = require('confusing-browser-globals');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var r__default = /*#__PURE__*/_interopDefault(r);
9
+
10
+ var o=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"},...r__default.default],"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=o;
11
+
12
+ exports.a = i;
13
+ //# sourceMappingURL=out.js.map
14
+ //# sourceMappingURL=chunk-FX4CWHOG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/variables.ts"],"names":["confusingBrowserGlobals","config","createConfigs","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,CACP,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,EAEMG,EAAQF","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,\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"]}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
+
5
+ var r=chunkWG6GTAIA_js.b([{config:{env:{es6:!0},parserOptions:{ecmaFeatures:{generators:!1,objectLiteralDuplicateProperties:!1},ecmaVersion:6,sourceType:"module"},rules:{"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"arrow-parens":["error","always"],"arrow-spacing":["error",{after:!0,before:!0}],"constructor-super":"error","generator-star-spacing":["error",{after:!0,before:!1}],"no-class-assign":"error","no-confusing-arrow":["error",{allowParens:!0}],"no-const-assign":"error","no-dupe-class-members":"error","no-duplicate-imports":"off","no-new-symbol":"error","no-restricted-exports":["error",{restrictDefaultExports:{defaultFrom:!1,direct:!1,named:!0,namedFrom:!1,namespaceFrom:!0},restrictedNamedExports:["then"]}],"no-restricted-imports":["error",{paths:[{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.isequal"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.uniqueId"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.mergewith"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.pick"},{name:"error"},{name:"domain"},{name:"freelist"},{name:"smalloc"},{name:"punycode"},{name:"sys"},{message:'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try "qs" as a package',name:"querystring"},{message:"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors",name:"colors"},{message:"node v10.12 mkdir supports recursive option",name:"mkdirp"},{message:'Please use "@faker-js/faker" as a replacement',name:"faker"},{message:"Please use Object.assign or spread { ...obj }",name:"xtend"},{message:"Please use Object.assign or spread { ...obj }",name:"object-assign"},{message:"Please use Object.assign or spread { ...obj }",name:"extend-shallow"},{message:"node supports recursive option now",name:"rimraf"},{message:'just use "".padStart() and "".padEnd()',name:"pad-left"},{message:'just use "".padStart() and "".padEnd()',name:"pad-right"},{message:'just use "".padStart() and "".padEnd()',name:"left-pad"},{message:'just use "".padStart() and "".padEnd()',name:"right-pad"},{message:'just use "".padStart() and "".padEnd()',name:"pad"},{name:"safe-buffer"},{name:"safer-buffer"},{message:"just use [].flat() or some other polyfill",name:"array-flatten"},{message:"Been deprecated",name:"request"},{message:"use async/await instead",name:"co"},{message:"Please use TextDecoder instead",name:"windows-1252"},{message:"Please use TextDecoder instead",name:"string_decoder"},{message:"Please use array.prototype.flatMap instead",name:"concat-map"},{name:"buffer-alloc"}],patterns:["lodash.*"]}],"no-this-before-super":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreExport:!1,ignoreImport:!1}],"no-var":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"any",ignoreReadBeforeAssign:!0}],"prefer-destructuring":["error",{AssignmentExpression:{array:!0,object:!1},VariableDeclarator:{array:!1,object:!0}},{enforceForRenamedProperties:!1}],"prefer-numeric-literals":"error","prefer-reflect":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","require-yield":"error","rest-spread-spacing":["error","never"],"sort-imports":["off",{ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","template-curly-spacing":"error","yield-star-spacing":["error","after"]}},type:"all"},{config:{rules:{"constructor-super":"off","no-useless-constructor":"off","no-dupe-class-members":"off","no-const-assign":"off","no-new-symbol":"off","no-this-before-super":"off"}},type:"typescript"}]),a=r;
6
+
7
+ exports.a = a;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-MKL3NIXX.js.map
@@ -0,0 +1 @@
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,QAAS,qCACT,KAAM,QACV,EACA,CACI,QAAS,yCACT,KAAM,UACV,EACA,CACI,QAAS,yCACT,KAAM,WACV,EACA,CACI,QAAS,yCACT,KAAM,UACV,EACA,CACI,QAAS,yCACT,KAAM,WACV,EACA,CACI,QAAS,yCACT,KAAM,KACV,EACA,CACI,KAAM,aACV,EACA,CACI,KAAM,cACV,EACA,CACI,QAAS,4CACT,KAAM,eACV,EACA,CACI,QAAS,kBACT,KAAM,SACV,EACA,CACI,QAAS,0BACT,KAAM,IACV,EACA,CACI,QAAS,iCACT,KAAM,cACV,EACA,CACI,QAAS,iCACT,KAAM,gBACV,EACA,CACI,QAAS,6CACT,KAAM,YACV,EACA,CACI,KAAM,cACV,CACJ,EAGA,SAAU,CAAC,UAAU,CACzB,CACJ,EAIA,uBAAwB,QAIxB,0BAA2B,QAI3B,yBAA0B,QAI1B,oBAAqB,CACjB,QACA,CACI,oBAAqB,GACrB,aAAc,GACd,aAAc,EAClB,CACJ,EAGA,SAAU,QAIV,mBAAoB,CAChB,QACA,SACA,CACI,YAAa,GACb,mBAAoB,EACxB,CACJ,EAGA,wBAAyB,CACrB,QACA,CACI,oBAAqB,GACrB,iBAAkB,EACtB,CACJ,EAGA,eAAgB,CACZ,QACA,CACI,cAAe,MACf,uBAAwB,EAC5B,CACJ,EAIA,uBAAwB,CACpB,QACA,CACI,qBAAsB,CAClB,MAAO,GACP,OAAQ,EACZ,EACA,mBAAoB,CAChB,MAAO,GACP,OAAQ,EACZ,CACJ,EACA,CACI,4BAA6B,EACjC,CACJ,EAIA,0BAA2B,QAI3B,iBAAkB,MAIlB,qBAAsB,QAItB,gBAAiB,QAIjB,kBAAmB,QAInB,gBAAiB,QAIjB,sBAAuB,CAAC,QAAS,OAAO,EAIxC,eAAgB,CACZ,MACA,CACI,WAAY,GACZ,sBAAuB,GACvB,iBAAkB,GAClB,sBAAuB,CAAC,OAAQ,MAAO,WAAY,QAAQ,CAC/D,CACJ,EAIA,qBAAsB,QAItB,yBAA0B,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"]}
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
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":"error","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":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"error","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:{"no-array-constructor":"off","no-const-assign":"off","no-dupe-args":"off","no-dupe-class-members":"off","no-dupe-keys":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-new-symbol":"off","no-obj-calls":"off","no-redeclare":"off","no-return-await":"off","no-shadow":"off","no-this-before-super":"off","no-throw-literal":"off","no-undef":"off","no-unreachable":"off","no-unsafe-negation":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","space-before-function-paren":"off","space-infix-ops":"off","valid-typeof":"off"}},type:"typescript"}]),n=o;
5
+ var e=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":"error","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":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"error","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=e;
6
6
 
7
7
  exports.a = n;
8
8
  //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-KOLBUMAZ.js.map
9
+ //# sourceMappingURL=chunk-RAPTRUN2.js.map
@@ -0,0 +1 @@
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,OAGzB,mBAAoB,QAGpB,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,QAGzB,oBAAqB,QAGrB,0BAA2B,QAI3B,uBAAwB,QAIxB,gCAAiC,QAGjC,oBAAqB,MAIrB,eAAgB,QAIhB,6BAA8B,QAG9B,wBAAyB,QAIzB,kBAAmB,QAGnB,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 // 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 \"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 // 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 // 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 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 // Disallow returning values from setters\n // disallow multiple spaces in a regular expression literal\n \"no-regex-spaces\": \"error\",\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"]}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
+
5
+ var r=chunkWG6GTAIA_js.b([{config:{rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],complexity:["off",11],"consistent-return":"error",curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-location":["error","property"],"dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","max-classes-per-file":["error",1],"no-alert":"error","no-caller":"error","no-case-declarations":"error","no-constructor-return":"error","no-div-regex":"off","no-else-return":["error",{allowElseIf:!1}],"no-empty-function":["error",{allow:["arrowFunctions","functions","methods"]}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eq-null":"off","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-fallthrough":"error","no-floating-decimal":"error","no-global-assign":["error",{exceptions:[]}],"no-implicit-coercion":["off",{allow:[],boolean:!1,number:!0,string:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","no-magic-numbers":["off",{detectObjects:!1,enforceConst:!0,ignore:[],ignoreArrayIndexes:!0}],"no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-native-reassign":"off","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":["error",{ignorePropertyModificationsFor:["acc","accumulator","e","ctx","context","req","request","res","response","$scope","staticContext"],props:!0}],"no-proto":"error","no-redeclare":"error","no-restricted-properties":["error",{message:"arguments.callee is deprecated",object:"arguments",property:"callee"},{message:"Please use Number.isFinite instead",object:"global",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"self",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"window",property:"isFinite"},{message:"Please use Number.isNaN instead",object:"global",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"self",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"window",property:"isNaN"},{message:"Please use Object.defineProperty instead.",property:"__defineGetter__"},{message:"Please use Object.defineProperty instead.",property:"__defineSetter__"},{message:"Use the exponentiation operator (**) instead.",object:"Math",property:"pow"},{message:"Use `Number.isNaN` instead.",object:"globalThis",property:"isNaN"},{message:"Use `Number.isFinite` instead.",object:"globalThis",property:"isFinite"},{message:"Use `Number.parseFloat` instead.",object:"globalThis",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"globalThis",property:"parseInt"},{message:"Use `Number.parseFloat` instead.",object:"window",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"window",property:"parseInt"},{message:"Use `Object.getPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-return-assign":["error","always"],"no-return-await":"error","no-script-url":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-throw-literal":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}],"no-unused-labels":"error","no-useless-call":"off","no-useless-catch":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":"error","no-warning-comments":["off",{location:"start",terms:["todo","fixme","xxx","@todo"]}],"no-with":"error","prefer-named-capture-group":"off","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-regex-literals":"error",radix:"error","require-await":"off","require-unicode-regexp":"off","vars-on-top":"error","wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error"}},type:"all"},{config:{rules:{"no-return-await":"off","no-unused-expressions":"off","no-throw-literal":"off",strict:"off","dot-notation":"off","no-empty-function":"off","no-implied-eval":"off","no-new-func":"off","no-loop-func":"off","no-magic-numbers":"off","no-redeclare":"off"}},type:"typescript"}]),t=r;
6
+
7
+ exports.a = t;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-ULHYM44Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/best-practices.ts"],"names":["config","createConfigs","best_practices_default"],"mappings":"wCAIA,IAAMA,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,MAAO,CAEH,iBAAkB,MAIlB,wBAAyB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,EAG1D,mBAAoB,QAGpB,yBAA0B,CACtB,QACA,CACI,cAAe,CAAC,CACpB,CACJ,EAIA,WAAY,CAAC,MAAO,EAAE,EAGtB,oBAAqB,QAGr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AAqB,QAIrB,oBAAqB,QAIrB,oBAAqB,QAGrB,UAAW,QAGX,sBAAuB,CACnB,MACA,CACI,SAAU,QACV,MAAO,CAAC,OAAQ,QAAS,MAAO,OAAO,CAC3C,CACJ,EAIA,UAAW,QAIX,6BAA8B,MAG9B,+BAAgC,CAAC,QAAS,CAAE,iBAAkB,EAAK,CAAC,EAGpE,wBAAyB,QAIzB,MAAO,QAIP,gBAAiB,MAGjB,yBAA0B,MAI1B,cAAe,QAGf,YAAa,CAAC,QAAS,UAAW,CAAE,yBAA0B,EAAM,CAAC,EAErE,KAAM,OACV,CACJ,EACA,KAAM,KACV,EAGA,CACI,OAAQ,CACJ,MAAO,CAGH,kBAAmB,MAInB,wBAAyB,MAIzB,mBAAoB,MAIpB,OAAQ,MAGR,eAAgB,MAIhB,oBAAqB,MAIrB,kBAAmB,MACnB,cAAe,MAIf,eAAgB,MAIhB,mBAAoB,MAIpB,eAAgB,KACpB,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 // enforces getter/setter pairs in objects\n \"accessor-pairs\": \"off\",\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n \"array-callback-return\": [\"error\", { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n \"block-scoped-var\": \"error\",\n\n // https://eslint.org/docs/rules/class-methods-use-this\n \"class-methods-use-this\": [\n \"error\",\n {\n exceptMethods: [],\n },\n ],\n\n // enforce that class methods use \"this\"\n // specify the maximum cyclomatic complexity allowed in a program\n complexity: [\"off\", 11],\n\n // require return statements to either always or never specify values\n \"consistent-return\": \"error\",\n\n // specify curly brace conventions for all control statements\n curly: [\"error\", \"multi-line\"],\n\n // require default case in switch statements\n \"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n \"default-case-last\": \"error\",\n\n // https://eslint.org/docs/rules/default-param-last\n \"default-param-last\": \"error\",\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n \"dot-location\": [\"error\", \"property\"],\n\n // require the use of === and !==\n // encourages use of dot notation whenever possible\n \"dot-notation\": [\"error\", { allowKeywords: true }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/eqeqeq\n eqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"error\",\n\n // enforce a maximum number of classes per file\n // make sure for-in loops have an if statement\n \"guard-for-in\": \"error\",\n\n // https://eslint.org/docs/rules/max-classes-per-file\n \"max-classes-per-file\": [\"error\", 1],\n\n // disallow the use of alert, confirm, and prompt\n \"no-alert\": \"error\",\n\n // disallow lexical declarations in case/default clauses\n // disallow use of arguments.caller or arguments.callee\n \"no-caller\": \"error\",\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-case-declarations.html\n \"no-case-declarations\": \"error\",\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-constructor-return\n \"no-constructor-return\": \"error\",\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-div-regex\n \"no-div-regex\": \"off\",\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-else-return\n \"no-else-return\": [\"error\", { allowElseIf: false }],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-function\n \"no-empty-function\": [\n \"error\",\n {\n allow: [\"arrowFunctions\", \"functions\", \"methods\"],\n },\n ],\n\n // Disallow empty static blocks\n // https://eslint.org/docs/rules/no-empty-pattern\n \"no-empty-pattern\": \"error\",\n\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n \"no-empty-static-block\": \"error\",\n\n // disallow comparisons to null without a type-checking operator\n \"no-eq-null\": \"off\",\n\n // disallow use of eval()\n \"no-eval\": \"error\",\n\n // disallow adding to native types\n \"no-extend-native\": \"error\",\n\n // disallow Unnecessary Labels\n // disallow unnecessary function binding\n \"no-extra-bind\": \"error\",\n\n // https://eslint.org/docs/rules/no-extra-label\n \"no-extra-label\": \"error\",\n\n // disallow fallthrough of case statements\n \"no-fallthrough\": \"error\",\n\n // disallow reassignments of native objects or read-only globals\n // disallow the use of leading or trailing decimal points in numeric literals\n \"no-floating-decimal\": \"error\",\n // https://eslint.org/docs/rules/no-global-assign\n \"no-global-assign\": [\"error\", { exceptions: [] }],\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n \"no-implicit-coercion\": [\n \"off\",\n {\n allow: [],\n boolean: false,\n number: true,\n string: true,\n },\n ],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n \"no-implicit-globals\": \"off\",\n\n // disallow use of eval()-like methods\n \"no-implied-eval\": \"error\",\n\n // disallow this keywords outside of classes or class-like objects\n \"no-invalid-this\": \"off\",\n\n // disallow usage of __iterator__ property\n \"no-iterator\": \"error\",\n\n // disallow use of labels for anything other than loops and switches\n \"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n \"no-lone-blocks\": \"error\",\n\n // disallow creation of functions within loops\n \"no-loop-func\": \"error\",\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n \"no-magic-numbers\": [\n \"off\",\n {\n detectObjects: false,\n enforceConst: true,\n ignore: [],\n ignoreArrayIndexes: true,\n },\n ],\n\n // disallow use of multiple spaces\n \"no-multi-spaces\": [\n \"error\",\n {\n ignoreEOLComments: false,\n },\n ],\n\n // disallow use of multiline strings\n \"no-multi-str\": \"error\",\n\n // deprecated in favor of no-global-assign\n \"no-native-reassign\": \"off\",\n\n // disallow use of new operator when not part of the assignment or comparison\n \"no-new\": \"error\",\n\n // disallow use of new operator for Function object\n \"no-new-func\": \"error\",\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // disallows creating new instances of String, Number, and Boolean\n \"no-new-wrappers\": \"error\",\n\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n \"no-nonoctal-decimal-escape\": \"error\",\n\n // disallow use of octal escape sequences in string literals, such as\n // disallow use of (old style) octal literals\n \"no-octal\": \"error\",\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // var foo = 'Copyright \\251';\n \"no-octal-escape\": \"error\",\n\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n \"no-param-reassign\": [\n \"error\",\n {\n ignorePropertyModificationsFor: [\n \"acc\", // for reduce accumulators\n \"accumulator\", // for reduce accumulators\n \"e\", // for e.returnvalue\n \"ctx\", // for Koa routing\n \"context\", // for Koa routing\n \"req\", // for Express requests\n \"request\", // for Express requests\n \"res\", // for Express responses\n \"response\", // for Express responses\n \"$scope\", // for Angular 1 scopes\n \"staticContext\", // for ReactRouter context\n ],\n props: true,\n },\n ],\n\n // disallow usage of __proto__ property\n \"no-proto\": \"error\",\n\n // disallow certain object properties\n // disallow declaring the same variable more than once\n \"no-redeclare\": \"error\",\n\n // https://eslint.org/docs/rules/no-restricted-properties\n \"no-restricted-properties\": [\n \"error\",\n {\n message: \"arguments.callee is deprecated\",\n object: \"arguments\",\n property: \"callee\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"global\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"self\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"window\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"global\",\n\n property: \"isNaN\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"self\",\n property: \"isNaN\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"window\",\n property: \"isNaN\",\n },\n {\n message: \"Please use Object.defineProperty instead.\",\n property: \"__defineGetter__\",\n },\n {\n message: \"Please use Object.defineProperty instead.\",\n property: \"__defineSetter__\",\n },\n {\n message: \"Use the exponentiation operator (**) instead.\",\n object: \"Math\",\n property: \"pow\",\n },\n {\n message: \"Use `Number.isNaN` instead.\",\n object: \"globalThis\",\n property: \"isNaN\",\n },\n {\n message: \"Use `Number.isFinite` instead.\",\n object: \"globalThis\",\n property: \"isFinite\",\n },\n {\n message: \"Use `Number.parseFloat` instead.\",\n object: \"globalThis\",\n property: \"parseFloat\",\n },\n {\n message: \"Use `Number.parseInt` instead.\",\n object: \"globalThis\",\n property: \"parseInt\",\n },\n {\n message: \"Use `Number.parseFloat` instead.\",\n object: \"window\",\n property: \"parseFloat\",\n },\n {\n message: \"Use `Number.parseInt` instead.\",\n object: \"window\",\n property: \"parseInt\",\n },\n {\n message: \"Use `Object.getPrototypeOf` instead.\",\n property: \"__proto__\",\n },\n {\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n property: \"__lookupGetter__\",\n },\n {\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n property: \"__lookupSetter__\",\n },\n ],\n\n // disallow use of assignment in return statement\n \"no-return-assign\": [\"error\", \"always\"],\n\n // disallow redundant `return await`\n \"no-return-await\": \"error\",\n\n // disallow self assignment\n // disallow use of `javascript:` urls.\n \"no-script-url\": \"error\",\n\n // https://eslint.org/docs/rules/no-self-assign\n \"no-self-assign\": [\n \"error\",\n {\n props: true,\n },\n ],\n\n // disallow comparisons where both sides are exactly the same\n \"no-self-compare\": \"error\",\n\n // disallow use of comma operator\n \"no-sequences\": \"error\",\n\n // disallow unmodified conditions of loops\n // restrict what can be thrown as an exception\n \"no-throw-literal\": \"error\",\n\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"off\",\n\n // disallow unused labels\n // disallow usage of expressions in statement position\n \"no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: false,\n allowTaggedTemplates: false,\n allowTernary: false,\n },\n ],\n\n // https://eslint.org/docs/rules/no-unused-labels\n \"no-unused-labels\": \"error\",\n\n // Disallow unnecessary catch clauses\n // disallow unnecessary .call() and .apply()\n \"no-useless-call\": \"off\",\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-catch\n \"no-useless-catch\": \"error\",\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-concat\n \"no-useless-concat\": \"error\",\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-escape\n \"no-useless-escape\": \"error\",\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-useless-return\n \"no-useless-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-void\n \"no-void\": \"error\",\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n \"no-warning-comments\": [\n \"off\",\n {\n location: \"start\",\n terms: [\"todo\", \"fixme\", \"xxx\", \"@todo\"],\n },\n ],\n\n // require using Error objects as Promise rejection reasons\n // disallow use of the with statement\n \"no-with\": \"error\",\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n \"prefer-named-capture-group\": \"off\",\n\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n \"prefer-promise-reject-errors\": [\"error\", { allowEmptyReject: true }],\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n \"prefer-regex-literals\": \"error\",\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // require use of the second argument for parseInt()\n radix: \"error\",\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-await\n \"require-await\": \"off\",\n\n // https://eslint.org/docs/rules/require-unicode-regexp\n \"require-unicode-regexp\": \"off\",\n\n // require immediate function invocation to be wrapped in parentheses\n // requires to declare all vars on top of their containing scope\n \"vars-on-top\": \"error\",\n\n // https://eslint.org/docs/rules/wrap-iife.html\n \"wrap-iife\": [\"error\", \"outside\", { functionPrototypeMethods: false }],\n // require or disallow Yoda conditions\n yoda: \"error\",\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 // Disallow non-null assertions using the ! postfix operator.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md\n \"no-return-await\": \"off\",\n\n // Disallow calling a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-expressions.md\n \"no-unused-expressions\": \"off\",\n\n // Disallow type assertions that do not change the type of expression.\n // Disable the \"no-throw-literal\" rule, as it can report incorrect errors on TypeScript code\n \"no-throw-literal\": \"off\",\n\n // Disallow empty exports that don't change anything in a module file.\n // Breaks @typescript-eslint/parser\n strict: \"off\",\n\n // Disable the \"dot-notation\" rule, as it can report incorrect errors on TypeScript code\n \"dot-notation\": \"off\",\n\n // Require explicit return and argument types on exported functions' and classes' public class methods.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md\n \"no-empty-function\": \"off\",\n\n // Disallow using to delete operator on computed key expressions.\n // Disable the \"no-implied-eval\" and \"no-new-func\" rule, as it can report incorrect errors on TypeScript code\n \"no-implied-eval\": \"off\",\n \"no-new-func\": \"off\",\n\n // Disallow extra non-null assertions.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md\n \"no-loop-func\": \"off\",\n\n // Disallow void type outside of generic or return types.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md\n \"no-magic-numbers\": \"off\",\n\n // Disallow non-null assertions after an optional chain expression.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md\n \"no-redeclare\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk2L7ILCIC_js = require('../chunk-2L7ILCIC.js');
3
+ var chunkULHYM44Q_js = require('../chunk-ULHYM44Q.js');
4
+ require('../chunk-WG6GTAIA.js');
4
5
  require('../chunk-MFE6DF6Y.js');
5
6
 
6
7
 
7
8
 
8
- module.exports = chunk2L7ILCIC_js.a;
9
+ module.exports = chunkULHYM44Q_js.a;
9
10
  //# sourceMappingURL=out.js.map
10
11
  //# sourceMappingURL=best-practices.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkKOLBUMAZ_js = require('../chunk-KOLBUMAZ.js');
3
+ var chunkRAPTRUN2_js = require('../chunk-RAPTRUN2.js');
4
4
  require('../chunk-WG6GTAIA.js');
5
5
  require('../chunk-MFE6DF6Y.js');
6
6
 
7
7
 
8
8
 
9
- module.exports = chunkKOLBUMAZ_js.a;
9
+ module.exports = chunkRAPTRUN2_js.a;
10
10
  //# sourceMappingURL=out.js.map
11
11
  //# sourceMappingURL=errors.js.map
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkKKHL2OSJ_js = require('../chunk-KKHL2OSJ.js');
3
+ var chunkMKL3NIXX_js = require('../chunk-MKL3NIXX.js');
4
+ require('../chunk-WG6GTAIA.js');
4
5
  require('../chunk-MFE6DF6Y.js');
5
6
 
6
7
 
7
8
 
8
- module.exports = chunkKKHL2OSJ_js.a;
9
+ module.exports = chunkMKL3NIXX_js.a;
9
10
  //# sourceMappingURL=out.js.map
10
11
  //# sourceMappingURL=es6.js.map
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkN2VJ7KO5_js = require('../../chunk-N2VJ7KO5.js');
3
+ var chunkAC2XVGN7_js = require('../../chunk-AC2XVGN7.js');
4
4
  require('../../chunk-O7JDC6TD.js');
5
5
  require('../../chunk-OCCLNRZC.js');
6
- var chunk2L7ILCIC_js = require('../../chunk-2L7ILCIC.js');
7
- var chunkKOLBUMAZ_js = require('../../chunk-KOLBUMAZ.js');
6
+ var chunkULHYM44Q_js = require('../../chunk-ULHYM44Q.js');
7
+ var chunkRAPTRUN2_js = require('../../chunk-RAPTRUN2.js');
8
8
  var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
9
9
  require('../../chunk-MFE6DF6Y.js');
10
10
  var packageJsonUtils = require('@anolilab/package-json-utils');
11
11
 
12
- var n=chunk2L7ILCIC_js.a.rules,r=chunkKOLBUMAZ_js.a.rules,e=chunkN2VJ7KO5_js.a.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":r["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}}),d=f;
12
+ var n=chunkULHYM44Q_js.a.overrides[0].rules,t=chunkRAPTRUN2_js.a.overrides[0].rules,e=chunkAC2XVGN7_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
13
 
14
- module.exports = d;
14
+ module.exports = m;
15
15
  //# sourceMappingURL=out.js.map
16
16
  //# sourceMappingURL=babel.js.map
@@ -1 +1 @@
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,+BAQhD,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3B,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\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.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
+ {"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"]}