@anolilab/eslint-config 14.0.24 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## @anolilab/eslint-config [15.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@14.0.24...@anolilab/eslint-config@15.0.0) (2023-10-31)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * Disabled core and unicorn regex rules, in favor of regexp plugin
7
+ Signed-off-by: prisis <d.bannert@anolilab.de>
8
+
9
+ ### Features
10
+
11
+ * change core and unicorn regex rules to regexp plugin, updated deps, added better type support ([53d55c4](https://github.com/anolilab/javascript-style-guide/commit/53d55c4567b5610f5777ceb7a425cbad8c56e537))
12
+
13
+
14
+ ### Miscellaneous Chores
15
+
16
+ * **deps:** update dependency eslint-plugin-testing-library to ^6.1.0 ([#778](https://github.com/anolilab/javascript-style-guide/issues/778)) ([7494185](https://github.com/anolilab/javascript-style-guide/commit/74941854aa46d19213909cfb9dbadc9155a8a018))
17
+ * **deps:** update devdependencies ([#777](https://github.com/anolilab/javascript-style-guide/issues/777)) ([ad38256](https://github.com/anolilab/javascript-style-guide/commit/ad3825605a878c3058d56291c70c2e989f30d628))
18
+ * **deps:** update peerdependencies (major) ([#788](https://github.com/anolilab/javascript-style-guide/issues/788)) ([127dbb3](https://github.com/anolilab/javascript-style-guide/commit/127dbb3cd9b99c62450edc0542150d954f98678d))
19
+
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * **@anolilab/package-json-utils:** upgraded to 3.0.8
25
+ * **@anolilab/semantic-release-preset:** upgraded to 8.0.1
26
+
1
27
  ## @anolilab/eslint-config [14.0.24](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@14.0.23...@anolilab/eslint-config@14.0.24) (2023-10-10)
2
28
 
3
29
 
package/README.md CHANGED
@@ -52,15 +52,15 @@ To install this config, run the following command.
52
52
  > Note: `eslint-plugin-import@npm:eslint-plugin-i` is needed to use the correct package.
53
53
 
54
54
  ```bash
55
- npm install --save-dev eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core
55
+ npm install --save-dev eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core @eslint-types/import @eslint-types/deprecation @eslint-types/jsdoc @eslint-types/typescript-eslint @eslint-types/unicorn
56
56
  ```
57
57
 
58
58
  ```sh
59
- pnpm add -D eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core
59
+ pnpm add -D eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core @eslint-types/import @eslint-types/deprecation @eslint-types/jsdoc @eslint-types/typescript-eslint @eslint-types/unicorn
60
60
  ```
61
61
 
62
62
  ```sh
63
- yarn add -D eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core
63
+ yarn add -D eslint @anolilab/eslint-config eslint-plugin-import@npm:eslint-plugin-i@latest @babel/core @eslint-types/import @eslint-types/deprecation @eslint-types/jsdoc @eslint-types/typescript-eslint @eslint-types/unicorn
64
64
  ```
65
65
 
66
66
  ## Usage
@@ -81,6 +81,12 @@ If you already have a `.eslintrc.js`, then you can extend the `.eslintrc.js`, wi
81
81
  /** @ts-check */
82
82
  const { defineConfig } = require('@anolilab/eslint-config/define-config');
83
83
 
84
+ /// <reference types="@eslint-types/unicorn" />
85
+ /// <reference types="@eslint-types/typescript-eslint" />
86
+ /// <reference types="@eslint-types/jsdoc" />
87
+ /// <reference types="@eslint-types/import" />
88
+ /// <reference types="@eslint-types/deprecation" />
89
+
84
90
  module.exports = defineConfig({
85
91
  env: {
86
92
  // Your environments (which contains several predefined global variables)
@@ -133,6 +139,12 @@ Extend the `.eslintrc.js` file:
133
139
  /** @ts-check */
134
140
  const { defineConfig } = require('@anolilab/eslint-config/define-config');
135
141
 
142
+ /// <reference types="@eslint-types/unicorn" />
143
+ /// <reference types="@eslint-types/typescript-eslint" />
144
+ /// <reference types="@eslint-types/jsdoc" />
145
+ /// <reference types="@eslint-types/import" />
146
+ /// <reference types="@eslint-types/deprecation" />
147
+
136
148
  module.exports = defineConfig({
137
149
  env: {
138
150
  // Your environments (which contains several predefined global variables)
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
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":"error","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;
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":"off",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
6
 
7
7
  exports.a = t;
8
8
  //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-X2N7JEGF.js.map
9
+ //# sourceMappingURL=chunk-A6LXZAWN.js.map
@@ -1 +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,QAGrB,MAAO,CAAC,QAAS,YAAY,EAG7B,eAAgB,CAAC,QAAS,CAAE,eAAgB,cAAe,CAAC,EAI5D,oBAAqB,QAGrB,qBAAsB,QAItB,eAAgB,CAAC,QAAS,UAAU,EAIpC,eAAgB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,EAIjD,OAAQ,CAAC,QAAS,SAAU,CAAE,KAAM,QAAS,CAAC,EAG9C,yBAA0B,QAI1B,eAAgB,QAGhB,uBAAwB,CAAC,QAAS,CAAC,EAGnC,WAAY,QAIZ,YAAa,QAIb,uBAAwB,QAIxB,wBAAyB,QAIzB,eAAgB,MAIhB,iBAAkB,CAAC,QAAS,CAAE,YAAa,EAAM,CAAC,EAIlD,oBAAqB,CACjB,QACA,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oB,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\": \"error\",\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
+ {"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,QAGrB,MAAO,CAAC,QAAS,YAAY,EAG7B,eAAgB,CAAC,QAAS,CAAE,eAAgB,cAAe,CAAC,EAI5D,oBAAqB,QAGrB,qBAAsB,QAItB,eAAgB,CAAC,QAAS,UAAU,EAIpC,eAAgB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,EAIjD,OAAQ,CAAC,Q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AK,CAAC,EAIpE,wBAAyB,MAIzB,MAAO,QAIP,gBAAiB,MAIjB,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 // Disabled because of eslint-plugin-regexp\n // https://eslint.org/docs/rules/prefer-regex-literals\n \"prefer-regex-literals\": \"off\",\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 // Disabled because of eslint-plugin-regexp\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"]}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
+
5
+ var o=chunkWG6GTAIA_js.b([{config:{rules:{"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"no-extra-semi":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-obj-calls":"error","no-new-native-nonconstructor":"off","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]}},type:"all"},{config:{rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off","no-extra-semi":"off"}},type:"typescript"}]),n=o;
6
+
7
+ exports.a = n;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-RG6NJDJA.js.map
@@ -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,OAIzB,mBAAoB,MAGpB,cAAe,QAGf,eAAgB,QAIhB,kBAAmB,QAGnB,eAAgB,QAGhB,oBAAqB,QAGrB,WAAY,QAGZ,2BAA4B,QAG5B,eAAgB,QAIhB,wBAAyB,QAIzB,kBAAmB,CACf,QACA,MACA,CACI,kBAAmB,GACnB,4BAA6B,GAC7B,UAAW,MACX,wBAAyB,GACzB,aAAc,EAClB,CACJ,EAIA,gBAAiB,QAGjB,iBAAkB,QAGlB,mBAAoB,QAGpB,wBAAyB,QAIzB,oBAAqB,MAGrB,0BAA2B,QAI3B,uBAAwB,QAIxB,gCAAiC,QAGjC,oBAAqB,MAIrB,eAAgB,QAKhB,+BAAgC,MAIhC,6BAA8B,QAG9B,wBAAyB,QAIzB,kBAAmB,MAGnB,mBAAoB,QAIpB,mBAAoB,QAIpB,8BAA+B,QAG/B,0BAA2B,QAI3B,iBAAkB,QAIlB,sBAAuB,MAIvB,oBAAqB,QAIrB,qBAAsB,QAItB,8BAA+B,CAAC,QAAS,CAAE,4BAA6B,EAAK,CAAC,EAI9E,2BAA4B,QAK5B,yBAA0B,MAG1B,YAAa,QAIb,cAAe,MAIf,eAAgB,CAAC,QAAS,CAAE,sBAAuB,EAAK,CAAC,CAC7D,CACJ,EACA,KAAM,KACV,EAGA,CACI,OAAQ,CACJ,MAAO,CACH,gBAAiB,MAGjB,eAAgB,MAGhB,eAAgB,MAIhB,kBAAmB,MAGnB,iBAAkB,MAGlB,eAAgB,MAGhB,iBAAkB,MAGlB,qBAAsB,MAItB,kBAAmB,MAEnB,eAAgB,MAEhB,gBAAiB,KACrB,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../utils/create-config\";\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n rules: {\n // Enforce “for” loop update clause moving the counter in the right direction\n // https://eslint.org/docs/rules/for-direction\n \"for-direction\": \"error\",\n\n // Enforces that a return statement is present in property getters\n // https://eslint.org/docs/rules/getter-return\n \"getter-return\": [\"error\", { allowImplicit: true }],\n\n // disallow using an async function as a Promise executor\n // https://eslint.org/docs/rules/no-async-promise-executor\n \"no-async-promise-executor\": \"error\",\n\n // Disallow await inside of loops\n // https://eslint.org/docs/rules/no-await-in-loop\n \"no-await-in-loop\": \"error\",\n\n // Disallow comparisons to negative zero\n // https://eslint.org/docs/rules/no-compare-neg-zero\n \"no-compare-neg-zero\": \"error\",\n\n // disallow assignment in conditional expressions\n \"no-cond-assign\": [\"error\", \"always\"],\n\n // disallow use of console\n \"no-console\": \"warn\",\n\n // disallow use of constant expressions in conditions\n \"no-constant-condition\": \"warn\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow control characters in regular expressions\n \"no-control-regex\": \"off\",\n\n // disallow use of debugger\n \"no-debugger\": \"error\",\n\n // disallow duplicate arguments in functions\n \"no-dupe-args\": \"error\",\n\n // Disallow duplicate conditions in if-else-if chains\n // https://eslint.org/docs/rules/no-dupe-else-if\n \"no-dupe-else-if\": \"error\",\n\n // disallow duplicate keys when creating object literals\n \"no-dupe-keys\": \"error\",\n\n // disallow a duplicate case label.\n \"no-duplicate-case\": \"error\",\n\n // disallow empty statements\n \"no-empty\": \"error\",\n\n // disallow the use of empty character classes in regular expressions\n \"no-empty-character-class\": \"error\",\n\n // disallow assigning to the exception in a catch block\n \"no-ex-assign\": \"error\",\n\n // disallow double-negation boolean casts in a boolean context\n // https://eslint.org/docs/rules/no-extra-boolean-cast\n \"no-extra-boolean-cast\": \"error\",\n\n // disallow unnecessary parentheses\n // https://eslint.org/docs/rules/no-extra-parens\n \"no-extra-parens\": [\n \"error\",\n \"all\",\n {\n conditionalAssign: true,\n enforceForArrowConditionals: false,\n ignoreJSX: \"all\", // delegate to eslint-plugin-react\n nestedBinaryExpressions: false,\n returnAssign: false,\n },\n ],\n\n // Disallow non-null assertion in locations that may be confusing.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md\n \"no-extra-semi\": \"error\",\n\n // disallow overwriting functions written as function declarations\n \"no-func-assign\": \"error\",\n\n // https://eslint.org/docs/rules/no-import-assign\n \"no-import-assign\": \"error\",\n\n // disallow function or variable declarations in nested blocks\n \"no-inner-declarations\": \"error\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow invalid regular expression strings in the RegExp constructor\n \"no-invalid-regexp\": \"off\",\n\n // disallow irregular whitespace outside of strings and comments\n \"no-irregular-whitespace\": \"error\",\n\n // Disallow Number Literals That Lose Precision\n // https://eslint.org/docs/rules/no-loss-of-precision\n \"no-loss-of-precision\": \"error\",\n\n // Disallow characters which are made with multiple code points in character class syntax\n // https://eslint.org/docs/rules/no-misleading-character-class\n \"no-misleading-character-class\": \"error\",\n\n // deprecated in favor of no-unsafe-negation\n \"no-negated-in-lhs\": \"off\",\n\n // Disallow returning values from Promise executor functions\n // disallow the use of object properties of the global object (Math and JSON) as functions\n \"no-obj-calls\": \"error\",\n\n // Disallow new operators with global non-constructor functions\n // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor\n // TODO: semver-major, enable\n \"no-new-native-nonconstructor\": \"off\",\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-promise-executor-return\n \"no-promise-executor-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-prototype-builtins\n \"no-prototype-builtins\": \"error\",\n\n // Disabled because of eslint-plugin-regexp\n // disallow multiple spaces in a regular expression literal\n \"no-regex-spaces\": \"off\",\n\n // https://eslint.org/docs/rules/no-setter-return\n \"no-setter-return\": \"error\",\n\n // Disallow template literal placeholder syntax in regular strings\n // disallow sparse arrays\n \"no-sparse-arrays\": \"error\",\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-template-curly-in-string\n \"no-template-curly-in-string\": \"error\",\n\n // https://eslint.org/docs/rules/no-unexpected-multiline\n \"no-unexpected-multiline\": \"error\",\n\n // Disallow loops with a body that allows only one iteration\n // disallow unreachable statements after a return, throw, continue, or break statement\n \"no-unreachable\": \"error\",\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unreachable-loop\n \"no-unreachable-loop\": \"off\", // error with typescript\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-finally\n \"no-unsafe-finally\": \"error\",\n\n // disallow use of optional chaining in contexts where the undefined value is not allowed\n // https://eslint.org/docs/rules/no-unsafe-negation\n \"no-unsafe-negation\": \"error\",\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-unsafe-optional-chaining\n \"no-unsafe-optional-chaining\": [\"error\", { disallowArithmeticOperators: true }],\n\n // disallow negation of the left operand of an in expression\n // https://eslint.org/docs/rules/no-useless-backreference\n \"no-useless-backreference\": \"error\",\n\n // Disallow assignments that can lead to race conditions due to usage of await or yield\n // https://eslint.org/docs/rules/require-atomic-updates\n // note: not enabled because it is very buggy\n \"require-atomic-updates\": \"off\",\n\n // disallow comparisons with the value NaN\n \"use-isnan\": \"error\",\n\n // ensure JSDoc comments are valid\n // https://eslint.org/docs/rules/valid-jsdoc\n \"valid-jsdoc\": \"off\",\n\n // ensure that the results of typeof are compared against a valid string\n // https://eslint.org/docs/rules/valid-typeof\n \"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n },\n },\n type: \"all\",\n },\n // The following rules are enabled in config, but are already checked (more thoroughly) by the TypeScript compiler\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n {\n config: {\n rules: {\n \"getter-return\": \"off\",\n\n // Enforce using @ts-expect-error over @ts-ignore.\n \"no-dupe-args\": \"off\",\n\n // Require explicit accessibility modifiers on class properties and methods.\n \"no-dupe-keys\": \"off\",\n\n // Enforce using a particular method signature syntax.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md\n \"no-extra-parens\": \"off\",\n\n // Disallow duplicate enum member values.\n \"no-func-assign\": \"off\",\n\n // Disallow non-null assertions in the left operand of a nullish coalescing operator.\n \"no-obj-calls\": \"off\",\n\n // Disallow calling a function with a value with type any.\n \"no-unreachable\": \"off\",\n\n // Disallow assigning a value with type any to variables and properties.\n \"no-unsafe-negation\": \"off\",\n\n // Enforce using the nullish coalescing operator instead of logical chaining.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md\n \"space-infix-ops\": \"off\",\n\n \"valid-typeof\": \"off\",\n\n \"no-extra-semi\": \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkX2N7JEGF_js = require('../chunk-X2N7JEGF.js');
3
+ var chunkA6LXZAWN_js = require('../chunk-A6LXZAWN.js');
4
4
  require('../chunk-WG6GTAIA.js');
5
5
  require('../chunk-MFE6DF6Y.js');
6
6
 
7
7
 
8
8
 
9
- module.exports = chunkX2N7JEGF_js.a;
9
+ module.exports = chunkA6LXZAWN_js.a;
10
10
  //# sourceMappingURL=out.js.map
11
11
  //# sourceMappingURL=best-practices.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkS4QC3YVL_js = require('../chunk-S4QC3YVL.js');
3
+ var chunkRG6NJDJA_js = require('../chunk-RG6NJDJA.js');
4
4
  require('../chunk-WG6GTAIA.js');
5
5
  require('../chunk-MFE6DF6Y.js');
6
6
 
7
7
 
8
8
 
9
- module.exports = chunkS4QC3YVL_js.a;
9
+ module.exports = chunkRG6NJDJA_js.a;
10
10
  //# sourceMappingURL=out.js.map
11
11
  //# sourceMappingURL=errors.js.map
@@ -3,13 +3,13 @@
3
3
  var chunkUGG52B5H_js = require('../../chunk-UGG52B5H.js');
4
4
  require('../../chunk-R26SPKXH.js');
5
5
  require('../../chunk-WW4PDMXQ.js');
6
- var chunkX2N7JEGF_js = require('../../chunk-X2N7JEGF.js');
7
- var chunkS4QC3YVL_js = require('../../chunk-S4QC3YVL.js');
6
+ var chunkA6LXZAWN_js = require('../../chunk-A6LXZAWN.js');
7
+ var chunkRG6NJDJA_js = require('../../chunk-RG6NJDJA.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=chunkX2N7JEGF_js.a.overrides[0].rules,t=chunkS4QC3YVL_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules;global.anolilabEslintConfigBabelPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigBabelPrettierRules={"@babel/object-curly-spacing":"off","@babel/semi":"off","babel/quotes":0});var f=chunkWG6GTAIA_js.a("all",{plugins:["babel"],rules:{"babel/camelcase":[...e.camelcase],"babel/new-cap":e["new-cap"],"babel/no-invalid-this":n["no-invalid-this"],"babel/no-unused-expressions":n["no-unused-expressions"],"babel/object-curly-spacing":e["object-curly-spacing"],"babel/quotes":e.quotes,"babel/semi":e.semi,"babel/valid-typeof":t["valid-typeof"],camelcase:"off","new-cap":"off","no-invalid-this":"off","no-unused-expressions":"off","object-curly-spacing":"off",quotes:"off",semi:"off","valid-typeof":"off",...global.anolilabEslintConfigBabelPrettierRules}}),m=f;
12
+ var n=chunkA6LXZAWN_js.a.overrides[0].rules,t=chunkRG6NJDJA_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules;global.anolilabEslintConfigBabelPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigBabelPrettierRules={"@babel/object-curly-spacing":"off","@babel/semi":"off","babel/quotes":0});var f=chunkWG6GTAIA_js.a("all",{plugins:["babel"],rules:{"babel/camelcase":[...e.camelcase],"babel/new-cap":e["new-cap"],"babel/no-invalid-this":n["no-invalid-this"],"babel/no-unused-expressions":n["no-unused-expressions"],"babel/object-curly-spacing":e["object-curly-spacing"],"babel/quotes":e.quotes,"babel/semi":e.semi,"babel/valid-typeof":t["valid-typeof"],camelcase:"off","new-cap":"off","no-invalid-this":"off","no-unused-expressions":"off","object-curly-spacing":"off",quotes:"off",semi:"off","valid-typeof":"off",...global.anolilabEslintConfigBabelPrettierRules}}),m=f;
13
13
 
14
14
  module.exports = m;
15
15
  //# sourceMappingURL=out.js.map
@@ -3,8 +3,8 @@
3
3
  var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
4
4
  require('../../chunk-MFE6DF6Y.js');
5
5
 
6
- var n=chunkWG6GTAIA_js.a("all",{extends:["plugin:regexp/recommended"],plugins:["regexp"]}),t=n;
6
+ var r=chunkWG6GTAIA_js.a("all",{extends:["plugin:regexp/recommended"],plugins:["regexp"],rules:{"regexp/no-control-character":"error"}}),n=r;
7
7
 
8
- module.exports = t;
8
+ module.exports = n;
9
9
  //# sourceMappingURL=out.js.map
10
10
  //# sourceMappingURL=regexp.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/regexp.ts"],"names":["config","createConfig","regexp_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,2BAA2B,EACrC,QAAS,CAAC,QAAQ,CACtB,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:regexp/recommended\"],\n plugins: [\"regexp\"],\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/regexp.ts"],"names":["config","createConfig","regexp_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,2BAA2B,EACrC,QAAS,CAAC,QAAQ,EAClB,MAAO,CAEH,8BAA+B,OACnC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:regexp/recommended\"],\n plugins: [\"regexp\"],\n rules: {\n // disallow control characters\n \"regexp/no-control-character\": \"error\",\n },\n});\n\nexport default config;\n"]}
@@ -5,14 +5,14 @@ var chunkMKL3NIXX_js = require('../../chunk-MKL3NIXX.js');
5
5
  var chunkUGG52B5H_js = require('../../chunk-UGG52B5H.js');
6
6
  require('../../chunk-R26SPKXH.js');
7
7
  var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
8
- var chunkX2N7JEGF_js = require('../../chunk-X2N7JEGF.js');
9
- var chunkS4QC3YVL_js = require('../../chunk-S4QC3YVL.js');
8
+ var chunkA6LXZAWN_js = require('../../chunk-A6LXZAWN.js');
9
+ var chunkRG6NJDJA_js = require('../../chunk-RG6NJDJA.js');
10
10
  var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
11
11
  require('../../chunk-MFE6DF6Y.js');
12
12
  var process = require('process');
13
13
  var packageJsonUtils = require('@anolilab/package-json-utils');
14
14
 
15
- var t=chunkX2N7JEGF_js.a.overrides[0].rules,y=chunkS4QC3YVL_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules,u=chunkMKL3NIXX_js.a.overrides[0].rules,i=chunkSLM5UENV_js.a.overrides[0].rules,{indent:b,quotes:v,semi:x}=e;global.anolilabEslintConfigTypescriptPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigTypescriptPrettierRules={"@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":0,"@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/no-extra-semi":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/quotes":0,"@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"});var s=e["comma-dangle"],f=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version!==void 0&&(f=chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version);var R=chunkWG6GTAIA_js.b([{config:{extends:["plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/stylistic","plugin:@typescript-eslint/strict"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:f},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/brace-style":e["brace-style"],"@typescript-eslint/naming-convention":["error",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:"function",format:["camelCase","PascalCase"]},{selector:"typeLike",format:["PascalCase"]}],"@typescript-eslint/comma-dangle":[s[0],{...s[1],enums:s[1].arrays,generics:s[1].arrays,tuples:s[1].arrays}],"@typescript-eslint/comma-spacing":e["comma-spacing"],"@typescript-eslint/func-call-spacing":e["func-call-spacing"],"@typescript-eslint/indent":b,"@typescript-eslint/keyword-spacing":e["keyword-spacing"],"@typescript-eslint/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@typescript-eslint/no-array-constructor":e["no-array-constructor"],"@typescript-eslint/no-dupe-class-members":u["no-dupe-class-members"],"@typescript-eslint/no-empty-function":t["no-empty-function"],"@typescript-eslint/no-extra-parens":y["no-extra-parens"],"@typescript-eslint/no-extra-semi":y["no-extra-semi"],"@typescript-eslint/no-loop-func":t["no-loop-func"],"@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"@typescript-eslint/no-redeclare":t["no-redeclare"],"@typescript-eslint/no-shadow":i["no-shadow"],"@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"@typescript-eslint/no-unused-vars":i["no-unused-vars"],"@typescript-eslint/no-use-before-define":i["no-use-before-define"],"@typescript-eslint/no-useless-constructor":u["no-useless-constructor"],"@typescript-eslint/quotes":v,"@typescript-eslint/semi":x,"@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"@typescript-eslint/return-await":t["no-return-await"],"@typescript-eslint/space-infix-ops":e["space-infix-ops"],"@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/member-ordering":["error",{default:["public-static-field","protected-static-field","private-static-field","public-static-method","protected-static-method","private-static-method","public-instance-field","protected-instance-field","private-instance-field","constructor","public-instance-method","protected-instance-method","private-instance-method"]}],"@typescript-eslint/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{String:{message:"Use string instead",fixWith:"string"},Boolean:{message:"Use boolean instead",fixWith:"boolean"},Number:{message:"Use number instead",fixWith:"number"},Object:{message:"Use object instead",fixWith:"object"},Array:{message:"Provide a more specific type"}}}],"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/method-signature-style":"error","@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-invalid-void-type":"warn","@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-namespace":"error","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"warn","@typescript-eslint/no-non-null-asserted-optional-chain":"error","@typescript-eslint/no-non-null-assertion":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-this-alias":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unnecessary-type-constraint":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/no-useless-empty-export":"error","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/prefer-enum-initializers":"error","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-nullish-coalescing":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/no-import-type-side-effects":"error",...global.anolilabEslintConfigTypescriptPrettierRules}},type:"typescript"}]),U=R;
15
+ var t=chunkA6LXZAWN_js.a.overrides[0].rules,y=chunkRG6NJDJA_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules,u=chunkMKL3NIXX_js.a.overrides[0].rules,i=chunkSLM5UENV_js.a.overrides[0].rules,{indent:b,quotes:v,semi:x}=e;global.anolilabEslintConfigTypescriptPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigTypescriptPrettierRules={"@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":0,"@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/no-extra-semi":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/quotes":0,"@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"});var s=e["comma-dangle"],f=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version!==void 0&&(f=chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version);var R=chunkWG6GTAIA_js.b([{config:{extends:["plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/stylistic","plugin:@typescript-eslint/strict"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:f},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/brace-style":e["brace-style"],"@typescript-eslint/naming-convention":["error",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:"function",format:["camelCase","PascalCase"]},{selector:"typeLike",format:["PascalCase"]}],"@typescript-eslint/comma-dangle":[s[0],{...s[1],enums:s[1].arrays,generics:s[1].arrays,tuples:s[1].arrays}],"@typescript-eslint/comma-spacing":e["comma-spacing"],"@typescript-eslint/func-call-spacing":e["func-call-spacing"],"@typescript-eslint/indent":b,"@typescript-eslint/keyword-spacing":e["keyword-spacing"],"@typescript-eslint/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@typescript-eslint/no-array-constructor":e["no-array-constructor"],"@typescript-eslint/no-dupe-class-members":u["no-dupe-class-members"],"@typescript-eslint/no-empty-function":t["no-empty-function"],"@typescript-eslint/no-extra-parens":y["no-extra-parens"],"@typescript-eslint/no-extra-semi":y["no-extra-semi"],"@typescript-eslint/no-loop-func":t["no-loop-func"],"@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"@typescript-eslint/no-redeclare":t["no-redeclare"],"@typescript-eslint/no-shadow":i["no-shadow"],"@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"@typescript-eslint/no-unused-vars":i["no-unused-vars"],"@typescript-eslint/no-use-before-define":i["no-use-before-define"],"@typescript-eslint/no-useless-constructor":u["no-useless-constructor"],"@typescript-eslint/quotes":v,"@typescript-eslint/semi":x,"@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"@typescript-eslint/return-await":t["no-return-await"],"@typescript-eslint/space-infix-ops":e["space-infix-ops"],"@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/member-ordering":["error",{default:["public-static-field","protected-static-field","private-static-field","public-static-method","protected-static-method","private-static-method","public-instance-field","protected-instance-field","private-instance-field","constructor","public-instance-method","protected-instance-method","private-instance-method"]}],"@typescript-eslint/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{String:{message:"Use string instead",fixWith:"string"},Boolean:{message:"Use boolean instead",fixWith:"boolean"},Number:{message:"Use number instead",fixWith:"number"},Object:{message:"Use object instead",fixWith:"object"},Array:{message:"Provide a more specific type"}}}],"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/method-signature-style":"error","@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-invalid-void-type":"warn","@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-namespace":"error","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"warn","@typescript-eslint/no-non-null-asserted-optional-chain":"error","@typescript-eslint/no-non-null-assertion":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-this-alias":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unnecessary-type-constraint":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/no-useless-empty-export":"error","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/prefer-enum-initializers":"error","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-nullish-coalescing":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/no-import-type-side-effects":"error",...global.anolilabEslintConfigTypescriptPrettierRules}},type:"typescript"}]),U=R;
16
16
 
17
17
  module.exports = U;
18
18
  //# sourceMappingURL=out.js.map
@@ -4,10 +4,9 @@ var chunkR26SPKXH_js = require('../../chunk-R26SPKXH.js');
4
4
  require('../../chunk-WW4PDMXQ.js');
5
5
  require('../../chunk-MFE6DF6Y.js');
6
6
  var packageJsonUtils = require('@anolilab/package-json-utils');
7
- var semver = require('semver');
8
7
 
9
- global.anolilabEslintConfigUnicornPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigUnicornPrettierRules={"unicorn/empty-brace-spaces":"off","unicorn/no-nested-ternary":"off","unicorn/number-literal-case":"off","unicorn/template-indent":"off"});var t={extends:["plugin:unicorn/recommended"],overrides:[{files:["tsconfig.dev.json","tsconfig.prod.json"],rules:{"unicorn/prevent-abbreviations":"off"}},{files:["**/*.ts","**/*.tsx","**/*.mts","**/*.cts"],rules:{"unicorn/import-style":"off"}}],plugins:["unicorn"],rules:{"function-call-argument-newline":"off","unicorn/better-regex":["error",{sortCharacterClasses:!1}],"unicorn/consistent-destructuring":"off","unicorn/consistent-function-scoping":"off","unicorn/filename-case":["error",{case:"kebabCase",ignore:[/(FUNDING\.yml|README\.md|CHANGELOG\.md|CONTRIBUTING\.md|CODE_OF_CONDUCT\.md|SECURITY\.md|LICENSE)/u]}],"unicorn/no-array-for-each":"off","unicorn/no-null":"off","unicorn/no-useless-undefined":"off","unicorn/prefer-json-parse-buffer":"off","unicorn/prefer-module":packageJsonUtils.packageIsTypeModule?"error":"off","unicorn/prefer-node-protocol":semver.gte(process.version,"v16.0.0")?"error":"off","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/template-indent":["error",{indent:chunkR26SPKXH_js.a}],...global.anolilabEslintConfigUnicornPrettierRules}},l=t;
8
+ global.anolilabEslintConfigUnicornPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigUnicornPrettierRules={"unicorn/empty-brace-spaces":"off","unicorn/no-nested-ternary":"off","unicorn/number-literal-case":"off","unicorn/template-indent":"off"});var i={extends:["plugin:unicorn/recommended"],overrides:[{files:["tsconfig.dev.json","tsconfig.prod.json"],rules:{"unicorn/prevent-abbreviations":"off"}},{files:["**/*.ts","**/*.tsx","**/*.mts","**/*.cts"],rules:{"unicorn/import-style":"off"}}],plugins:["unicorn"],rules:{"function-call-argument-newline":"off","unicorn/better-regex":"off","unicorn/consistent-destructuring":"off","unicorn/consistent-function-scoping":"off","unicorn/filename-case":["error",{case:"kebabCase",ignore:[/(FUNDING\.yml|README\.md|CHANGELOG\.md|CONTRIBUTING\.md|CODE_OF_CONDUCT\.md|SECURITY\.md|LICENSE)/u]}],"unicorn/no-array-for-each":"off","unicorn/no-null":"off","unicorn/no-useless-undefined":"off","unicorn/prefer-json-parse-buffer":"off","unicorn/prefer-module":packageJsonUtils.packageIsTypeModule?"error":"off","unicorn/prefer-node-protocol":"error","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/template-indent":["error",{indent:chunkR26SPKXH_js.a}],...global.anolilabEslintConfigUnicornPrettierRules}},s=i;
10
9
 
11
- module.exports = l;
10
+ module.exports = s;
12
11
  //# sourceMappingURL=out.js.map
13
12
  //# sourceMappingURL=unicorn.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/unicorn.ts"],"names":["hasDependency","hasDevDependency","packageIsTypeModule","gte","config","indent_default","unicorn_default"],"mappings":"4GAAA,OAAS,iBAAAA,EAAe,oBAAAC,EAAkB,uBAAAC,MAA2B,+BAErE,OAAS,OAAAC,MAAW,SAIhB,OAAO,2CAA6C,SAAcH,EAAc,UAAU,GAAKC,EAAiB,UAAU,KAC1H,OAAO,yCAA2C,CAC9C,6BAA8B,MAC9B,4BAA6B,MAC7B,8BAA+B,MAC/B,0BAA2B,KAC/B,GAIJ,IAAMG,EAAwB,CAC1B,QAAS,CAAC,4BAA4B,EACtC,UAAW,CACP,CACI,MAAO,CAAC,oBAAqB,oBAAoB,EACjD,MAAO,CACH,gCAAiC,KACrC,CACJ,EACA,CACI,MAAO,CAAC,UAAW,WAAY,WAAY,UAAU,EACrD,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,EACA,QAAS,CAAC,SAAS,EACnB,MAAO,CAEH,iCAAkC,MAElC,uBAAwB,CACpB,QACA,CACI,qBAAsB,EAC1B,CACJ,EAEA,mCAAoC,MAEpC,sCAAuC,MAEvC,wBAAyB,CACrB,QACA,CACI,KAAM,YACN,OAAQ,CAAC,oGAAoG,CACjH,CACJ,EAEA,4BAA6B,MAG7B,kBAAmB,MAGnB,+BAAgC,MAGhC,mCAAoC,MAEpC,wBAAyBF,EAAsB,QAAU,MAEzD,+BAAgCC,EAAI,QAAQ,QAAS,SAAS,EAAI,QAAU,MAG5E,yBAA0B,CAAC,QAAS,kBAAkB,EAEtD,0BAA2B,CAAC,QAAS,CAAE,OAAAE,CAAO,CAAC,EAE/C,GAAG,OAAO,wCACd,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport { gte } from \"semver\";\n\nimport indent from \"../../utils/indent\";\n\nif (global.anolilabEslintConfigUnicornPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigUnicornPrettierRules = {\n \"unicorn/empty-brace-spaces\": \"off\",\n \"unicorn/no-nested-ternary\": \"off\",\n \"unicorn/number-literal-case\": \"off\",\n \"unicorn/template-indent\": \"off\",\n };\n}\n\n// @see https://github.com/sindresorhus/eslint-plugin-unicorn\nconst config: Linter.Config = {\n extends: [\"plugin:unicorn/recommended\"],\n overrides: [\n {\n files: [\"tsconfig.dev.json\", \"tsconfig.prod.json\"],\n rules: {\n \"unicorn/prevent-abbreviations\": \"off\",\n },\n },\n {\n files: [\"**/*.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"],\n rules: {\n \"unicorn/import-style\": \"off\",\n },\n },\n ],\n plugins: [\"unicorn\"],\n rules: {\n // TODO: Temporarily disabled as the rule is buggy.\n \"function-call-argument-newline\": \"off\",\n // The character class sorting is a bit buggy at the moment.\n \"unicorn/better-regex\": [\n \"error\",\n {\n sortCharacterClasses: false,\n },\n ],\n // TODO: Disabled for now until it becomes more stable: https://github.com/sindresorhus/eslint-plugin-unicorn/search?q=consistent-destructuring+is:issue&state=open&type=issues\n \"unicorn/consistent-destructuring\": \"off\",\n // TODO: Remove this override when the rule is more stable.\n \"unicorn/consistent-function-scoping\": \"off\",\n\n \"unicorn/filename-case\": [\n \"error\",\n {\n case: \"kebabCase\",\n ignore: [/(FUNDING\\.yml|README\\.md|CHANGELOG\\.md|CONTRIBUTING\\.md|CODE_OF_CONDUCT\\.md|SECURITY\\.md|LICENSE)/u],\n },\n ],\n\n \"unicorn/no-array-for-each\": \"off\",\n\n // TODO: Disabled for now as I don't have time to deal with the backslash that might come from this. Try to enable this rule in 2024.\n \"unicorn/no-null\": \"off\",\n\n // TODO: Temporarily disabled until it becomes more mature.\n \"unicorn/no-useless-undefined\": \"off\",\n\n // It will be disabled in the next version of eslint-plugin-unicorn.\n \"unicorn/prefer-json-parse-buffer\": \"off\",\n\n \"unicorn/prefer-module\": packageIsTypeModule ? \"error\" : \"off\",\n\n \"unicorn/prefer-node-protocol\": gte(process.version, \"v16.0.0\") ? \"error\" : \"off\",\n\n // We only enforce it for single-line statements to not be too opinionated.\n \"unicorn/prefer-ternary\": [\"error\", \"only-single-line\"],\n\n \"unicorn/template-indent\": [\"error\", { indent }],\n\n ...global.anolilabEslintConfigUnicornPrettierRules,\n },\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/unicorn.ts"],"names":["hasDependency","hasDevDependency","packageIsTypeModule","config","indent_default","unicorn_default"],"mappings":"4GAAA,OAAS,iBAAAA,EAAe,oBAAAC,EAAkB,uBAAAC,MAA2B,+BAKjE,OAAO,2CAA6C,SAAcF,EAAc,UAAU,GAAKC,EAAiB,UAAU,KAC1H,OAAO,yCAA2C,CAC9C,6BAA8B,MAC9B,4BAA6B,MAC7B,8BAA+B,MAC/B,0BAA2B,KAC/B,GAIJ,IAAME,EAAwB,CAC1B,QAAS,CAAC,4BAA4B,EACtC,UAAW,CACP,CACI,MAAO,CAAC,oBAAqB,oBAAoB,EACjD,MAAO,CACH,gCAAiC,KACrC,CACJ,EACA,CACI,MAAO,CAAC,UAAW,WAAY,WAAY,UAAU,EACrD,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,EACA,QAAS,CAAC,SAAS,EACnB,MAAO,CAEH,iCAAkC,MAElC,uBAAwB,MAExB,mCAAoC,MAEpC,sCAAuC,MAEvC,wBAAyB,CACrB,QACA,CACI,KAAM,YACN,OAAQ,CAAC,oGAAoG,CACjH,CACJ,EAEA,4BAA6B,MAG7B,kBAAmB,MAGnB,+BAAgC,MAGhC,mCAAoC,MAEpC,wBAAyBD,EAAsB,QAAU,MAEzD,+BAAgC,QAGhC,yBAA0B,CAAC,QAAS,kBAAkB,EAEtD,0BAA2B,CAAC,QAAS,CAAE,OAAAE,CAAO,CAAC,EAE/C,GAAG,OAAO,wCACd,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport indent from \"../../utils/indent\";\n\nif (global.anolilabEslintConfigUnicornPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigUnicornPrettierRules = {\n \"unicorn/empty-brace-spaces\": \"off\",\n \"unicorn/no-nested-ternary\": \"off\",\n \"unicorn/number-literal-case\": \"off\",\n \"unicorn/template-indent\": \"off\",\n };\n}\n\n// @see https://github.com/sindresorhus/eslint-plugin-unicorn\nconst config: Linter.Config = {\n extends: [\"plugin:unicorn/recommended\"],\n overrides: [\n {\n files: [\"tsconfig.dev.json\", \"tsconfig.prod.json\"],\n rules: {\n \"unicorn/prevent-abbreviations\": \"off\",\n },\n },\n {\n files: [\"**/*.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"],\n rules: {\n \"unicorn/import-style\": \"off\",\n },\n },\n ],\n plugins: [\"unicorn\"],\n rules: {\n // TODO: Temporarily disabled as the rule is buggy.\n \"function-call-argument-newline\": \"off\",\n // Disabled because of eslint-plugin-regexp\n \"unicorn/better-regex\": \"off\",\n // TODO: Disabled for now until it becomes more stable: https://github.com/sindresorhus/eslint-plugin-unicorn/search?q=consistent-destructuring+is:issue&state=open&type=issues\n \"unicorn/consistent-destructuring\": \"off\",\n // TODO: Remove this override when the rule is more stable.\n \"unicorn/consistent-function-scoping\": \"off\",\n\n \"unicorn/filename-case\": [\n \"error\",\n {\n case: \"kebabCase\",\n ignore: [/(FUNDING\\.yml|README\\.md|CHANGELOG\\.md|CONTRIBUTING\\.md|CODE_OF_CONDUCT\\.md|SECURITY\\.md|LICENSE)/u],\n },\n ],\n\n \"unicorn/no-array-for-each\": \"off\",\n\n // TODO: Disabled for now as I don't have time to deal with the backslash that might come from this. Try to enable this rule in 2024.\n \"unicorn/no-null\": \"off\",\n\n // TODO: Temporarily disabled until it becomes more mature.\n \"unicorn/no-useless-undefined\": \"off\",\n\n // It will be disabled in the next version of eslint-plugin-unicorn.\n \"unicorn/prefer-json-parse-buffer\": \"off\",\n\n \"unicorn/prefer-module\": packageIsTypeModule ? \"error\" : \"off\",\n\n \"unicorn/prefer-node-protocol\": \"error\",\n\n // We only enforce it for single-line statements to not be too opinionated.\n \"unicorn/prefer-ternary\": [\"error\", \"only-single-line\"],\n\n \"unicorn/template-indent\": [\"error\", { indent }],\n\n ...global.anolilabEslintConfigUnicornPrettierRules,\n },\n};\n\nexport default config;\n"]}
@@ -7,23 +7,28 @@ var util = require('util');
7
7
  var packageJsonUtils = require('@anolilab/package-json-utils');
8
8
  var process = require('process');
9
9
 
10
- var C,O,m,g=chunkMFE6DF6Y_js.a(()=>{C=util.promisify(fs.writeFile),O=async()=>{let t=path.join(packageJsonUtils.projectPath,".eslintignore");if(fs.existsSync(t)){console.warn("\u26A0\uFE0F .eslintignore already exists");return}await C(t,"","utf8");},m=O;});var k,o,E,d,w=chunkMFE6DF6Y_js.a(()=>{k=util.promisify(fs.writeFile);console.log("Configuring @anolilab/eslint-config",packageJsonUtils.projectPath,`
11
- `);o=".eslintrc",E=async()=>{for(let s of [o,`${o}.js`,`${o}.cjs`,`${o}.json`,`${o}.yaml`,`${o}.yml`])if(fs.existsSync(path.join(packageJsonUtils.projectPath,s))){console.warn(`\u26A0\uFE0F ${s} already exists;
10
+ var C,O,m,g=chunkMFE6DF6Y_js.a(()=>{C=util.promisify(fs.writeFile),O=async()=>{let t=path.join(packageJsonUtils.projectPath,".eslintignore");if(fs.existsSync(t)){console.warn("\u26A0\uFE0F .eslintignore already exists");return}await C(t,"","utf8");},m=O;});var k,s,E,y,d=chunkMFE6DF6Y_js.a(()=>{k=util.promisify(fs.writeFile);console.log("Configuring @anolilab/eslint-config",packageJsonUtils.projectPath,`
11
+ `);s=".eslintrc",E=async()=>{for(let o of [s,`${s}.js`,`${s}.cjs`,`${s}.json`,`${s}.yaml`,`${s}.yml`])if(fs.existsSync(path.join(packageJsonUtils.projectPath,o))){console.warn(`\u26A0\uFE0F ${o} already exists;
12
12
  Make sure that it includes the following for @anolilab/eslint-config'
13
13
  to work as it should: { extends: ["@anolilab/eslint-config"] }.`);return}let t=path.join(packageJsonUtils.projectPath,`.eslintrc.${packageJsonUtils.packageIsTypeModule?"c":""}js`),a="",c=`
14
14
  parserOptions: {
15
15
  ecmaVersion: "latest",
16
16
  sourceType: ${packageJsonUtils.packageIsTypeModule?'"module"':'"commonjs"'},
17
- },`,f=path.join(packageJsonUtils.projectPath,"tsconfig.json"),e="latest";if(fs.existsSync(f)){let s=JSON.parse(fs.readFileSync(f,"utf8"));s.compilerOptions?.target&&(e=s.compilerOptions.target,e=e.toLowerCase()==="es2022"||e.toLowerCase()==="esnext"?"latest":e.toLowerCase().replace("es",""),e!=="latest"&&e!=="2022"&&e!=="2021"&&e!=="6"&&(a=`, "plugin:es-x/restrict-to-es${e}"`)),c=`
17
+ },`,p=path.join(packageJsonUtils.projectPath,"tsconfig.json"),e="latest";if(fs.existsSync(p)){let o=JSON.parse(fs.readFileSync(p,"utf8"));o.compilerOptions?.target&&(e=o.compilerOptions.target,e=e.toLowerCase()==="es2022"||e.toLowerCase()==="esnext"?"latest":e.toLowerCase().replace("es",""),e!=="latest"&&e!=="2022"&&e!=="2021"&&e!=="6"&&(a=`, "plugin:es-x/restrict-to-es${e}"`)),c=`
18
18
  parserOptions: {
19
19
  project: true,
20
20
  ecmaVersion: ${e==="latest"?`"${e}"`:e},
21
21
  sourceType: ${packageJsonUtils.packageIsTypeModule?'"module"':'"commonjs"'},
22
- },`;}let h=`/** @ts-check */
22
+ },`;}let w=`/** @ts-check */
23
23
  const { defineConfig } = require('@anolilab/eslint-config/define-config');
24
- ${["es2015","es2017","es2020","es2021","latest"].includes(e)?`const { globals } = require("@anolilab/eslint-config/globals");
24
+ ${["es2015","es2017","es2020","es2021","latest"].includes(e)?'const { globals } = require("@anolilab/eslint-config/globals");':""}
25
+
26
+ /// <reference types="@eslint-types/unicorn" />
27
+ /// <reference types="@eslint-types/typescript-eslint" />
28
+ /// <reference types="@eslint-types/jsdoc" />
29
+ /// <reference types="@eslint-types/import" />
30
+ /// <reference types="@eslint-types/deprecation" />
25
31
 
26
- `:""}
27
32
  module.exports = defineConfig({
28
33
  root: true,
29
34
  extends: ["@anolilab/eslint-config"${a}],
@@ -66,8 +71,8 @@ module.exports = defineConfig({
66
71
  },
67
72
  ],
68
73
  });
69
- `;await k(t,h,"utf8");},d=E;});var J=chunkMFE6DF6Y_js.b(()=>{g();w();process.env.CI&&process.exit(0);console.log("Configuring @anolilab/eslint-config",packageJsonUtils.projectPath,`
70
- `);(async()=>{try{await Promise.all([d(),m()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(t){console.log("\u{1F62C} something went wrong:"),console.error(t),process.exit(1);}})();});var postinstall = J();
74
+ `;await k(t,w,"utf8");},y=E;});var J=chunkMFE6DF6Y_js.b(()=>{g();d();process.env.CI&&process.exit(0);console.log("Configuring @anolilab/eslint-config",packageJsonUtils.projectPath,`
75
+ `);(async()=>{try{await Promise.all([y(),m()]),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(t){console.log("\u{1F62C} something went wrong:"),console.error(t),process.exit(1);}})();});var postinstall = J();
71
76
 
72
77
  module.exports = postinstall;
73
78
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/postinstall/write-eslint-ignore.ts","../src/postinstall/write-eslint-rc.ts","../src/postinstall.ts"],"names":["existsSync","writeFile","join","promisify","projectPath","writeFileAsync","writeEslintIgnore","write_eslint_ignore_default","init_write_eslint_ignore","__esmMin","eslintIgnorePath","readFileSync","packageIsTypeModule","configFile","writeEslintRc","write_eslint_rc_default","init_write_eslint_rc","filename","eslintPath","pluginExtends","parserOptions","tsconfigPath","ecmaVersion","tsConfig","content","env","exit","require_postinstall","__commonJSMin","error"],"mappings":"+CAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAE1B,OAAS,eAAAC,MAAmB,+BAJ5B,IAMMC,EAEAC,EAaCC,EArBPC,EAAAC,EAAA,kBAMMJ,EAAiBF,EAAUF,CAAS,EAEpCK,EAAoB,SAA2B,CACjD,IAAMI,EAAmBR,EAAKE,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\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { projectPath } from \"@anolilab/package-json-utils\";\n\nconst writeFileAsync = promisify(writeFile);\n\nconst writeEslintIgnore = async (): Promise<void> => {\n const eslintIgnorePath = join(projectPath, \".eslintignore\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(eslintIgnorePath)) {\n console.warn(\"⚠️ .eslintignore already exists\");\n\n return;\n }\n\n await writeFileAsync(eslintIgnorePath, \"\", \"utf8\");\n};\n\nexport default writeEslintIgnore;\n","import { existsSync, readFileSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport type { TsConfigJson } from \"type-fest\";\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/eslint-config\", projectPath, \"\\n\");\n\nconst configFile = \".eslintrc\";\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nconst writeEslintRc = async (): Promise<void> => {\n // eslint-disable-next-line no-restricted-syntax,no-loops/no-loops\n for (const filename of [configFile, `${configFile}.js`, `${configFile}.cjs`, `${configFile}.json`, `${configFile}.yaml`, `${configFile}.yml`]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/eslint-config'\nto work as it should: { extends: [\"@anolilab/eslint-config\"] }.`);\n\n return;\n }\n }\n\n const eslintPath = join(projectPath, `.eslintrc.${packageIsTypeModule ? \"c\" : \"\"}js`);\n\n let pluginExtends = \"\";\n let parserOptions = `\n parserOptions: {\n ecmaVersion: \"latest\",\n sourceType: ${packageIsTypeModule ? '\"module\"' : '\"commonjs\"'},\n },`;\n\n const tsconfigPath = join(projectPath, \"tsconfig.json\");\n\n let ecmaVersion = \"latest\";\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(tsconfigPath)) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n const tsConfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\")) as TsConfigJson;\n\n if (tsConfig.compilerOptions?.target) {\n ecmaVersion = tsConfig.compilerOptions.target;\n\n ecmaVersion =\n ecmaVersion.toLowerCase() === \"es2022\" || ecmaVersion.toLowerCase() === \"esnext\" ? \"latest\" : ecmaVersion.toLowerCase().replace(\"es\", \"\");\n\n if (ecmaVersion !== \"latest\" && ecmaVersion !== \"2022\" && ecmaVersion !== \"2021\" && ecmaVersion !== \"6\") {\n pluginExtends = `, \"plugin:es-x/restrict-to-es${ecmaVersion}\"`;\n }\n }\n\n parserOptions = `\n parserOptions: {\n project: true,\n ecmaVersion: ${ecmaVersion === \"latest\" ? `\"${ecmaVersion}\"` : ecmaVersion},\n sourceType: ${packageIsTypeModule ? '\"module\"' : '\"commonjs\"'},\n },`;\n }\n\n const content = `/** @ts-check */\nconst { defineConfig } = require('@anolilab/eslint-config/define-config');\n${[\"es2015\", \"es2017\", \"es2020\", \"es2021\", \"latest\"].includes(ecmaVersion) ? 'const { globals } = require(\"@anolilab/eslint-config/globals\");\\n\\n' : \"\"}\nmodule.exports = defineConfig({\n root: true,\n extends: [\"@anolilab/eslint-config\"${pluginExtends}],\n ignorePatterns: [\"!**/*\"],\n env: {\n // Your environments (which contains several predefined global variables)\n // Most environments are loaded automatically if our rules are added\n },${parserOptions}\n globals: {${\n [\"es2015\", \"es2017\", \"es2020\", \"es2021\", \"latest\"].includes(ecmaVersion)\n ? `\\n ...globals.${ecmaVersion === \"latest\" ? \"es2021\" : ecmaVersion},`\n : \"\"\n}\n // Your global variables (setting to false means it's not allowed to be reassigned)\n // myGlobal: false\n },\n rules: {\n // Customize your rules\n },\n overrides: [\n {\n files: [\n \"**/*.ts\",\n \"**/*.tsx\",\n \"**/*.mts\",\n \"**/*.cts\",\n \"**/*.js\",\n \"**/*.jsx\",\n ],\n // Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting\n parserOptions: {},\n rules: {},\n },\n {\n files: [\"**/*.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"],\n // Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting\n parserOptions: {},\n rules: {},\n },\n {\n files: [\"**/*.js\", \"**/*.jsx\"],\n rules: {},\n },\n ],\n});\n`;\n\n await writeFileAsync(eslintPath, content, \"utf8\");\n};\n\nexport default writeEslintRc;\n","import { env, exit } from \"node:process\";\n\nimport { projectPath } from \"@anolilab/package-json-utils\";\n\nimport writeEslintIgnore from \"./postinstall/write-eslint-ignore\";\nimport writeEslintRc from \"./postinstall/write-eslint-rc\";\n\nif (env[\"CI\"]) {\n exit(0);\n}\n\nconsole.log(\"Configuring @anolilab/eslint-config\", projectPath, \"\\n\");\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writeEslintRc(), writeEslintIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n exit(1);\n }\n})();\n"]}
1
+ {"version":3,"sources":["../src/postinstall/write-eslint-ignore.ts","../src/postinstall/write-eslint-rc.ts","../src/postinstall.ts"],"names":["existsSync","writeFile","join","promisify","projectPath","writeFileAsync","writeEslintIgnore","write_eslint_ignore_default","init_write_eslint_ignore","__esmMin","eslintIgnorePath","readFileSync","packageIsTypeModule","configFile","writeEslintRc","write_eslint_rc_default","init_write_eslint_rc","filename","eslintPath","pluginExtends","parserOptions","tsconfigPath","ecmaVersion","tsConfig","content","env","exit","require_postinstall","__commonJSMin","error"],"mappings":"+CAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAE1B,OAAS,eAAAC,MAAmB,+BAJ5B,IAMMC,EAEAC,EAaCC,EArBPC,EAAAC,EAAA,kBAMMJ,EA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AA2B,EACvC,QAAQ,MAAMA,CAAK,EAEnBH,EAAK,CAAC,CACV,CACJ,GAAG","sourcesContent":["import { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { projectPath } from \"@anolilab/package-json-utils\";\n\nconst writeFileAsync = promisify(writeFile);\n\nconst writeEslintIgnore = async (): Promise<void> => {\n const eslintIgnorePath = join(projectPath, \".eslintignore\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(eslintIgnorePath)) {\n console.warn(\"⚠️ .eslintignore already exists\");\n\n return;\n }\n\n await writeFileAsync(eslintIgnorePath, \"\", \"utf8\");\n};\n\nexport default writeEslintIgnore;\n","import { existsSync, readFileSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport type { TsConfigJson } from \"type-fest\";\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/eslint-config\", projectPath, \"\\n\");\n\nconst configFile = \".eslintrc\";\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nconst writeEslintRc = async (): Promise<void> => {\n // eslint-disable-next-line no-restricted-syntax,no-loops/no-loops\n for (const filename of [configFile, `${configFile}.js`, `${configFile}.cjs`, `${configFile}.json`, `${configFile}.yaml`, `${configFile}.yml`]) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(join(projectPath, filename))) {\n console.warn(`⚠️ ${filename} already exists;\nMake sure that it includes the following for @anolilab/eslint-config'\nto work as it should: { extends: [\"@anolilab/eslint-config\"] }.`);\n\n return;\n }\n }\n\n const eslintPath = join(projectPath, `.eslintrc.${packageIsTypeModule ? \"c\" : \"\"}js`);\n\n let pluginExtends = \"\";\n let parserOptions = `\n parserOptions: {\n ecmaVersion: \"latest\",\n sourceType: ${packageIsTypeModule ? '\"module\"' : '\"commonjs\"'},\n },`;\n\n const tsconfigPath = join(projectPath, \"tsconfig.json\");\n\n let ecmaVersion = \"latest\";\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(tsconfigPath)) {\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n const tsConfig = JSON.parse(readFileSync(tsconfigPath, \"utf8\")) as TsConfigJson;\n\n if (tsConfig.compilerOptions?.target) {\n ecmaVersion = tsConfig.compilerOptions.target;\n\n ecmaVersion =\n ecmaVersion.toLowerCase() === \"es2022\" || ecmaVersion.toLowerCase() === \"esnext\" ? \"latest\" : ecmaVersion.toLowerCase().replace(\"es\", \"\");\n\n if (ecmaVersion !== \"latest\" && ecmaVersion !== \"2022\" && ecmaVersion !== \"2021\" && ecmaVersion !== \"6\") {\n pluginExtends = `, \"plugin:es-x/restrict-to-es${ecmaVersion}\"`;\n }\n }\n\n parserOptions = `\n parserOptions: {\n project: true,\n ecmaVersion: ${ecmaVersion === \"latest\" ? `\"${ecmaVersion}\"` : ecmaVersion},\n sourceType: ${packageIsTypeModule ? '\"module\"' : '\"commonjs\"'},\n },`;\n }\n\n const content = `/** @ts-check */\nconst { defineConfig } = require('@anolilab/eslint-config/define-config');\n${[\"es2015\", \"es2017\", \"es2020\", \"es2021\", \"latest\"].includes(ecmaVersion) ? 'const { globals } = require(\"@anolilab/eslint-config/globals\");' : \"\"}\n\n/// <reference types=\"@eslint-types/unicorn\" />\n/// <reference types=\"@eslint-types/typescript-eslint\" />\n/// <reference types=\"@eslint-types/jsdoc\" />\n/// <reference types=\"@eslint-types/import\" />\n/// <reference types=\"@eslint-types/deprecation\" />\n\nmodule.exports = defineConfig({\n root: true,\n extends: [\"@anolilab/eslint-config\"${pluginExtends}],\n ignorePatterns: [\"!**/*\"],\n env: {\n // Your environments (which contains several predefined global variables)\n // Most environments are loaded automatically if our rules are added\n },${parserOptions}\n globals: {${\n [\"es2015\", \"es2017\", \"es2020\", \"es2021\", \"latest\"].includes(ecmaVersion)\n ? `\\n ...globals.${ecmaVersion === \"latest\" ? \"es2021\" : ecmaVersion},`\n : \"\"\n}\n // Your global variables (setting to false means it's not allowed to be reassigned)\n // myGlobal: false\n },\n rules: {\n // Customize your rules\n },\n overrides: [\n {\n files: [\n \"**/*.ts\",\n \"**/*.tsx\",\n \"**/*.mts\",\n \"**/*.cts\",\n \"**/*.js\",\n \"**/*.jsx\",\n ],\n // Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting\n parserOptions: {},\n rules: {},\n },\n {\n files: [\"**/*.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"],\n // Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting\n parserOptions: {},\n rules: {},\n },\n {\n files: [\"**/*.js\", \"**/*.jsx\"],\n rules: {},\n },\n ],\n});\n`;\n\n await writeFileAsync(eslintPath, content, \"utf8\");\n};\n\nexport default writeEslintRc;\n","import { env, exit } from \"node:process\";\n\nimport { projectPath } from \"@anolilab/package-json-utils\";\n\nimport writeEslintIgnore from \"./postinstall/write-eslint-ignore\";\nimport writeEslintRc from \"./postinstall/write-eslint-rc\";\n\nif (env[\"CI\"]) {\n exit(0);\n}\n\nconsole.log(\"Configuring @anolilab/eslint-config\", projectPath, \"\\n\");\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n // eslint-disable-next-line compat/compat\n await Promise.all([writeEslintRc(), writeEslintIgnore()]);\n\n console.log(\"😎 Everything went well, have fun!\");\n\n exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n exit(1);\n }\n})();\n"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkWW4PDMXQ_js = require('./chunk-WW4PDMXQ.js');
4
- var chunkX2N7JEGF_js = require('./chunk-X2N7JEGF.js');
4
+ var chunkA6LXZAWN_js = require('./chunk-A6LXZAWN.js');
5
5
  var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
6
6
  require('./chunk-MFE6DF6Y.js');
7
7
  var process = require('process');
8
8
 
9
- var r=chunkX2N7JEGF_js.a.overrides[0].rules,i=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version!==void 0&&(i=chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version);var o=chunkWG6GTAIA_js.a("typescript",{extends:["plugin:@typescript-eslint/recommended-type-checked","plugin:@typescript-eslint/strict-type-checked","plugin:@typescript-eslint/stylistic-type-checked"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:i},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/await-thenable":"error","@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["RegExp"]}],"@typescript-eslint/no-confusing-void-expression":["error",{ignoreArrowShorthand:!0,ignoreVoidOperator:!1}],"@typescript-eslint/no-floating-promises":["error",{ignoreIIFE:!0,ignoreVoid:!0}],"@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":r["no-implied-eval"],"@typescript-eslint/no-meaningless-void-operator":["error",{checkNever:!0}],"@typescript-eslint/no-misused-promises":["error",{checksConditionals:!0,checksVoidReturn:{arguments:!0,attributes:!1,properties:!0,returns:!0,variables:!0}}],"@typescript-eslint/no-throw-literal":r["no-throw-literal"],"@typescript-eslint/no-unnecessary-condition":"error","@typescript-eslint/no-unnecessary-qualifier":"error","@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/method-signature-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-nullish-coalescing":["error",{ignoreConditionalTests:!0,ignoreMixedLogicalExpressions:!0}],"@typescript-eslint/prefer-readonly":["error",{onlyInlineLambdas:!1}],"@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/prefer-regexp-exec":"error","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-string-starts-ends-with":"error","@typescript-eslint/promise-function-async":"error","@typescript-eslint/require-array-sort-compare":["error",{ignoreStringArrays:!1}],"@typescript-eslint/require-await":r["require-await"],"@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/return-await":["error","always"],"@typescript-eslint/switch-exhaustiveness-check":"error","@typescript-eslint/unbound-method":["error",{ignoreStatic:!1}],"@typescript-eslint/consistent-type-assertions":["off",{assertionStyle:"never"}],"@typescript-eslint/strict-boolean-expressions":["off",{allowString:!1,allowNumber:!1,allowNullableObject:!1}],"@typescript-eslint/consistent-type-definitions":"off"}}),y=o;
9
+ var r=chunkA6LXZAWN_js.a.overrides[0].rules,i=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version!==void 0&&(i=chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version);var o=chunkWG6GTAIA_js.a("typescript",{extends:["plugin:@typescript-eslint/recommended-type-checked","plugin:@typescript-eslint/strict-type-checked","plugin:@typescript-eslint/stylistic-type-checked"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:i},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/await-thenable":"error","@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["RegExp"]}],"@typescript-eslint/no-confusing-void-expression":["error",{ignoreArrowShorthand:!0,ignoreVoidOperator:!1}],"@typescript-eslint/no-floating-promises":["error",{ignoreIIFE:!0,ignoreVoid:!0}],"@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":r["no-implied-eval"],"@typescript-eslint/no-meaningless-void-operator":["error",{checkNever:!0}],"@typescript-eslint/no-misused-promises":["error",{checksConditionals:!0,checksVoidReturn:{arguments:!0,attributes:!1,properties:!0,returns:!0,variables:!0}}],"@typescript-eslint/no-throw-literal":r["no-throw-literal"],"@typescript-eslint/no-unnecessary-condition":"error","@typescript-eslint/no-unnecessary-qualifier":"error","@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/method-signature-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-nullish-coalescing":["error",{ignoreConditionalTests:!0,ignoreMixedLogicalExpressions:!0}],"@typescript-eslint/prefer-readonly":["error",{onlyInlineLambdas:!1}],"@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/prefer-regexp-exec":"error","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-string-starts-ends-with":"error","@typescript-eslint/promise-function-async":"error","@typescript-eslint/require-array-sort-compare":["error",{ignoreStringArrays:!1}],"@typescript-eslint/require-await":r["require-await"],"@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/return-await":["error","always"],"@typescript-eslint/switch-exhaustiveness-check":"error","@typescript-eslint/unbound-method":["error",{ignoreStatic:!1}],"@typescript-eslint/consistent-type-assertions":["off",{assertionStyle:"never"}],"@typescript-eslint/strict-boolean-expressions":["off",{allowString:!1,allowNumber:!1,allowNullableObject:!1}],"@typescript-eslint/consistent-type-definitions":"off"}}),y=o;
10
10
 
11
11
  module.exports = y;
12
12
  //# sourceMappingURL=out.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/eslint-config",
3
- "version": "14.0.24",
3
+ "version": "15.0.0",
4
4
  "description": "ESLint shareable config for the Anolilab JavaScript style guide.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -128,68 +128,68 @@
128
128
  "test:coverage": "vitest --config ./vitest.config.ts --run --coverage"
129
129
  },
130
130
  "dependencies": {
131
- "@anolilab/package-json-utils": "3.0.7",
131
+ "@anolilab/package-json-utils": "3.0.8",
132
132
  "@babel/eslint-parser": "^7.22.15",
133
133
  "@babel/plugin-syntax-import-assertions": "^7.22.5",
134
- "@eslint/js": "^8.50.0",
135
- "@html-eslint/eslint-plugin": "^0.19.1",
136
- "@html-eslint/parser": "^0.19.1",
134
+ "@eslint/js": "^8.52.0",
135
+ "@html-eslint/eslint-plugin": "^0.20.0",
136
+ "@html-eslint/parser": "^0.20.0",
137
137
  "@jsenv/eslint-import-resolver": ">=8.0.4",
138
138
  "@rushstack/eslint-patch": "^1.5.1",
139
139
  "@rushstack/eslint-plugin-security": "^0.7.1",
140
- "@typescript-eslint/eslint-plugin": ">=6.7.4",
141
- "@typescript-eslint/parser": "^6.7.4",
140
+ "@typescript-eslint/eslint-plugin": ">=6.9.1",
141
+ "@typescript-eslint/parser": "^6.9.1",
142
142
  "confusing-browser-globals": "^1.0.11",
143
- "eslint-define-config": "^1.23.0",
143
+ "eslint-define-config": "^1.24.1",
144
144
  "eslint-import-resolver-node": "^0.3.9",
145
145
  "eslint-import-resolver-typescript": "^3.6.1",
146
- "eslint-plugin-antfu": "^0.43.1",
146
+ "eslint-plugin-antfu": "^1.0.1",
147
147
  "eslint-plugin-compat": "^4.2.0",
148
148
  "eslint-plugin-es-x": "^7.2.0",
149
149
  "eslint-plugin-eslint-comments": "^3.2.0",
150
150
  "eslint-plugin-html": "^7.1.0",
151
- "eslint-plugin-i": "^2.28.1",
152
- "eslint-plugin-jsonc": "^2.9.0",
151
+ "eslint-plugin-i": "^2.29.0",
152
+ "eslint-plugin-jsonc": "^2.10.0",
153
153
  "eslint-plugin-markdown": "^3.0.1",
154
154
  "eslint-plugin-mdx": "^2.2.0",
155
- "eslint-plugin-n": "^16.1.0",
155
+ "eslint-plugin-n": "^16.2.0",
156
156
  "eslint-plugin-no-loops": "^0.3.0",
157
157
  "eslint-plugin-no-only-tests": "^3.1.0",
158
158
  "eslint-plugin-no-secrets": "^0.8.9",
159
159
  "eslint-plugin-no-use-extend-native": "^0.5.0",
160
- "eslint-plugin-perfectionist": "^2.1.0",
160
+ "eslint-plugin-perfectionist": "^2.2.0",
161
161
  "eslint-plugin-promise": "^6.1.1",
162
- "eslint-plugin-regexp": "^1.15.0",
162
+ "eslint-plugin-regexp": "^2.1.1",
163
163
  "eslint-plugin-security": "^1.7.1",
164
164
  "eslint-plugin-simple-import-sort": "^10.0.0",
165
165
  "eslint-plugin-sonarjs": "^0.21.0",
166
166
  "eslint-plugin-toml": "^0.6.0",
167
- "eslint-plugin-unicorn": "^48.0.1",
168
- "eslint-plugin-yml": "^1.9.0",
167
+ "eslint-plugin-unicorn": "^49.0.0",
168
+ "eslint-plugin-yml": "^1.10.0",
169
169
  "find-up": "5.0.0",
170
170
  "globals": "^13.23.0",
171
- "jsonc-eslint-parser": "^2.3.0",
171
+ "jsonc-eslint-parser": "^2.4.0",
172
172
  "read-pkg-up": "^7.0.1",
173
173
  "semver": "^7.5.4",
174
174
  "toml-eslint-parser": "^0.6.0",
175
175
  "yaml-eslint-parser": "^1.2.2"
176
176
  },
177
177
  "devDependencies": {
178
- "@anolilab/semantic-release-preset": "8.0.0",
179
- "@arthurgeron/eslint-plugin-react-usememo": "^2.0.1",
178
+ "@anolilab/semantic-release-preset": "8.0.1",
179
+ "@arthurgeron/eslint-plugin-react-usememo": "^2.1.2",
180
180
  "@testing-library/dom": "^9.3.3",
181
181
  "@total-typescript/ts-reset": "^0.5.1",
182
- "@types/confusing-browser-globals": "^1.0.1",
183
- "@types/eslint": "^8.44.3",
184
- "@types/semver": "^7.5.3",
185
- "eslint": "^8.51.0",
182
+ "@types/confusing-browser-globals": "^1.0.2",
183
+ "@types/eslint": "^8.44.6",
184
+ "@types/semver": "^7.5.4",
185
+ "eslint": "^8.52.0",
186
186
  "eslint-find-rules": "^4.1.0",
187
187
  "eslint-plugin-babel": "^5.3.1",
188
188
  "eslint-plugin-cypress": "^2.15.1",
189
189
  "eslint-plugin-deprecation": "^2.0.0",
190
190
  "eslint-plugin-editorconfig": "^4.0.3",
191
191
  "eslint-plugin-etc": "^2.0.3",
192
- "eslint-plugin-jest": "^27.4.2",
192
+ "eslint-plugin-jest": "^27.6.0",
193
193
  "eslint-plugin-jest-async": "^1.0.3",
194
194
  "eslint-plugin-jest-dom": "^5.1.0",
195
195
  "eslint-plugin-jest-formatting": "^3.1.0",
@@ -203,25 +203,25 @@
203
203
  "eslint-plugin-ssr-friendly": "^1.2.0",
204
204
  "eslint-plugin-storybook": "^0.6.15",
205
205
  "eslint-plugin-tailwindcss": "^3.13.0",
206
- "eslint-plugin-testing-library": "^6.0.2",
206
+ "eslint-plugin-testing-library": "^6.1.0",
207
207
  "eslint-plugin-validate-jsx-nesting": "^0.1.1",
208
- "eslint-plugin-vitest": "^0.3.2",
208
+ "eslint-plugin-vitest": "^0.3.8",
209
209
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
210
210
  "eslint-plugin-you-dont-need-momentjs": "^1.6.0",
211
211
  "eslint-plugin-zod": "^1.4.0",
212
212
  "jest": "^29.7.0",
213
213
  "react": "^18.2.0",
214
214
  "rimraf": "^5.0.5",
215
- "semantic-release": "^22.0.5",
215
+ "semantic-release": "^22.0.6",
216
216
  "tsup": "^7.2.0",
217
- "type-fest": "^4.4.0",
217
+ "type-fest": "^4.6.0",
218
218
  "typescript": "^5.2.2",
219
219
  "vitest": "^0.34.6"
220
220
  },
221
221
  "peerDependencies": {
222
222
  "@arthurgeron/eslint-plugin-react-usememo": "^2.0.1",
223
223
  "@babel/core": "^7.22.20",
224
- "@tanstack/eslint-plugin-query": "^4.34.1",
224
+ "@tanstack/eslint-plugin-query": "^4.34.1 || ^5.0.0",
225
225
  "eslint": "^8.15.0",
226
226
  "eslint-plugin-array-func": "^4.0.0",
227
227
  "eslint-plugin-ava": "^14.0.0",
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWG6GTAIA_js = require('./chunk-WG6GTAIA.js');
4
-
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-new-native-nonconstructor":"off","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
-
7
- exports.a = n;
8
- //# sourceMappingURL=out.js.map
9
- //# sourceMappingURL=chunk-S4QC3YVL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/errors.ts"],"names":["config","createConfigs","err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B,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 new operators with global non-constructor functions\n // https://eslint.org/docs/latest/rules/no-new-native-nonconstructor\n // TODO: semver-major, enable\n 'no-new-native-nonconstructor': 'off',\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-promise-executor-return\n \"no-promise-executor-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-prototype-builtins\n \"no-prototype-builtins\": \"error\",\n\n // 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"]}