@anolilab/eslint-config 9.0.4 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -1
- package/dist/{chunk-MQFZFF2T.js → chunk-2L7ILCIC.js} +1 -1
- package/dist/chunk-2L7ILCIC.js.map +1 -0
- package/dist/chunk-7IAX5NTR.js +8 -0
- package/dist/chunk-7IAX5NTR.js.map +1 -0
- package/dist/chunk-LGXEWPMG.js +9 -0
- package/dist/chunk-LGXEWPMG.js.map +1 -0
- package/dist/chunk-MSAOPFV6.js +11 -0
- package/dist/chunk-MSAOPFV6.js.map +1 -0
- package/dist/chunk-O7JDC6TD.js +9 -0
- package/dist/{chunk-X3W6J3PZ.js → chunk-OCCLNRZC.js} +2 -2
- package/dist/{chunk-X3W6J3PZ.js.map → chunk-OCCLNRZC.js.map} +1 -1
- package/dist/config/best-practices.js +2 -2
- package/dist/config/errors.js +3 -2
- package/dist/config/plugins/antfu.js +2 -2
- package/dist/config/plugins/array-func.js +2 -2
- package/dist/config/plugins/babel.js +7 -7
- package/dist/config/plugins/babel.js.map +1 -1
- package/dist/config/plugins/es.js +2 -2
- package/dist/config/plugins/eslint-comments.js +2 -2
- package/dist/config/plugins/etc.js +2 -2
- package/dist/config/plugins/html.js +3 -3
- package/dist/config/plugins/import.js +4 -3
- package/dist/config/plugins/import.js.map +1 -1
- package/dist/config/plugins/jsonc.js +2 -2
- package/dist/config/plugins/markdown.js +2 -2
- package/dist/config/plugins/mdx.js +2 -2
- package/dist/config/plugins/perfectionist.js +2 -2
- package/dist/config/plugins/react-hooks.js +2 -2
- package/dist/config/plugins/react-redux.js +2 -2
- package/dist/config/plugins/react-usememo.js +2 -2
- package/dist/config/plugins/react.js +7 -6
- package/dist/config/plugins/react.js.map +1 -1
- package/dist/config/plugins/regexp.js +2 -2
- package/dist/config/plugins/simple-import-sort.js +2 -2
- package/dist/config/plugins/sonarjs.js +2 -2
- package/dist/config/plugins/tailwindcss.js +2 -2
- package/dist/config/plugins/tanstack-query.js +2 -2
- package/dist/config/plugins/testing-library.js +3 -3
- package/dist/config/plugins/tsdoc.js +2 -2
- package/dist/config/plugins/typescript.js +8 -8
- package/dist/config/plugins/typescript.js.map +1 -1
- package/dist/config/plugins/unicorn.js +3 -3
- package/dist/config/plugins/vitest.js +2 -2
- package/dist/config/plugins/vitest.js.map +1 -1
- package/dist/config/plugins/yml.js +3 -3
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +2 -2
- package/dist/config/plugins/you-dont-need-momentjs.js +2 -2
- package/dist/config/plugins/zod.js +2 -2
- package/dist/config/style.js +5 -4
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/typescript-type-checking.js +5 -5
- package/dist/typescript-type-checking.js.map +1 -1
- package/package.json +23 -23
- package/dist/chunk-3Y2MNMYX.js +0 -8
- package/dist/chunk-3Y2MNMYX.js.map +0 -1
- package/dist/chunk-57IVUTVM.js +0 -9
- package/dist/chunk-6COSQA7M.js +0 -7
- package/dist/chunk-6COSQA7M.js.map +0 -1
- package/dist/chunk-F5CTGWCD.js +0 -10
- package/dist/chunk-F5CTGWCD.js.map +0 -1
- package/dist/chunk-MQFZFF2T.js.map +0 -1
- package/dist/chunk-TWVXPNWB.js +0 -9
- package/dist/chunk-TWVXPNWB.js.map +0 -1
- /package/dist/{chunk-57IVUTVM.js.map → chunk-O7JDC6TD.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## @anolilab/eslint-config [10.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@10.0.0...@anolilab/eslint-config@10.0.1) (2023-07-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add json to eslint-config and update vitest rules ([4c55941](https://github.com/anolilab/javascript-style-guide/commit/4c55941137d90c047a5411317c89f75e620a628e))
|
|
7
|
+
|
|
8
|
+
## @anolilab/eslint-config [10.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@9.0.4...@anolilab/eslint-config@10.0.0) (2023-07-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ⚠ BREAKING CHANGES
|
|
12
|
+
|
|
13
|
+
* fixing broken releases that semantic-release did create
|
|
14
|
+
Signed-off-by: prisis <d.bannert@anolilab.de>
|
|
15
|
+
* Updated TypeScript rules in typescript-type-checking.ts by enabling some previously commented out rules. This was done as the previous todo comment noted that these should be enabled once typescript-eslint 6.0.0 is released. Following this, multiple dependencies across several files were updated to newer versions. This is part of regular maintenance to keep the dependencies up-to-date and secure. Some minor code changes and refactoring was also included where necessary.
|
|
16
|
+
Signed-off-by: prisis <d.bannert@anolilab.de>
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* Update TypeScript rules and bump dependencies ([b0a8c46](https://github.com/anolilab/javascript-style-guide/commit/b0a8c46200bd375307502cd02be55e4df684195b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* fixed broken releases ([d46de22](https://github.com/anolilab/javascript-style-guide/commit/d46de22a999cc09cc46f9a4d4e7682441705a861))
|
|
26
|
+
* update node version ([9a22309](https://github.com/anolilab/javascript-style-guide/commit/9a22309775cd2219320eed903ac3e22f66ffbe94))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* **@anolilab/package-json-utils:** upgraded to 3.0.1
|
|
33
|
+
* **@anolilab/semantic-release-preset:** upgraded to 6.0.1
|
|
34
|
+
|
|
1
35
|
## @anolilab/eslint-config [9.0.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@9.0.3...@anolilab/eslint-config@9.0.4) (2023-07-08)
|
|
2
36
|
|
|
3
37
|
|
|
@@ -27,7 +61,6 @@
|
|
|
27
61
|
* Improve clarity of code and fix potential null exceptions ([8c468f4](https://github.com/anolilab/javascript-style-guide/commit/8c468f428bf3feb9425b90861264b873a590ba45))
|
|
28
62
|
|
|
29
63
|
|
|
30
|
-
|
|
31
64
|
### Dependencies
|
|
32
65
|
|
|
33
66
|
* **@anolilab/package-json-utils:** upgraded to 2.0.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/best-practices.ts"],"names":["config","best_practices_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,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,CACI,MAAO,CAAC,iBAAkB,YAAa,SAAS,CACpD,CACJ,EAIA,mBAAoB,QAGpB,wBAAyB,QAGzB,aAAc,MAGd,UAAW,QAGX,mBAAoB,QAIpB,gBAAiB,QAGjB,iBAAkB,QAGlB,iBAAkB,QAIlB,sBAAuB,QAEvB,mBAAoB,CAAC,QAAS,CAAE,WAAY,CAAC,CAAE,CAAC,EAIhD,uBAAwB,CACpB,MACA,CACI,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d,EACA,CACI,QAAS,mCACT,OAAQ,SACR,SAAU,YACd,EACA,CACI,QAAS,iCACT,OAAQ,SACR,SAAU,UACd,EACA,CACI,QAAS,uCACT,SAAU,WACd,EACA,CACI,QAAS,iDACT,SAAU,kBACd,EACA,CACI,QAAS,iDACT,SAAU,kBACd,CACJ,EAGA,mBAAoB,CAAC,QAAS,QAAQ,EAGtC,kBAAmB,QAInB,gBAAiB,QAGjB,iBAAkB,CACd,QACA,CACI,MAAO,EACX,CACJ,EAGA,kBAAmB,QAGnB,eAAgB,QAIhB,mBAAoB,QAGpB,+BAAgC,MAIhC,wBAAyB,CACrB,QACA,CACI,kBAAmB,GACnB,qBAAsB,GACtB,aAAc,EAClB,CACJ,EAGA,mBAAoB,QAIpB,kBAAmB,MAInB,mBAAoB,QAIpB,oBAAqB,QAIrB,oBAAqB,QAIrB,oBAAqB,QAGrB,UAAW,QAGX,sBAAuB,CACnB,MACA,CACI,SAAU,QACV,MAAO,CAAC,OAAQ,QAAS,MAAO,OAAO,CAC3C,CACJ,EAIA,UAAW,QAIX,6BAA8B,MAG9B,+BAAgC,CAAC,QAAS,CAAE,iBAAkB,EAAK,CAAC,EAGpE,wBAAyB,QAIzB,MAAO,QAIP,gBAAiB,MAGjB,yBAA0B,MAI1B,cAAe,QAGf,YAAa,CAAC,QAAS,UAAW,CAAE,yBAA0B,EAAM,CAAC,EAErE,KAAM,OACV,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n rules: {\n // enforces getter/setter pairs in objects\n \"accessor-pairs\": \"off\",\n\n // enforces return statements in callbacks of array's methods\n // https://eslint.org/docs/rules/array-callback-return\n \"array-callback-return\": [\"error\", { allowImplicit: true }],\n\n // treat var statements as if they were block scoped\n \"block-scoped-var\": \"error\",\n\n // https://eslint.org/docs/rules/class-methods-use-this\n \"class-methods-use-this\": [\n \"error\",\n {\n exceptMethods: [],\n },\n ],\n\n // enforce that class methods use \"this\"\n // specify the maximum cyclomatic complexity allowed in a program\n complexity: [\"off\", 11],\n\n // require return statements to either always or never specify values\n \"consistent-return\": \"error\",\n\n // specify curly brace conventions for all control statements\n curly: [\"error\", \"multi-line\"],\n\n // require default case in switch statements\n \"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\n // Enforce default clauses in switch statements to be last\n // https://eslint.org/docs/rules/default-case-last\n \"default-case-last\": \"error\",\n\n // https://eslint.org/docs/rules/default-param-last\n \"default-param-last\": \"error\",\n\n // enforces consistent newlines before or after dots\n // https://eslint.org/docs/rules/dot-location\n \"dot-location\": [\"error\", \"property\"],\n\n // require the use of === and !==\n // encourages use of dot notation whenever possible\n \"dot-notation\": [\"error\", { allowKeywords: true }],\n\n // Require grouped accessor pairs in object literals and classes\n // https://eslint.org/docs/rules/eqeqeq\n eqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\n // https://eslint.org/docs/rules/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"error\",\n\n // enforce a maximum number of classes per file\n // make sure for-in loops have an if statement\n \"guard-for-in\": \"error\",\n\n // https://eslint.org/docs/rules/max-classes-per-file\n \"max-classes-per-file\": [\"error\", 1],\n\n // disallow the use of alert, confirm, and prompt\n \"no-alert\": \"error\",\n\n // disallow lexical declarations in case/default clauses\n // disallow use of arguments.caller or arguments.callee\n \"no-caller\": \"error\",\n\n // Disallow returning value in constructor\n // https://eslint.org/docs/rules/no-case-declarations.html\n \"no-case-declarations\": \"error\",\n\n // disallow division operators explicitly at beginning of regular expression\n // https://eslint.org/docs/rules/no-constructor-return\n \"no-constructor-return\": \"error\",\n\n // disallow else after a return in an if\n // https://eslint.org/docs/rules/no-div-regex\n \"no-div-regex\": \"off\",\n\n // disallow empty functions, except for standalone funcs/arrows\n // https://eslint.org/docs/rules/no-else-return\n \"no-else-return\": [\"error\", { allowElseIf: false }],\n\n // disallow empty destructuring patterns\n // https://eslint.org/docs/rules/no-empty-function\n \"no-empty-function\": [\n \"error\",\n {\n allow: [\"arrowFunctions\", \"functions\", \"methods\"],\n },\n ],\n\n // Disallow empty static blocks\n // https://eslint.org/docs/rules/no-empty-pattern\n \"no-empty-pattern\": \"error\",\n\n // https://eslint.org/docs/latest/rules/no-empty-static-block\n \"no-empty-static-block\": \"error\",\n\n // disallow comparisons to null without a type-checking operator\n \"no-eq-null\": \"off\",\n\n // disallow use of eval()\n \"no-eval\": \"error\",\n\n // disallow adding to native types\n \"no-extend-native\": \"error\",\n\n // disallow Unnecessary Labels\n // disallow unnecessary function binding\n \"no-extra-bind\": \"error\",\n\n // https://eslint.org/docs/rules/no-extra-label\n \"no-extra-label\": \"error\",\n\n // disallow fallthrough of case statements\n \"no-fallthrough\": \"error\",\n\n // disallow reassignments of native objects or read-only globals\n // disallow the use of leading or trailing decimal points in numeric literals\n \"no-floating-decimal\": \"error\",\n // https://eslint.org/docs/rules/no-global-assign\n \"no-global-assign\": [\"error\", { exceptions: [] }],\n\n // disallow implicit type conversions\n // https://eslint.org/docs/rules/no-implicit-coercion\n \"no-implicit-coercion\": [\n \"off\",\n {\n allow: [],\n boolean: false,\n number: true,\n string: true,\n },\n ],\n\n // disallow var and named functions in global scope\n // https://eslint.org/docs/rules/no-implicit-globals\n \"no-implicit-globals\": \"off\",\n\n // disallow use of eval()-like methods\n \"no-implied-eval\": \"error\",\n\n // disallow this keywords outside of classes or class-like objects\n \"no-invalid-this\": \"off\",\n\n // disallow usage of __iterator__ property\n \"no-iterator\": \"error\",\n\n // disallow use of labels for anything other than loops and switches\n \"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\n // disallow unnecessary nested blocks\n \"no-lone-blocks\": \"error\",\n\n // disallow creation of functions within loops\n \"no-loop-func\": \"error\",\n\n // disallow magic numbers\n // https://eslint.org/docs/rules/no-magic-numbers\n \"no-magic-numbers\": [\n \"off\",\n {\n detectObjects: false,\n enforceConst: true,\n ignore: [],\n ignoreArrayIndexes: true,\n },\n ],\n\n // disallow use of multiple spaces\n \"no-multi-spaces\": [\n \"error\",\n {\n ignoreEOLComments: false,\n },\n ],\n\n // disallow use of multiline strings\n \"no-multi-str\": \"error\",\n\n // deprecated in favor of no-global-assign\n \"no-native-reassign\": \"off\",\n\n // disallow use of new operator when not part of the assignment or comparison\n \"no-new\": \"error\",\n\n // disallow use of new operator for Function object\n \"no-new-func\": \"error\",\n\n // Disallow \\8 and \\9 escape sequences in string literals\n // disallows creating new instances of String, Number, and Boolean\n \"no-new-wrappers\": \"error\",\n\n // https://eslint.org/docs/rules/no-nonoctal-decimal-escape\n \"no-nonoctal-decimal-escape\": \"error\",\n\n // disallow use of octal escape sequences in string literals, such as\n // disallow use of (old style) octal literals\n \"no-octal\": \"error\",\n\n // disallow reassignment of function parameters\n // disallow parameter object manipulation except for specific exclusions\n // var foo = 'Copyright \\251';\n \"no-octal-escape\": \"error\",\n\n // rule: https://eslint.org/docs/rules/no-param-reassign.html\n \"no-param-reassign\": [\n \"error\",\n {\n ignorePropertyModificationsFor: [\n \"acc\", // for reduce accumulators\n \"accumulator\", // for reduce accumulators\n \"e\", // for e.returnvalue\n \"ctx\", // for Koa routing\n \"context\", // for Koa routing\n \"req\", // for Express requests\n \"request\", // for Express requests\n \"res\", // for Express responses\n \"response\", // for Express responses\n \"$scope\", // for Angular 1 scopes\n \"staticContext\", // for ReactRouter context\n ],\n props: true,\n },\n ],\n\n // disallow usage of __proto__ property\n \"no-proto\": \"error\",\n\n // disallow certain object properties\n // disallow declaring the same variable more than once\n \"no-redeclare\": \"error\",\n\n // https://eslint.org/docs/rules/no-restricted-properties\n \"no-restricted-properties\": [\n \"error\",\n {\n message: \"arguments.callee is deprecated\",\n object: \"arguments\",\n property: \"callee\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"global\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"self\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isFinite instead\",\n object: \"window\",\n property: \"isFinite\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"global\",\n\n property: \"isNaN\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"self\",\n property: \"isNaN\",\n },\n {\n message: \"Please use Number.isNaN instead\",\n object: \"window\",\n property: \"isNaN\",\n },\n {\n message: \"Please use Object.defineProperty instead.\",\n property: \"__defineGetter__\",\n },\n {\n message: \"Please use Object.defineProperty instead.\",\n property: \"__defineSetter__\",\n },\n {\n message: \"Use the exponentiation operator (**) instead.\",\n object: \"Math\",\n property: \"pow\",\n },\n {\n message: \"Use `Number.isNaN` instead.\",\n object: \"globalThis\",\n property: \"isNaN\",\n },\n {\n message: \"Use `Number.isFinite` instead.\",\n object: \"globalThis\",\n property: \"isFinite\",\n },\n {\n message: \"Use `Number.parseFloat` instead.\",\n object: \"globalThis\",\n property: \"parseFloat\",\n },\n {\n message: \"Use `Number.parseInt` instead.\",\n object: \"globalThis\",\n property: \"parseInt\",\n },\n {\n message: \"Use `Number.parseFloat` instead.\",\n object: \"window\",\n property: \"parseFloat\",\n },\n {\n message: \"Use `Number.parseInt` instead.\",\n object: \"window\",\n property: \"parseInt\",\n },\n {\n message: \"Use `Object.getPrototypeOf` instead.\",\n property: \"__proto__\",\n },\n {\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n property: \"__lookupGetter__\",\n },\n {\n message: \"Use `Object.getOwnPropertyDescriptor` instead.\",\n property: \"__lookupSetter__\",\n },\n ],\n\n // disallow use of assignment in return statement\n \"no-return-assign\": [\"error\", \"always\"],\n\n // disallow redundant `return await`\n \"no-return-await\": \"error\",\n\n // disallow self assignment\n // disallow use of `javascript:` urls.\n \"no-script-url\": \"error\",\n\n // https://eslint.org/docs/rules/no-self-assign\n \"no-self-assign\": [\n \"error\",\n {\n props: true,\n },\n ],\n\n // disallow comparisons where both sides are exactly the same\n \"no-self-compare\": \"error\",\n\n // disallow use of comma operator\n \"no-sequences\": \"error\",\n\n // disallow unmodified conditions of loops\n // restrict what can be thrown as an exception\n \"no-throw-literal\": \"error\",\n\n // https://eslint.org/docs/rules/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"off\",\n\n // disallow unused labels\n // disallow usage of expressions in statement position\n \"no-unused-expressions\": [\n \"error\",\n {\n allowShortCircuit: false,\n allowTaggedTemplates: false,\n allowTernary: false,\n },\n ],\n\n // https://eslint.org/docs/rules/no-unused-labels\n \"no-unused-labels\": \"error\",\n\n // Disallow unnecessary catch clauses\n // disallow unnecessary .call() and .apply()\n \"no-useless-call\": \"off\",\n\n // disallow useless string concatenation\n // https://eslint.org/docs/rules/no-useless-catch\n \"no-useless-catch\": \"error\",\n\n // disallow unnecessary string escaping\n // https://eslint.org/docs/rules/no-useless-concat\n \"no-useless-concat\": \"error\",\n\n // disallow redundant return; keywords\n // https://eslint.org/docs/rules/no-useless-escape\n \"no-useless-escape\": \"error\",\n\n // disallow use of void operator\n // https://eslint.org/docs/rules/no-useless-return\n \"no-useless-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-void\n \"no-void\": \"error\",\n\n // disallow usage of configurable warning terms in comments: e.g. todo\n \"no-warning-comments\": [\n \"off\",\n {\n location: \"start\",\n terms: [\"todo\", \"fixme\", \"xxx\", \"@todo\"],\n },\n ],\n\n // require using Error objects as Promise rejection reasons\n // disallow use of the with statement\n \"no-with\": \"error\",\n\n // Suggest using named capture group in regular expression\n // https://eslint.org/docs/rules/prefer-named-capture-group\n \"prefer-named-capture-group\": \"off\",\n\n // https://eslint.org/docs/rules/prefer-promise-reject-errors\n \"prefer-promise-reject-errors\": [\"error\", { allowEmptyReject: true }],\n\n // https://eslint.org/docs/rules/prefer-regex-literals\n \"prefer-regex-literals\": \"error\",\n\n // require `await` in `async function` (note: this is a horrible rule that should never be used)\n // require use of the second argument for parseInt()\n radix: \"error\",\n\n // Enforce the use of u flag on RegExp\n // https://eslint.org/docs/rules/require-await\n \"require-await\": \"off\",\n\n // https://eslint.org/docs/rules/require-unicode-regexp\n \"require-unicode-regexp\": \"off\",\n\n // require immediate function invocation to be wrapped in parentheses\n // requires to declare all vars on top of their containing scope\n \"vars-on-top\": \"error\",\n\n // https://eslint.org/docs/rules/wrap-iife.html\n \"wrap-iife\": [\"error\", \"outside\", { functionPrototypeMethods: false }],\n // require or disallow Yoda conditions\n yoda: \"error\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var r=s=>{switch(s){case"typescript":return ["**/*.ts","**/*.d.ts","**/*.tsx","**/*.mts","**/*.cts"];case"jsx_and_tsx":return ["**/*.jsx","**/*.tsx"];case"js_and_ts":return ["**/*.js","**/*.mjs","**/*.cjs","**/*.ts","**/*.d.ts","**/*.mts","**/*.cts"];case"javascript":return ["**/*.js","**/*.mjs","**/*.cjs"];case"all":return ["**/*.js","**/*.jsx","**/*.mjs","**/*.cjs","**/*.ts","**/*.d.ts","**/*.tsx","**/*.mts","**/*.cts"];case"markdown":return ["**/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return ["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"mdx":return ["**/*.mdx"];case"jest":return ["**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}"];case"ava":return ["test.js","src/test.js","source/test.js","**/test-*.js","**/*.spec.js","**/*.test.js","**/test/**/*.js","**/tests/**/*.js","**/__tests__/**/*.js"];case"vitest":return ["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"tests":return ["test.js","src/test.js","source/test.js","**/test-*.js","**/*.spec.js","**/*.test.js","**/test/**/*.js","**/tests/**/*.js","**/__tests__/**/*.js","**/*.spec.{js,ts,tsx}","**/*.test.{js,ts,tsx}","**/test/*.{js,ts,tsx}","**/__mocks__/*.{js,ts,tsx}","**/__tests__/*.{js,ts,tsx}","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"d.ts":return ["**/*.d.ts"];default:throw new Error("Unknown type")}},j=(s,t,e)=>({env:e,overrides:[{files:r(s),...t}]}),n=s=>({overrides:s.map(({config:t,type:e})=>({files:r(e),...t}))});
|
|
4
|
+
|
|
5
|
+
exports.a = j;
|
|
6
|
+
exports.b = n;
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-7IAX5NTR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/create-config.ts"],"names":["getType","fileType","createConfig","type","config","environment","createConfigs","rules"],"mappings":"AAiBA,IAAMA,EAAWC,GAAuB,CACpC,OAAQA,EAAU,CACd,IAAK,aAED,MAAO,CAAC,UAAW,YAAa,WAAY,WAAY,UAAU,EAEtE,IAAK,cACD,MAAO,CAAC,WAAY,UAAU,EAElC,IAAK,YACD,MAAO,CAAC,UAAW,WAAY,WAAY,UAAW,YAAa,WAAY,UAAU,EAE7F,IAAK,aACD,MAAO,CAAC,UAAW,WAAY,UAAU,EAE7C,IAAK,MACD,MAAO,CAAC,UAAW,WAAY,WAAY,WAAY,UAAW,YAAa,WAAY,WAAY,UAAU,EAErH,IAAK,WACD,MAAO,CAAC,+BAA+B,EAE3C,IAAK,yBACD,MAAO,CAAC,+DAA+D,EAE3E,IAAK,MACD,MAAO,CAAC,UAAU,EAEtB,IAAK,OACD,MAAO,CAEH,wBACA,wBACA,wBAGA,6BACA,4BACJ,EAEJ,IAAK,MACD,MAAO,CACH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,sBACJ,EAEJ,IAAK,SACD,MAAO,CAAC,oCAAqC,qCAAqC,EAEtF,IAAK,QACD,MAAO,CAEH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,uBAGA,wBACA,wBACA,wBACA,6BACA,6BACA,oCACA,qCACJ,EAEJ,IAAK,OACD,MAAO,CAAC,WAAW,EAEvB,QACI,MAAM,IAAI,MAAM,cAAc,CAEtC,CACJ,EAEaC,EAAe,CAACC,EAAgBC,EAA8CC,KAChF,CACH,IAAKA,EACL,UAAW,CACP,CACI,MAAOL,EAAQG,CAAI,EACnB,GAAGC,CACP,CACJ,CACJ,GAESE,EACTC,IAKO,CACH,UAAWA,EAAM,IAAI,CAAC,CAAE,OAAAH,EAAQ,KAAAD,CAAK,KAC1B,CACH,MAAOH,EAAQG,CAAI,EACnB,GAAGC,CACP,EACH,CACL","sourcesContent":["import type { Linter } from \"eslint\";\n\ntype FileType =\n | \"all\"\n | \"ava\"\n | \"d.ts\"\n | \"javascript\"\n | \"jest\"\n | \"js_and_ts\"\n | \"jsx_and_tsx\"\n | \"markdown_inline_js_jsx\"\n | \"markdown\"\n | \"mdx\"\n | \"tests\"\n | \"typescript\"\n | \"vitest\";\n\nconst getType = (fileType: FileType) => {\n switch (fileType) {\n case \"typescript\": {\n // @see https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions\n return [\"**/*.ts\", \"**/*.d.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"];\n }\n case \"jsx_and_tsx\": {\n return [\"**/*.jsx\", \"**/*.tsx\"];\n }\n case \"js_and_ts\": {\n return [\"**/*.js\", \"**/*.mjs\", \"**/*.cjs\", \"**/*.ts\", \"**/*.d.ts\", \"**/*.mts\", \"**/*.cts\"];\n }\n case \"javascript\": {\n return [\"**/*.js\", \"**/*.mjs\", \"**/*.cjs\"];\n }\n case \"all\": {\n return [\"**/*.js\", \"**/*.jsx\", \"**/*.mjs\", \"**/*.cjs\", \"**/*.ts\", \"**/*.d.ts\", \"**/*.tsx\", \"**/*.mts\", \"**/*.cts\"];\n }\n case \"markdown\": {\n return [\"**/*.{md,mkdn,mdown,markdown}\"];\n }\n case \"markdown_inline_js_jsx\": {\n return [\"**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}\"];\n }\n case \"mdx\": {\n return [\"**/*.mdx\"];\n }\n case \"jest\": {\n return [\n // Test files\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n\n // Facebook convention\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n ];\n }\n case \"ava\": {\n return [\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n ];\n }\n case \"vitest\": {\n return [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"];\n }\n case \"tests\": {\n return [\n // ava\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n\n // jest\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n \"**/__tests__/**/*.?(c|m)[jt]s?(x)\",\n \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\",\n ];\n }\n case \"d.ts\": {\n return [\"**/*.d.ts\"];\n }\n default: {\n throw new Error(\"Unknown type\");\n }\n }\n};\n\nexport const createConfig = (type: FileType, config: Omit<Linter.ConfigOverride, \"files\">, environment?: Record<string, boolean>): Linter.Config => {\n return {\n env: environment,\n overrides: [\n {\n files: getType(type),\n ...config,\n },\n ],\n };\n};\nexport const createConfigs = (\n rules: {\n config: Omit<Linter.ConfigOverride, \"files\">;\n type: FileType;\n }[],\n): Linter.Config => {\n return {\n overrides: rules.map(({ config, type }) => {\n return {\n files: getType(type),\n ...config,\n };\n }),\n };\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7IAX5NTR_js = require('./chunk-7IAX5NTR.js');
|
|
4
|
+
|
|
5
|
+
var o=chunk7IAX5NTR_js.b([{config:{rules:{"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"error","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"no-extra-semi":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"error","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"error","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]}},type:"javascript"},{config:{rules:{"no-array-constructor":"off","no-const-assign":"off","no-dupe-args":"off","no-dupe-class-members":"off","no-dupe-keys":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-new-symbol":"off","no-obj-calls":"off","no-redeclare":"off","no-return-await":"off","no-shadow":"off","no-this-before-super":"off","no-throw-literal":"off","no-undef":"off","no-unreachable":"off","no-unsafe-negation":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","space-before-function-paren":"off","space-infix-ops":"off","valid-typeof":"off"}},type:"typescript"}]),n=o;
|
|
6
|
+
|
|
7
|
+
exports.a = n;
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-LGXEWPMG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/errors.ts"],"names":["config","createConfigs","errors_default"],"mappings":"wCAGA,IAAMA,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,MAAO,CAGH,gBAAiB,QAIjB,gBAAiB,CAAC,QAAS,CAAE,cAAe,EAAK,CAAC,EAIlD,4BAA6B,QAI7B,mBAAoB,QAIpB,sBAAuB,QAGvB,iBAAkB,CAAC,QAAS,QAAQ,EAGpC,aAAc,OAGd,wBAAyB,OAGzB,mBAAoB,QAGpB,cAAe,QAGf,eAAgB,QAIhB,kBAAmB,QAGnB,eAAgB,QAGhB,oBAAqB,QAGrB,WAAY,QAGZ,2BAA4B,QAG5B,eAAgB,QAIhB,wBAAyB,QAIzB,kBAAmB,CACf,QACA,MACA,CACI,kBAAmB,GACnB,4BAA6B,GAC7B,UAAW,MACX,wBAAyB,GACzB,aAAc,EAClB,CACJ,EAGA,gBAAiB,QAGjB,iBAAkB,QAGlB,mBAAoB,QAGpB,wBAAyB,QAGzB,oBAAqB,QAGrB,0BAA2B,QAI3B,uBAAwB,QAIxB,gCAAiC,QAGjC,oBAAqB,MAIrB,eAAgB,QAIhB,6BAA8B,QAG9B,wBAAyB,QAIzB,kBAAmB,QAGnB,mBAAoB,QAIpB,mBAAoB,QAIpB,8BAA+B,QAG/B,0BAA2B,QAI3B,iBAAkB,QAIlB,sBAAuB,MAIvB,oBAAqB,QAIrB,qBAAsB,QAItB,8BAA+B,CAAC,QAAS,CAAE,4BAA6B,EAAK,CAAC,EAI9E,2BAA4B,QAK5B,yBAA0B,MAG1B,YAAa,QAIb,cAAe,MAIf,eAAgB,CAAC,QAAS,CAAE,sBAAuB,EAAK,CAAC,CAC7D,CACJ,EACA,KAAM,YACV,EACA,CACI,OAAQ,CACJ,MAAO,CAIH,uBAAwB,MAGxB,kBAAmB,MAGnB,eAAgB,MAIhB,wBAAyB,MAGzB,eAAgB,MAIhB,oBAAqB,MAIrB,kBAAmB,MAInB,gBAAiB,MAGjB,iBAAkB,MAIlB,kBAAmB,MAInB,eAAgB,MAIhB,mBAAoB,MAGpB,cAAe,MAGf,gBAAiB,MAGjB,eAAgB,MAIhB,eAAgB,MAIhB,kBAAmB,MAInB,YAAa,MAGb,uBAAwB,MAIxB,mBAAoB,MAGpB,WAAY,MAGZ,iBAAkB,MAGlB,qBAAsB,MAItB,wBAAyB,MAIzB,iBAAkB,MAIlB,uBAAwB,MAIxB,yBAA0B,MAI1B,8BAA+B,MAI/B,kBAAmB,MAEnB,eAAgB,KACpB,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\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 unnecessary semicolons\n \"no-extra-semi\": \"error\",\n\n // disallow overwriting functions written as function declarations\n \"no-func-assign\": \"error\",\n\n // https://eslint.org/docs/rules/no-import-assign\n \"no-import-assign\": \"error\",\n\n // disallow function or variable declarations in nested blocks\n \"no-inner-declarations\": \"error\",\n\n // disallow invalid regular expression strings in the RegExp constructor\n \"no-invalid-regexp\": \"error\",\n\n // disallow irregular whitespace outside of strings and comments\n \"no-irregular-whitespace\": \"error\",\n\n // Disallow Number Literals That Lose Precision\n // https://eslint.org/docs/rules/no-loss-of-precision\n \"no-loss-of-precision\": \"error\",\n\n // Disallow characters which are made with multiple code points in character class syntax\n // https://eslint.org/docs/rules/no-misleading-character-class\n \"no-misleading-character-class\": \"error\",\n\n // deprecated in favor of no-unsafe-negation\n \"no-negated-in-lhs\": \"off\",\n\n // Disallow returning values from Promise executor functions\n // disallow the use of object properties of the global object (Math and JSON) as functions\n \"no-obj-calls\": \"error\",\n\n // disallow use of Object.prototypes builtins directly\n // https://eslint.org/docs/rules/no-promise-executor-return\n \"no-promise-executor-return\": \"error\",\n\n // https://eslint.org/docs/rules/no-prototype-builtins\n \"no-prototype-builtins\": \"error\",\n\n // Disallow returning values from setters\n // disallow multiple spaces in a regular expression literal\n \"no-regex-spaces\": \"error\",\n\n // https://eslint.org/docs/rules/no-setter-return\n \"no-setter-return\": \"error\",\n\n // Disallow template literal placeholder syntax in regular strings\n // disallow sparse arrays\n \"no-sparse-arrays\": \"error\",\n\n // Avoid code that looks like two expressions but is actually one\n // https://eslint.org/docs/rules/no-template-curly-in-string\n \"no-template-curly-in-string\": \"error\",\n\n // https://eslint.org/docs/rules/no-unexpected-multiline\n \"no-unexpected-multiline\": \"error\",\n\n // Disallow loops with a body that allows only one iteration\n // disallow unreachable statements after a return, throw, continue, or break statement\n \"no-unreachable\": \"error\",\n\n // disallow return/throw/break/continue inside finally blocks\n // https://eslint.org/docs/rules/no-unreachable-loop\n \"no-unreachable-loop\": \"off\", // error with typescript\n\n // disallow negating the left operand of relational operators\n // https://eslint.org/docs/rules/no-unsafe-finally\n \"no-unsafe-finally\": \"error\",\n\n // disallow use of optional chaining in contexts where the undefined value is not allowed\n // https://eslint.org/docs/rules/no-unsafe-negation\n \"no-unsafe-negation\": \"error\",\n\n // Disallow useless backreferences in regular expressions\n // https://eslint.org/docs/rules/no-unsafe-optional-chaining\n \"no-unsafe-optional-chaining\": [\"error\", { disallowArithmeticOperators: true }],\n\n // disallow negation of the left operand of an in expression\n // https://eslint.org/docs/rules/no-useless-backreference\n \"no-useless-backreference\": \"error\",\n\n // Disallow assignments that can lead to race conditions due to usage of await or yield\n // https://eslint.org/docs/rules/require-atomic-updates\n // note: not enabled because it is very buggy\n \"require-atomic-updates\": \"off\",\n\n // disallow comparisons with the value NaN\n \"use-isnan\": \"error\",\n\n // ensure JSDoc comments are valid\n // https://eslint.org/docs/rules/valid-jsdoc\n \"valid-jsdoc\": \"off\",\n\n // ensure that the results of typeof are compared against a valid string\n // https://eslint.org/docs/rules/valid-typeof\n \"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n },\n },\n type: \"javascript\",\n },\n {\n config: {\n rules: {\n // Some built-in types have aliases, while some types are considered dangerous or harmful.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/ban-types.md\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md\n \"no-array-constructor\": \"off\",\n\n // Enforce constituents of a type union/intersection to be sorted alphabetically.\n \"no-const-assign\": \"off\",\n\n // Enforce using @ts-expect-error over @ts-ignore.\n \"no-dupe-args\": \"off\",\n\n // Enforce specifying generic type arguments on constructor name of a constructor call.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md\n \"no-dupe-class-members\": \"off\",\n\n // Require explicit accessibility modifiers on class properties and methods.\n \"no-dupe-keys\": \"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 // 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 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\": \"off\",\n\n // Disallow duplicate enum member values.\n \"no-func-assign\": \"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\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 // Enforce valid definition of new and constructor.\n \"no-new-func\": \"off\",\n\n // Disallow TypeScript namespaces.\n \"no-new-symbol\": \"off\",\n\n // Disallow non-null assertions in the left operand of a nullish coalescing operator.\n \"no-obj-calls\": \"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 // 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 invocation of require().\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md\n \"no-shadow\": \"off\",\n\n // Disallow aliasing this.\n \"no-this-before-super\": \"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 unnecessary constraints on generic types.\n \"no-undef\": \"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 // 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 unsafe declaration merging.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md\n \"no-unused-vars\": \"off\",\n\n // Disallow member access on a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md\n \"no-use-before-define\": \"off\",\n\n // Disallow returning a value with type any from a function.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md\n \"no-useless-constructor\": \"off\",\n\n // Enforce using function types instead of interfaces with call signatures.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md\n \"space-before-function-paren\": \"off\",\n\n // 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 },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkO7JDC6TD_js = require('./chunk-O7JDC6TD.js');
|
|
4
|
+
var chunk7IAX5NTR_js = require('./chunk-7IAX5NTR.js');
|
|
5
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
|
+
|
|
7
|
+
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);var o={};global.hasAnolilabEsLintConfigPrettier&&(o={"array-bracket-newline":"off","array-bracket-spacing":"off","array-element-newline":"off","arrow-parens":"off","arrow-spacing":"off","block-spacing":"off","brace-style":"off","comma-dangle":"off","comma-spacing":"off","comma-style":"off","computed-property-spacing":"off",curly:0,"dot-location":"off","eol-last":"off","func-call-spacing":"off","function-call-argument-newline":"off","function-paren-newline":"off","generator-star-spacing":"off","implicit-arrow-linebreak":"off",indent:"off","jsx-quotes":"off","key-spacing":"off","keyword-spacing":"off","linebreak-style":"off","lines-around-comment":0,"max-len":0,"multiline-ternary":"off","new-parens":"off","newline-per-chained-call":"off","no-confusing-arrow":0,"no-extra-parens":"off","no-extra-semi":"off","no-floating-decimal":"off","no-mixed-operators":0,"no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":0,"no-trailing-spaces":"off","no-unexpected-multiline":0,"no-whitespace-before-property":"off","nonblock-statement-body-position":"off","object-curly-newline":"off","object-curly-spacing":"off","object-property-newline":"off","one-var-declaration-per-line":"off","operator-linebreak":"off","padded-blocks":"off","quote-props":"off",quotes:0,"rest-spread-spacing":"off",semi:"off","semi-spacing":"off","semi-style":"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off","switch-colon-spacing":"off","template-curly-spacing":"off","template-tag-spacing":"off","unicode-bom":"off","wrap-iife":"off","wrap-regex":"off","yield-star-spacing":"off"});var a=chunk7IAX5NTR_js.b([{config:{rules:{"array-bracket-newline":"off","array-bracket-spacing":["error","never"],"array-element-newline":"off","block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{ignoreDestructuring:!1,properties:"never"}],"capitalized-comments":["off","never",{block:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"},line:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"}}],"comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"always-multiline",imports:"always-multiline",objects:"always-multiline"}],"comma-spacing":["error",{after:!0,before:!1}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,NewExpression:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{considerPropertyDescriptor:!0,includeCommonJSModuleExports:!1}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-call-argument-newline":["error","consistent"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",chunkO7JDC6TD_js.a,{ArrayExpression:1,CallExpression:{arguments:1},FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ImportDeclaration:1,ObjectExpression:1,SwitchCase:1,VariableDeclarator:1,flatTernaryExpressions:!1,ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],outerIIFEBody:1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{afterColon:!0,beforeColon:!1}],"keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"line-comment-position":"off","linebreak-style":["error","unix"],"lines-around-comment":"off","lines-around-directive":["error",{after:"always",before:"always"}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreUrls:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{IIFEs:!0,max:50,skipBlankLines:!0,skipComments:!0}],"max-nested-callbacks":"off","max-params":["off",3],"max-statements":["off",10],"max-statements-per-line":["off",{max:1}],"multiline-comment-style":["off","starred-block"],"multiline-ternary":["off","never"],"new-cap":["error",{capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"],newIsCap:!0,newIsCapExceptions:[]}],"new-parens":"error","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":["error",{ignoreChainWithDepth:4}],"no-array-constructor":"error","no-bitwise":"error","no-continue":"error","no-inline-comments":"off","no-lonely-if":"error","no-mixed-operators":["error",{allowSamePrecedence:!1,groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]]}],"no-mixed-spaces-and-tabs":"error","no-multi-assign":["error"],"no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"error","no-new-object":"error","no-plusplus":"error","no-restricted-syntax":["error",{message:"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",selector:"ForInStatement"},{message:"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.",selector:"ForOfStatement"},{message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",selector:"LabeledStatement"},{message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",selector:"WithStatement"},{message:"`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.",selector:"CallExpression[callee.name=useMemo][arguments.1.type=ArrayExpression][arguments.1.elements.length=0]"},{message:"Use `.key` instead of `.keyCode`",selector:"MemberExpression > .property[type=Identifier][name=keyCode]"}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{ignoreComments:!1,skipBlankLines:!1}],"no-underscore-dangle":["error",{allow:["__DEV__","__STORYBOOK_CLIENT_API__","__STORYBOOK_ADDONS_CHANNEL__","__STORYBOOK_STORY_STORE__"],allowAfterSuper:!1,allowAfterThis:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-newline":["error",{ExportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ImportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ObjectExpression:{consistent:!0,minProperties:4,multiline:!0},ObjectPattern:{consistent:!0,minProperties:4,multiline:!0}}],"object-curly-spacing":["error","always"],"object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"one-var":["error","never"],"one-var-declaration-per-line":["error","always"],"operator-assignment":["error","always"],"operator-linebreak":["error","before",{overrides:{"=":"none"}}],"padded-blocks":["error",{blocks:"never",classes:"never",switches:"never"},{allowSingleLineBlocks:!0}],"padding-line-between-statements":"off","prefer-exponentiation-operator":"error","prefer-object-spread":"error","quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{after:!0,before:!1}],"semi-style":["error","last"],"sort-keys":"off","sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{nonwords:!1,overrides:{},words:!0}],"spaced-comment":["error","always",{block:{balanced:!0,exceptions:["-","+"],markers:["=","!",":","::"]},line:{exceptions:["-","+","*"],markers:["=","!","/"]}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off",...o}},type:"all"},{config:{rules:{"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}]}},type:"javascript"},{config:{rules:{"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","constructor-super":"off","dot-notation":"off","func-call-spacing":"off","getter-return":"off",indent:"off","keyword-spacing":"off","lines-between-class-members":"off",quotes:"off",semi:"off",strict:"off"}},type:"typescript"}]),l=a;
|
|
8
|
+
|
|
9
|
+
exports.a = l;
|
|
10
|
+
//# sourceMappingURL=out.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-MSAOPFV6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/style.ts"],"names":["hasDependency","hasDevDependency","prettierRules","config","createConfigs","indent_default","style_default"],"mappings":"gFAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAA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CAAC,IAAK,GAAG,EACrB,QAAS,CAAC,IAAK,IAAK,IAAK,IAAI,CACjC,EACA,KAAM,CACF,WAAY,CAAC,IAAK,IAAK,GAAG,EAC1B,QAAS,CAAC,IAAK,IAAK,GAAG,CAC3B,CACJ,CACJ,EAIA,uBAAwB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,MAEd,GAAGH,CACP,CACJ,EACA,KAAM,KACV,EACA,CACI,OAAQ,CACJ,MAAO,CAGH,8BAA+B,CAAC,QAAS,SAAU,CAAE,sBAAuB,EAAM,CAAC,CACvF,CACJ,EACA,KAAM,YACV,EACA,CACI,OAAQ,CACJ,MAAO,CAEH,cAAe,MAEf,UAAW,MAEX,eAAgB,MAEhB,gBAAiB,MAEjB,oBAAqB,MAErB,eAAgB,MAEhB,oBAAqB,MACrB,gBAAiB,MAIjB,OAAQ,MAGR,kBAAmB,MAGnB,8BAA+B,MAI/B,OAAQ,MAIR,KAAM,MAIN,OAAQ,KACZ,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMI,EAAQH","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport indent from \"../utils/indent\";\nimport { createConfigs } from \"../utils/create-config\";\n\nif (!global.hasAnolilabEsLintConfigPrettier && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.hasAnolilabEsLintConfigPrettier = true;\n}\n\nlet prettierRules: Linter.Config[\"rules\"] = {};\n\nif (global.hasAnolilabEsLintConfigPrettier) {\n prettierRules = {\n // The rest are rules that you never need to enable when using Prettier.\n \"array-bracket-newline\": \"off\",\n \"array-bracket-spacing\": \"off\",\n \"array-element-newline\": \"off\",\n \"arrow-parens\": \"off\",\n \"arrow-spacing\": \"off\",\n \"block-spacing\": \"off\",\n \"brace-style\": \"off\",\n \"comma-dangle\": \"off\",\n\n \"comma-spacing\": \"off\",\n \"comma-style\": \"off\",\n \"computed-property-spacing\": \"off\",\n // script can distinguish them.)\n curly: 0,\n \"dot-location\": \"off\",\n \"eol-last\": \"off\",\n \"func-call-spacing\": \"off\",\n \"function-call-argument-newline\": \"off\",\n \"function-paren-newline\": \"off\",\n \"generator-star-spacing\": \"off\",\n \"implicit-arrow-linebreak\": \"off\",\n indent: \"off\",\n \"jsx-quotes\": \"off\",\n \"key-spacing\": \"off\",\n \"keyword-spacing\": \"off\",\n \"linebreak-style\": \"off\",\n \"lines-around-comment\": 0,\n \"max-len\": 0,\n \"multiline-ternary\": \"off\",\n \"new-parens\": \"off\",\n \"newline-per-chained-call\": \"off\",\n \"no-confusing-arrow\": 0,\n \"no-extra-parens\": \"off\",\n \"no-extra-semi\": \"off\",\n \"no-floating-decimal\": \"off\",\n \"no-mixed-operators\": 0,\n \"no-mixed-spaces-and-tabs\": \"off\",\n \"no-multi-spaces\": \"off\",\n \"no-multiple-empty-lines\": \"off\",\n \"no-tabs\": 0,\n \"no-trailing-spaces\": \"off\",\n \"no-unexpected-multiline\": 0,\n \"no-whitespace-before-property\": \"off\",\n \"nonblock-statement-body-position\": \"off\",\n \"object-curly-newline\": \"off\",\n \"object-curly-spacing\": \"off\",\n \"object-property-newline\": \"off\",\n \"one-var-declaration-per-line\": \"off\",\n \"operator-linebreak\": \"off\",\n \"padded-blocks\": \"off\",\n \"quote-props\": \"off\",\n quotes: 0,\n \"rest-spread-spacing\": \"off\",\n semi: \"off\",\n \"semi-spacing\": \"off\",\n \"semi-style\": \"off\",\n \"space-before-blocks\": \"off\",\n \"space-before-function-paren\": \"off\",\n \"space-in-parens\": \"off\",\n \"space-infix-ops\": \"off\",\n \"space-unary-ops\": \"off\",\n \"switch-colon-spacing\": \"off\",\n \"template-curly-spacing\": \"off\",\n \"template-tag-spacing\": \"off\",\n \"unicode-bom\": \"off\",\n \"wrap-iife\": \"off\",\n \"wrap-regex\": \"off\",\n \"yield-star-spacing\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { ignoreDestructuring: false, properties: \"never\" }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n block: {\n ignoreConsecutiveComments: true,\n ignoreInlineComments: true,\n ignorePattern: \".*\",\n },\n line: {\n ignoreConsecutiveComments: true,\n ignoreInlineComments: true,\n ignorePattern: \".*\",\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n arrays: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n imports: \"always-multiline\",\n objects: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { after: true, before: false }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n NewExpression: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n considerPropertyDescriptor: true,\n includeCommonJSModuleExports: false,\n },\n ],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n ArrayExpression: 1,\n CallExpression: {\n arguments: 1,\n },\n // MemberExpression: null,\n FunctionDeclaration: {\n body: 1,\n parameters: 1,\n },\n FunctionExpression: {\n body: 1,\n parameters: 1,\n },\n ImportDeclaration: 1,\n ObjectExpression: 1,\n SwitchCase: 1,\n VariableDeclarator: 1,\n flatTernaryExpressions: false,\n ignoreComments: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n outerIIFEBody: 1,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n after: true,\n before: true,\n overrides: {\n case: { after: true },\n return: { after: true },\n throw: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n \"line-comment-position\": \"off\",\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n after: \"always\",\n before: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n ignoreUrls: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n IIFEs: true,\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n newIsCap: true,\n newIsCapExceptions: [],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n allowSamePrecedence: false,\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n selector: \"ForInStatement\",\n },\n {\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n selector: \"ForOfStatement\",\n },\n {\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n selector: \"LabeledStatement\",\n },\n {\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n selector: \"WithStatement\",\n },\n {\n message: \"`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.\",\n selector: \"CallExpression[callee.name=useMemo][arguments.1.type=ArrayExpression][arguments.1.elements.length=0]\",\n },\n {\n message: \"Use `.key` instead of `.keyCode`\",\n selector: \"MemberExpression > .property[type=Identifier][name=keyCode]\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n ignoreComments: false,\n skipBlankLines: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\", \"__STORYBOOK_CLIENT_API__\", \"__STORYBOOK_ADDONS_CHANNEL__\", \"__STORYBOOK_STORY_STORE__\"],\n allowAfterSuper: false,\n allowAfterThis: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ExportDeclaration: { consistent: true, minProperties: 4, multiline: true },\n ImportDeclaration: { consistent: true, minProperties: 4, multiline: true },\n ObjectExpression: { consistent: true, minProperties: 4, multiline: true },\n ObjectPattern: { consistent: true, minProperties: 4, multiline: true },\n },\n ],\n\n // enforce line breaks between braces\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, numbers: false, unnecessary: true }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { after: true, before: false }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": \"off\",\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n asyncArrow: \"always\",\n named: \"never\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n nonwords: false,\n overrides: {},\n words: true,\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n block: {\n balanced: true,\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n },\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n\n ...prettierRules,\n },\n },\n type: \"all\",\n },\n {\n config: {\n rules: {\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n },\n },\n type: \"javascript\",\n },\n {\n config: {\n rules: {\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md\n \"brace-style\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md\n camelcase: \"off\",\n // The TypeScript version also adds 3 new options, all of which should be set to the same value as the base config\n \"comma-dangle\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md\n \"comma-spacing\": \"off\",\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n \"constructor-super\": \"off\",\n // Disable the \"dot-notation\" rule, as it can report incorrect errors on TypeScript code\n \"dot-notation\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md\n \"func-call-spacing\": \"off\",\n \"getter-return\": \"off\",\n\n // Require that function overload signatures be consecutive.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md\n indent: \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md\n \"keyword-spacing\": \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md\n \"lines-between-class-members\": \"off\",\n\n // Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md\n quotes: \"off\",\n\n // Require each enum member value to be explicitly initialized.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md\n semi: \"off\",\n\n // Disallow empty exports that don't change anything in a module file.\n // Breaks @typescript-eslint/parser\n strict: \"off\",\n },\n },\n type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOCCLNRZC_js = require('./chunk-OCCLNRZC.js');
|
|
4
|
+
|
|
5
|
+
if(global.anolilabEslintIndent===void 0&&chunkOCCLNRZC_js.a.indent){if(Number.isNaN(chunkOCCLNRZC_js.a.indent))throw new TypeError("Indent must be a number");global.anolilabEslintIndent=Number(chunkOCCLNRZC_js.a.indent);}else global.anolilabEslintIndent=4;var l=global.anolilabEslintIndent,i=l;
|
|
6
|
+
|
|
7
|
+
exports.a = i;
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-O7JDC6TD.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
4
4
|
|
|
5
|
-
!global.anolilabEslintPackageJsonConfig&&packageJsonUtils.pkg&&(global.anolilabEslintPackageJsonConfig=packageJsonUtils.pkg.anolilab?.["eslint-config"]);var
|
|
5
|
+
!global.anolilabEslintPackageJsonConfig&&packageJsonUtils.pkg&&(global.anolilabEslintPackageJsonConfig=packageJsonUtils.pkg.anolilab?.["eslint-config"]);var n=global.anolilabEslintPackageJsonConfig??{},a=n;
|
|
6
6
|
|
|
7
7
|
exports.a = a;
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-OCCLNRZC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/eslint-config.ts"],"names":["pkg","config","eslint_config_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAEhB,CAAC,OAAO,iCAAmCA,IAE3C,OAAO,gCAAkCA,EAAI,WAAc,eAAe,GAG9E,IAAMC,
|
|
1
|
+
{"version":3,"sources":["../src/utils/eslint-config.ts"],"names":["pkg","config","eslint_config_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAEhB,CAAC,OAAO,iCAAmCA,IAE3C,OAAO,gCAAkCA,EAAI,WAAc,eAAe,GAG9E,IAAMC,EAA8C,OAAO,iCAAmC,CAAC,EAExFC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\n\nif (!global.anolilabEslintPackageJsonConfig && pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n global.anolilabEslintPackageJsonConfig = pkg[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nconst config: Record<string, boolean | undefined> = global.anolilabEslintPackageJsonConfig ?? {};\n\nexport default config;\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2L7ILCIC_js = require('../chunk-2L7ILCIC.js');
|
|
4
4
|
require('../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = chunk2L7ILCIC_js.a;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=best-practices.js.map
|
package/dist/config/errors.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLGXEWPMG_js = require('../chunk-LGXEWPMG.js');
|
|
4
|
+
require('../chunk-7IAX5NTR.js');
|
|
4
5
|
require('../chunk-3NVDJZNH.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
module.exports =
|
|
9
|
+
module.exports = chunkLGXEWPMG_js.a;
|
|
9
10
|
//# sourceMappingURL=out.js.map
|
|
10
11
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
6
|
|
|
7
|
-
var t=
|
|
7
|
+
var t=chunk7IAX5NTR_js.a("all",{plugins:["antfu"],rules:{"antfu/generic-spacing":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-cjs-exports":packageJsonUtils.packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":packageJsonUtils.hasTypescript?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off"}}),i=t;
|
|
8
8
|
|
|
9
9
|
module.exports = i;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var e=
|
|
6
|
+
var e=chunk7IAX5NTR_js.a("all",{extends:["plugin:array-func/recommended"],plugins:["array-func"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
|
|
7
7
|
|
|
8
8
|
module.exports = a;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
3
|
+
var chunkMSAOPFV6_js = require('../../chunk-MSAOPFV6.js');
|
|
4
|
+
require('../../chunk-O7JDC6TD.js');
|
|
5
|
+
require('../../chunk-OCCLNRZC.js');
|
|
6
|
+
var chunk2L7ILCIC_js = require('../../chunk-2L7ILCIC.js');
|
|
7
|
+
var chunkLGXEWPMG_js = require('../../chunk-LGXEWPMG.js');
|
|
8
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
9
9
|
require('../../chunk-3NVDJZNH.js');
|
|
10
10
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var n=chunk2L7ILCIC_js.a.rules,r=chunkLGXEWPMG_js.a.rules,e=chunkMSAOPFV6_js.a.rules;global.anolilabEslintConfigBabelPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigBabelPrettierRules={"@babel/object-curly-spacing":"off","@babel/semi":"off","babel/quotes":0});var f=chunk7IAX5NTR_js.a("all",{plugins:["babel"],rules:{"babel/camelcase":[...e.camelcase],"babel/new-cap":e["new-cap"],"babel/no-invalid-this":n["no-invalid-this"],"babel/no-unused-expressions":n["no-unused-expressions"],"babel/object-curly-spacing":e["object-curly-spacing"],"babel/quotes":e.quotes,"babel/semi":e.semi,"babel/valid-typeof":r["valid-typeof"],camelcase:"off","new-cap":"off","no-invalid-this":"off","no-unused-expressions":"off","object-curly-spacing":"off",quotes:"off",semi:"off","valid-typeof":"off",...global.anolilabEslintConfigBabelPrettierRules}}),d=f;
|
|
13
13
|
|
|
14
14
|
module.exports = d;
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasDependency","hasDevDependency","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","createConfig","babel_default"],"mappings":"gRAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAQhD,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3B,OAAO,yCAA2C,SAAcP,EAAc,UAAU,GAAKC,EAAiB,UAAU,KACxH,OAAO,uCAAyC,CAC5C,8BAA+B,MAE/B,cAAe,MACf,eAAgB,CACpB,GAGJ,IAAMO,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasDependency","hasDevDependency","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","createConfig","babel_default"],"mappings":"gRAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAQhD,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3B,OAAO,yCAA2C,SAAcP,EAAc,UAAU,GAAKC,EAAiB,UAAU,KACxH,OAAO,uCAAyC,CAC5C,8BAA+B,MAE/B,cAAe,MACf,eAAgB,CACpB,GAGJ,IAAMO,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CAEH,kBAAmB,CAAC,GAAIH,EAAW,SAA0B,EAC7D,gBAAiBA,EAAW,SAAS,EAErC,wBAAyBJ,EAAmB,iBAAiB,EAC7D,8BAA+BA,EAAmB,uBAAuB,EAEzE,6BAA8BI,EAAW,sBAAsB,EAC/D,eAAgBA,EAAW,OAE3B,aAAcA,EAAW,KACzB,qBAAsBF,EAAY,cAAc,EAEhD,UAAW,MACX,UAAW,MAEX,kBAAmB,MACnB,wBAAyB,MAEzB,uBAAwB,MACxB,OAAQ,MAER,KAAM,MACN,eAAgB,MAEhB,GAAG,OAAO,sCACd,CACJ,CAAC,EAEMM,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nif (global.anolilabEslintConfigBabelPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigBabelPrettierRules = {\n \"@babel/object-curly-spacing\": \"off\",\n\n \"@babel/semi\": \"off\",\n \"babel/quotes\": 0,\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n // Deep clone to avoid object mutation weirdness\n \"babel/camelcase\": [...(styleRules[\"camelcase\"] as unknown[])] as Linter.RuleEntry,\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n \"babel/quotes\": styleRules[\"quotes\"],\n\n \"babel/semi\": styleRules[\"semi\"],\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n camelcase: \"off\",\n \"new-cap\": \"off\",\n\n \"no-invalid-this\": \"off\",\n \"no-unused-expressions\": \"off\",\n\n \"object-curly-spacing\": \"off\",\n quotes: \"off\",\n\n semi: \"off\",\n \"valid-typeof\": \"off\",\n\n ...global.anolilabEslintConfigBabelPrettierRules,\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var t=
|
|
6
|
+
var t=chunk7IAX5NTR_js.a("all",{plugins:["es-x"],settings:{es:{aggressive:!0}}}),r=t;
|
|
7
7
|
|
|
8
8
|
module.exports = r;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var n=
|
|
6
|
+
var n=chunk7IAX5NTR_js.a("all",{extends:["plugin:eslint-comments/recommended"],plugins:["eslint-comments"],rules:{"eslint-comments/no-restricted-disable":"off","eslint-comments/no-unlimited-disable":"off","eslint-comments/no-unused-disable":"error","eslint-comments/no-unused-enable":"error","eslint-comments/no-use":"off","eslint-comments/require-description":"off"}}),o=n;
|
|
7
7
|
|
|
8
8
|
module.exports = o;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IAX5NTR_js = require('../../chunk-7IAX5NTR.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var t=
|
|
6
|
+
var t=chunk7IAX5NTR_js.a("typescript",{extends:["plugin:etc/recommended"],plugins:["etc"]}),n=t;
|
|
7
7
|
|
|
8
8
|
module.exports = n;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkO7JDC6TD_js = require('../../chunk-O7JDC6TD.js');
|
|
4
|
+
require('../../chunk-OCCLNRZC.js');
|
|
5
5
|
require('../../chunk-3NVDJZNH.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
|
-
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigHtmlPrettierRules={"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"},global.anolilabEslintConfigHtmlPrettierSettings={"html/report-bad-indent":"off"});var e={};global.hasAnolilabEsLintConfigPrettier||(e={"html/indent":`+${
|
|
8
|
+
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigHtmlPrettierRules={"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"},global.anolilabEslintConfigHtmlPrettierSettings={"html/report-bad-indent":"off"});var e={};global.hasAnolilabEsLintConfigPrettier||(e={"html/indent":`+${chunkO7JDC6TD_js.a}`});var n={overrides:[{extends:["plugin:@html-eslint/recommended"],files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],globals:{sourceCode:!0},parser:"@html-eslint/parser",plugins:["html","@html-eslint"],rules:{"@html-eslint/indent":["error",chunkO7JDC6TD_js.a],"capitalized-comments":"off","spaced-comment":"off",...global.anolilabEslintConfigHtmlPrettierRules},settings:{"html/report-bad-indent":"error",...e,...global.anolilabEslintConfigHtmlPrettierSettings}}]},s=n;
|
|
9
9
|
|
|
10
10
|
module.exports = s;
|
|
11
11
|
//# sourceMappingURL=out.js.map
|