@anolilab/eslint-config 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +7 -6
  3. package/dist/chunk-6ZQSXLLR.mjs +7 -0
  4. package/dist/chunk-6ZQSXLLR.mjs.map +1 -0
  5. package/dist/chunk-ROX6JHFJ.js +9 -0
  6. package/dist/chunk-ROX6JHFJ.js.map +1 -0
  7. package/dist/config/plugins/babel.js +6 -3
  8. package/dist/config/plugins/babel.js.map +1 -1
  9. package/dist/config/plugins/babel.mjs +9 -6
  10. package/dist/config/plugins/babel.mjs.map +1 -1
  11. package/dist/config/plugins/jsdoc.js +2 -2
  12. package/dist/config/plugins/jsdoc.js.map +1 -1
  13. package/dist/config/plugins/jsdoc.mjs +2 -2
  14. package/dist/config/plugins/jsdoc.mjs.map +1 -1
  15. package/dist/config/plugins/jsonc.js +1 -1
  16. package/dist/config/plugins/jsonc.js.map +1 -1
  17. package/dist/config/plugins/jsonc.mjs +1 -1
  18. package/dist/config/plugins/jsonc.mjs.map +1 -1
  19. package/dist/config/plugins/node.js.map +1 -1
  20. package/dist/config/plugins/node.mjs.map +1 -1
  21. package/dist/config/plugins/react.js +4 -3
  22. package/dist/config/plugins/react.js.map +1 -1
  23. package/dist/config/plugins/react.mjs +4 -3
  24. package/dist/config/plugins/react.mjs.map +1 -1
  25. package/dist/config/plugins/typescript.js +5 -5
  26. package/dist/config/plugins/typescript.js.map +1 -1
  27. package/dist/config/plugins/typescript.mjs +5 -5
  28. package/dist/config/plugins/typescript.mjs.map +1 -1
  29. package/dist/config/plugins/unicorn.js +7 -5
  30. package/dist/config/plugins/unicorn.js.map +1 -1
  31. package/dist/config/plugins/unicorn.mjs +6 -4
  32. package/dist/config/plugins/unicorn.mjs.map +1 -1
  33. package/dist/config/style.js +2 -2
  34. package/dist/config/style.mjs +1 -1
  35. package/dist/index.js +8 -7
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +9 -8
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/postinstall.js.map +1 -1
  40. package/dist/postinstall.mjs.map +1 -1
  41. package/package.json +7 -5
  42. package/dist/chunk-F6JHPR4L.mjs +0 -7
  43. package/dist/chunk-F6JHPR4L.mjs.map +0 -1
  44. package/dist/chunk-NO36P4BR.js +0 -9
  45. package/dist/chunk-NO36P4BR.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## @anolilab/eslint-config [6.0.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.2...@anolilab/eslint-config@6.0.3) (2023-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **eslint-config:** disabling all rules that are crashing with the prettier config, updated the readme with the info ([ab2a954](https://github.com/anolilab/javascript-style-guide/commit/ab2a954f1482dbe36fd941e305e83619bc831569))
7
+
8
+ ## @anolilab/eslint-config [6.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.1...@anolilab/eslint-config@6.0.2) (2023-06-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **eslint-config:** changed func-names to ["error", "as-needed"] to work better with "func-style": ["error", "expression"] ([1d0f5b5](https://github.com/anolilab/javascript-style-guide/commit/1d0f5b560c8d5830f155657a204299f4206dde11))
14
+ * **eslint-config:** fixed the behavior of warn_on_unsupported_typescript_version ([635ebec](https://github.com/anolilab/javascript-style-guide/commit/635ebecc6fbfa3a4cbcf45b5e1af168bbc4295be))
15
+
1
16
  ## @anolilab/eslint-config [6.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.0...@anolilab/eslint-config@6.0.1) (2023-06-16)
2
17
 
3
18
 
package/README.md CHANGED
@@ -34,6 +34,7 @@ The goal is to reduce noise in code version control and promote use of the lates
34
34
  - Includes many useful ESLint plugins, like [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn), [import](https://github.com/benmosher/eslint-plugin-import) and [more](#plugins).
35
35
  - Automatically enables rules based on the [engines](https://docs.npmjs.com/files/package.json#engines) field in your package.json.
36
36
  - Specify indent and semicolon preferences easily without messing with the rule config.
37
+ - Disables rules that conflict with [Prettier](#let-prettier-handle-style-related-rules).
37
38
 
38
39
  ## Install
39
40
 
@@ -208,19 +209,19 @@ Example using package.json:
208
209
 
209
210
  Type: `boolean`
210
211
 
211
- Default: `false`
212
+ Default: `undefined`
212
213
 
213
214
  ### Let [Prettier](https://prettier.io/) handle style-related rules
214
215
 
215
216
  Prettier is a code formatting tool that offers fewer options but is more professional than the style-related rules in ESLint.
216
217
 
217
- Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore, so we completely removed all Prettier related rules in the v3 version, and use ESLint to check logical errors which it’s good at.
218
+ Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore,
219
+ so we completely removed all Prettier related rules, if `prettier` is found in your `package.json` and use ESLint to check logical errors which it’s good at.
218
220
 
219
- As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s .prettierrc.cjs. Of course, we also provide a recommended Prettier configuration for your reference.
221
+ As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s `.prettierrc.js`.
222
+ Of course, we also provide a recommended Prettier [configuration](../prettier-config/README.md) for your reference.
220
223
 
221
- `@anolilab/eslint-config` does not include all style-related rules, so there is no need to install `eslint-config-prettier`. Install `prettier` and if you use `VSCode` the related plugins.
222
-
223
- This the used [.prettierrc.cjs](../prettier-config/index.cjs) configuration by Anolilab Team only for reference.
224
+ `@anolilab/eslint-config` does disable all included style-related rules, so there is no need to install [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier).
224
225
 
225
226
  ## Using experimental features with JavaScript
226
227
 
@@ -0,0 +1,7 @@
1
+ import { pkg } from '@anolilab/package-json-utils';
2
+
3
+ var e={};pkg&&(e=pkg?.anolilab?.["eslint-config"]);var n=4;if(e?.indent){if(Number.isNaN(e.indent))throw new TypeError("Indent must be a number");n=Number(e.indent);}var o={rules:{"array-bracket-newline":"off","array-element-newline":"off","array-bracket-spacing":["error","never"],"block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{properties:"never",ignoreDestructuring:!1}],"capitalized-comments":["off","never",{line:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0},block:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0}}],"comma-dangle":["error",{arrays:"always-multiline",objects:"always-multiline",imports:"always-multiline",exports:"always-multiline",functions:"always-multiline"}],"comma-spacing":["error",{before:!1,after:!0}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"function-call-argument-newline":["error","consistent"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{includeCommonJSModuleExports:!1,considerPropertyDescriptor:!0}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",n,{SwitchCase:1,VariableDeclarator:1,outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ignoreComments:!1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{beforeColon:!1,afterColon:!0}],"keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"line-comment-position":["off",{position:"above",ignorePattern:"",applyDefaultPatterns:!0}],"linebreak-style":["error","unix"],"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"lines-around-comment":"off","lines-around-directive":["error",{before:"always",after:"always"}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreUrls:!0,ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{max:50,skipBlankLines:!0,skipComments:!0,IIFEs:!0}],"max-nested-callbacks":"off","max-params":["off",3],"max-statements":["off",10],"max-statements-per-line":["off",{max:1}],"multiline-comment-style":["off","starred-block"],"multiline-ternary":["off","never"],"new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"new-parens":"error","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":["error",{ignoreChainWithDepth:4}],"no-array-constructor":"error","no-bitwise":"error","no-continue":"error","no-inline-comments":"off","no-lonely-if":"error","no-mixed-operators":["error",{groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!1}],"no-mixed-spaces-and-tabs":"error","no-multi-assign":["error"],"no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"error","no-new-object":"error","no-plusplus":"error","no-restricted-syntax":["error",{selector:"ForInStatement",message:"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."},{selector:"ForOfStatement",message:"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."},{selector:"LabeledStatement",message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."},{selector:"WithStatement",message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize."}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{skipBlankLines:!1,ignoreComments:!1}],"no-underscore-dangle":["error",{allow:["__DEV__"],allowAfterThis:!1,allowAfterSuper:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-spacing":["error","always"],"object-curly-newline":["error",{ObjectExpression:{minProperties:4,multiline:!0,consistent:!0},ObjectPattern:{minProperties:4,multiline:!0,consistent:!0},ImportDeclaration:{minProperties:4,multiline:!0,consistent:!0},ExportDeclaration:{minProperties:4,multiline:!0,consistent:!0}}],"object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"one-var":["error","never"],"one-var-declaration-per-line":["error","always"],"operator-assignment":["error","always"],"operator-linebreak":["error","before",{overrides:{"=":"none"}}],"padded-blocks":["error",{blocks:"never",classes:"never",switches:"never"},{allowSingleLineBlocks:!0}],"padding-line-between-statements":"off","prefer-exponentiation-operator":"error","prefer-object-spread":"error","quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{before:!1,after:!0}],"semi-style":["error","last"],"sort-keys":["off","asc",{caseSensitive:!1,natural:!0}],"sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"spaced-comment":["error","always",{line:{exceptions:["-","+","*"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off"}},a=o;
4
+
5
+ export { a };
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-6ZQSXLLR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/style.ts"],"names":["pkg","anolilabEslintConfig","indent","config","style_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAIC,EAA6D,CAAC,EAE9DD,IAEAC,EAAuBD,GAAM,WAAc,eAAe,GAG9D,IAAIE,EAAiB,EAErB,GAAID,GAAuB,OAAW,CAClC,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjDC,EAAS,OAAOD,EAAqB,MAAS,EAGlD,IAAME,EAAwB,CAC1B,MAAO,CAGH,wBAAyB,MAIzB,wBAAyB,MAGzB,wBAAyB,CAAC,QAAS,OAAO,EAI1C,gBAAiB,CAAC,QAAS,QAAQ,EAGnC,cAAe,CAAC,QAAS,OAAQ,CAAE,gBAAiB,EAAK,CAAC,EAG1D,UAAW,CAAC,QAAS,CAAE,WAAY,QAAS,oBAAqB,EAAM,CAAC,EAIxE,uBAAwB,CACpB,MACA,QACA,CACI,KAAM,CACF,cAAe,KACf,qBAAsB,GACtB,0BAA2B,EAC/B,EACA,MAAO,CACH,cAAe,KACf,qBAAsB,GACtB,0BAA2B,EAC/B,CACJ,CACJ,EAGA,eAAgB,CACZ,QACA,CAEI,OAAQ,mBACR,QAAS,mBACT,QAAS,mBACT,QAAS,mBACT,UAAW,kBACf,CACJ,EAGA,gBAAiB,CAAC,QAAS,CAAE,OAAQ,GAAO,MAAO,EAAK,CAAC,EAGzD,cAAe,CACX,QACA,OACA,CACI,WAAY,CACR,gBAAiB,GACjB,aAAc,GACd,wBAAyB,GACzB,eAAgB,GAChB,oBAAqB,GACrB,mB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AC,EAGxE,gBAAiB,CACb,QACA,CACI,OAAQ,QACR,QAAS,QACT,SAAU,OACd,EACA,CACI,sBAAuB,EAC3B,CACJ,EAIA,kCAAmC,MAInC,iCAAkC,QAIlC,uBAAwB,QAIxB,cAAe,CAAC,QAAS,YAAa,CAAE,SAAU,GAAO,YAAa,GAAM,QAAS,EAAM,CAAC,EAG5F,OAAQ,CAAC,QAAS,SAAU,CAAE,YAAa,EAAK,CAAC,EAIjD,gBAAiB,MAGjB,KAAM,CAAC,QAAS,QAAQ,EAGxB,eAAgB,CAAC,QAAS,CAAE,OAAQ,GAAO,MAAO,EAAK,CAAC,EAIxD,aAAc,CAAC,QAAS,MAAM,EAG9B,YAAa,CAAC,MAAO,MAAO,CAAE,cAAe,GAAO,QAAS,EAAK,CAAC,EAGnE,YAAa,MAGb,sBAAuB,QAIvB,8BAA+B,CAC3B,QACA,CACI,UAAW,SACX,MAAO,QACP,WAAY,QAChB,CACJ,EAGA,kBAAmB,CAAC,QAAS,OAAO,EAGpC,kBAAmB,QAInB,kBAAmB,CACf,QACA,CACI,MAAO,GACP,SAAU,GACV,UAAW,CAAC,CAChB,CACJ,EAIA,iBAAkB,CACd,QACA,SACA,CACI,KAAM,CACF,WAAY,CAAC,IAAK,IAAK,GAAG,EAC1B,QAAS,CAAC,IAAK,IAAK,GAAG,CAC3B,EACA,MAAO,CACH,WAAY,CAAC,IAAK,GAAG,EACrB,QAAS,CAAC,IAAK,IAAK,IAAK,IAAI,EAC7B,SAAU,EACd,CACJ,CACJ,EAIA,uBAAwB,CAAC,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,KAClB,CACJ,EAEOE,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet anolilabEslintConfig: { [key: string]: false | undefined } = {};\n\nif (pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n anolilabEslintConfig = pkg?.[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nlet indent: number = 4;\n\nif (anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n indent = Number(anolilabEslintConfig[\"indent\"]);\n}\n\nconst config: Linter.Config = {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { properties: \"never\", ignoreDestructuring: false }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n line: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n block: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n // eslint-disable-next-line sonarjs/no-duplicate-string\n arrays: \"always-multiline\",\n objects: \"always-multiline\",\n imports: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { before: false, after: true }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n NewExpression: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n includeCommonJSModuleExports: false,\n considerPropertyDescriptor: true,\n },\n ],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n SwitchCase: 1,\n VariableDeclarator: 1,\n outerIIFEBody: 1,\n // MemberExpression: null,\n FunctionDeclaration: {\n parameters: 1,\n body: 1,\n },\n FunctionExpression: {\n parameters: 1,\n body: 1,\n },\n CallExpression: {\n arguments: 1,\n },\n ArrayExpression: 1,\n ObjectExpression: 1,\n ImportDeclaration: 1,\n flatTernaryExpressions: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n ignoreComments: false,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { beforeColon: false, afterColon: true }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n before: true,\n after: true,\n overrides: {\n return: { after: true },\n throw: { after: true },\n case: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n // TODO: enable?\n \"line-comment-position\": [\n \"off\",\n {\n position: \"above\",\n ignorePattern: \"\",\n applyDefaultPatterns: true,\n },\n ],\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n before: \"always\",\n after: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreUrls: true,\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n IIFEs: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n newIsCap: true,\n newIsCapExceptions: [],\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n allowSamePrecedence: false,\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n selector: \"ForInStatement\",\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n },\n {\n selector: \"ForOfStatement\",\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n },\n {\n selector: \"LabeledStatement\",\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n },\n {\n selector: \"WithStatement\",\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n skipBlankLines: false,\n ignoreComments: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\"],\n allowAfterThis: false,\n allowAfterSuper: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce line breaks between braces\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ObjectExpression: { minProperties: 4, multiline: true, consistent: true },\n ObjectPattern: { minProperties: 4, multiline: true, consistent: true },\n ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n },\n ],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, unnecessary: true, numbers: false }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { before: false, after: true }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": [\"off\", \"asc\", { caseSensitive: false, natural: true }],\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n named: \"never\",\n asyncArrow: \"always\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n words: true,\n nonwords: false,\n overrides: {},\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n block: {\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n balanced: true,\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n },\n};\n\nexport default config;\n"]}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var packageJsonUtils = require('@anolilab/package-json-utils');
4
+
5
+ var e={};packageJsonUtils.pkg&&(e=packageJsonUtils.pkg?.anolilab?.["eslint-config"]);var n=4;if(e?.indent){if(Number.isNaN(e.indent))throw new TypeError("Indent must be a number");n=Number(e.indent);}var o={rules:{"array-bracket-newline":"off","array-element-newline":"off","array-bracket-spacing":["error","never"],"block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{properties:"never",ignoreDestructuring:!1}],"capitalized-comments":["off","never",{line:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0},block:{ignorePattern:".*",ignoreInlineComments:!0,ignoreConsecutiveComments:!0}}],"comma-dangle":["error",{arrays:"always-multiline",objects:"always-multiline",imports:"always-multiline",exports:"always-multiline",functions:"always-multiline"}],"comma-spacing":["error",{before:!1,after:!0}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"function-call-argument-newline":["error","consistent"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{includeCommonJSModuleExports:!1,considerPropertyDescriptor:!0}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",n,{SwitchCase:1,VariableDeclarator:1,outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ignoreComments:!1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{beforeColon:!1,afterColon:!0}],"keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"line-comment-position":["off",{position:"above",ignorePattern:"",applyDefaultPatterns:!0}],"linebreak-style":["error","unix"],"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"lines-around-comment":"off","lines-around-directive":["error",{before:"always",after:"always"}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreUrls:!0,ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{max:50,skipBlankLines:!0,skipComments:!0,IIFEs:!0}],"max-nested-callbacks":"off","max-params":["off",3],"max-statements":["off",10],"max-statements-per-line":["off",{max:1}],"multiline-comment-style":["off","starred-block"],"multiline-ternary":["off","never"],"new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"new-parens":"error","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":["error",{ignoreChainWithDepth:4}],"no-array-constructor":"error","no-bitwise":"error","no-continue":"error","no-inline-comments":"off","no-lonely-if":"error","no-mixed-operators":["error",{groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!1}],"no-mixed-spaces-and-tabs":"error","no-multi-assign":["error"],"no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"error","no-new-object":"error","no-plusplus":"error","no-restricted-syntax":["error",{selector:"ForInStatement",message:"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."},{selector:"ForOfStatement",message:"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."},{selector:"LabeledStatement",message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."},{selector:"WithStatement",message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize."}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{skipBlankLines:!1,ignoreComments:!1}],"no-underscore-dangle":["error",{allow:["__DEV__"],allowAfterThis:!1,allowAfterSuper:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-spacing":["error","always"],"object-curly-newline":["error",{ObjectExpression:{minProperties:4,multiline:!0,consistent:!0},ObjectPattern:{minProperties:4,multiline:!0,consistent:!0},ImportDeclaration:{minProperties:4,multiline:!0,consistent:!0},ExportDeclaration:{minProperties:4,multiline:!0,consistent:!0}}],"object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"one-var":["error","never"],"one-var-declaration-per-line":["error","always"],"operator-assignment":["error","always"],"operator-linebreak":["error","before",{overrides:{"=":"none"}}],"padded-blocks":["error",{blocks:"never",classes:"never",switches:"never"},{allowSingleLineBlocks:!0}],"padding-line-between-statements":"off","prefer-exponentiation-operator":"error","prefer-object-spread":"error","quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{before:!1,after:!0}],"semi-style":["error","last"],"sort-keys":["off","asc",{caseSensitive:!1,natural:!0}],"sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"spaced-comment":["error","always",{line:{exceptions:["-","+","*"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off"}},a=o;
6
+
7
+ exports.a = a;
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-ROX6JHFJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/style.ts"],"names":["pkg","anolilabEslintConfig","indent","config","style_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAIC,EAA6D,CAAC,EAE9DD,IAEAC,EAAuBD,GAAM,WAAc,eAAe,GAG9D,IAAIE,EAAiB,EAErB,GAAID,GAAuB,OAAW,CAClC,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjDC,EAAS,OAAOD,EAAqB,MAAS,EAGlD,IAAME,EAAwB,CAC1B,MAAO,CAGH,wBAAyB,MAIzB,wBAAyB,MAGzB,wBAAyB,CAAC,QAAS,OAAO,EAI1C,gBAAiB,CAAC,QAAS,QAAQ,EAGnC,cAAe,CAAC,QAAS,OAAQ,CAAE,gBAAiB,EAAK,CAAC,EAG1D,UAAW,CAAC,QAAS,CAAE,WAAY,QAAS,oBAAqB,EAAM,CAAC,EAIxE,uBAAwB,CACpB,MACA,QACA,CACI,KAAM,CACF,cAAe,KACf,qBAAsB,GACtB,0BAA2B,EAC/B,EACA,MAAO,CACH,cAAe,KACf,qBAAsB,GACtB,0BAA2B,EAC/B,CACJ,CACJ,EAGA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,QAAS,CAAE,MAAO,GAAM,OAAQ,EAAM,CAAC,EAIhE,uBAAwB,CAAC,QAAS,OAAO,EAIzC,cAAe,CAAC,QAAS,OAAO,EAGhC,aAAc,KAClB,CACJ,EAEOE,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nlet anolilabEslintConfig: { [key: string]: false | undefined } = {};\n\nif (pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n anolilabEslintConfig = pkg?.[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nlet indent: number = 4;\n\nif (anolilabEslintConfig?.[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n indent = Number(anolilabEslintConfig[\"indent\"]);\n}\n\nconst config: Linter.Config = {\n rules: {\n // enforce line breaks after opening and before closing array brackets\n // https://eslint.org/docs/rules/array-bracket-newline\n \"array-bracket-newline\": \"off\",\n\n // enforce line breaks between array elements\n // https://eslint.org/docs/rules/array-element-newline\n \"array-element-newline\": \"off\",\n\n // enforce spacing inside array brackets\n \"array-bracket-spacing\": [\"error\", \"never\"],\n\n // enforce spacing inside single-line blocks\n // https://eslint.org/docs/rules/block-spacing\n \"block-spacing\": [\"error\", \"always\"],\n\n // enforce one true brace style\n \"brace-style\": [\"error\", \"1tbs\", { allowSingleLine: true }],\n\n // require camel case names\n camelcase: [\"error\", { properties: \"never\", ignoreDestructuring: false }],\n\n // enforce or disallow capitalization of the first letter of a comment\n // https://eslint.org/docs/rules/capitalized-comments\n \"capitalized-comments\": [\n \"off\",\n \"never\",\n {\n line: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n block: {\n ignorePattern: \".*\",\n ignoreInlineComments: true,\n ignoreConsecutiveComments: true,\n },\n },\n ],\n\n // require trailing commas in multiline object literals\n \"comma-dangle\": [\n \"error\",\n {\n // eslint-disable-next-line sonarjs/no-duplicate-string\n arrays: \"always-multiline\",\n objects: \"always-multiline\",\n imports: \"always-multiline\",\n exports: \"always-multiline\",\n functions: \"always-multiline\",\n },\n ],\n\n // enforce spacing before and after comma\n \"comma-spacing\": [\"error\", { before: false, after: true }],\n\n // enforce one true comma style\n \"comma-style\": [\n \"error\",\n \"last\",\n {\n exceptions: {\n ArrayExpression: false,\n ArrayPattern: false,\n ArrowFunctionExpression: false,\n CallExpression: false,\n FunctionDeclaration: false,\n FunctionExpression: false,\n ImportDeclaration: false,\n ObjectExpression: false,\n ObjectPattern: false,\n VariableDeclaration: false,\n NewExpression: false,\n },\n },\n ],\n\n // disallow padding inside computed properties\n \"computed-property-spacing\": [\"error\", \"never\"],\n\n // enforces consistent naming when capturing the current execution context\n \"consistent-this\": \"off\",\n\n // enforce that default parameters should come last\n \"default-param-last\": [\"error\"],\n\n // enforce newline at the end of file, with no multiple empty lines\n \"eol-last\": [\"error\", \"always\"],\n\n // https://eslint.org/docs/rules/function-call-argument-newline\n \"function-call-argument-newline\": [\"error\", \"consistent\"],\n\n // enforce spacing between functions and their invocations\n // https://eslint.org/docs/rules/func-call-spacing\n \"func-call-spacing\": [\"error\", \"never\"],\n\n // requires function names to match the name of the variable or property to which they are\n // assigned\n // https://eslint.org/docs/rules/func-name-matching\n \"func-name-matching\": [\n \"off\",\n \"always\",\n {\n includeCommonJSModuleExports: false,\n considerPropertyDescriptor: true,\n },\n ],\n\n // require function expressions to have a name\n // https://eslint.org/docs/rules/func-names\n \"func-names\": [\"error\", \"as-needed\"],\n\n // enforces use of function declarations or expressions\n // https://eslint.org/docs/rules/func-style\n \"func-style\": [\"error\", \"expression\"],\n\n // enforce consistent line breaks inside function parentheses\n // https://eslint.org/docs/rules/function-paren-newline\n \"function-paren-newline\": [\"error\", \"consistent\"],\n\n // Blacklist certain identifiers to prevent them being used\n // https://eslint.org/docs/rules/id-blacklist\n \"id-blacklist\": \"error\",\n\n // disallow specified identifiers\n // https://eslint.org/docs/rules/id-denylist\n \"id-denylist\": \"off\",\n\n // this option enforces minimum and maximum identifier lengths\n // (variable names, property names etc.)\n \"id-length\": \"off\",\n\n // require identifiers to match the provided regular expression\n \"id-match\": \"off\",\n\n // Enforce the location of arrow function bodies with implicit returns\n // https://eslint.org/docs/rules/implicit-arrow-linebreak\n \"implicit-arrow-linebreak\": [\"error\", \"beside\"],\n\n // this option sets a specific tab width for your code\n // https://eslint.org/docs/rules/indent\n indent: [\n \"error\",\n indent,\n {\n SwitchCase: 1,\n VariableDeclarator: 1,\n outerIIFEBody: 1,\n // MemberExpression: null,\n FunctionDeclaration: {\n parameters: 1,\n body: 1,\n },\n FunctionExpression: {\n parameters: 1,\n body: 1,\n },\n CallExpression: {\n arguments: 1,\n },\n ArrayExpression: 1,\n ObjectExpression: 1,\n ImportDeclaration: 1,\n flatTernaryExpressions: false,\n // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js\n ignoredNodes: [\n \"JSXElement\",\n \"JSXElement > *\",\n \"JSXAttribute\",\n \"JSXIdentifier\",\n \"JSXNamespacedName\",\n \"JSXMemberExpression\",\n \"JSXSpreadAttribute\",\n \"JSXExpressionContainer\",\n \"JSXOpeningElement\",\n \"JSXClosingElement\",\n \"JSXFragment\",\n \"JSXOpeningFragment\",\n \"JSXClosingFragment\",\n \"JSXText\",\n \"JSXEmptyExpression\",\n \"JSXSpreadChild\",\n ],\n ignoreComments: false,\n },\n ],\n\n // specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"off\", \"prefer-double\"],\n\n // enforces spacing between keys and values in object literal properties\n \"key-spacing\": [\"error\", { beforeColon: false, afterColon: true }],\n\n // require a space before & after certain keywords\n \"keyword-spacing\": [\n \"error\",\n {\n before: true,\n after: true,\n overrides: {\n return: { after: true },\n throw: { after: true },\n case: { after: true },\n },\n },\n ],\n\n // enforce position of line comments\n // https://eslint.org/docs/rules/line-comment-position\n // TODO: enable?\n \"line-comment-position\": [\n \"off\",\n {\n position: \"above\",\n ignorePattern: \"\",\n applyDefaultPatterns: true,\n },\n ],\n\n // disallow mixed 'LF' and 'CRLF' as linebreaks\n // https://eslint.org/docs/rules/linebreak-style\n \"linebreak-style\": [\"error\", \"unix\"],\n\n // require or disallow an empty line between class members\n // https://eslint.org/docs/rules/lines-between-class-members\n \"lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\n\n // enforces empty lines around comments\n \"lines-around-comment\": \"off\",\n\n // require or disallow newlines around directives\n // https://eslint.org/docs/rules/lines-around-directive\n \"lines-around-directive\": [\n \"error\",\n {\n before: \"always\",\n after: \"always\",\n },\n ],\n\n // specify the maximum depth that blocks can be nested\n \"max-depth\": [\"off\", 4],\n\n // specify the maximum length of a line in your program\n // https://eslint.org/docs/rules/max-len\n \"max-len\": [\n \"error\",\n 160,\n 2,\n {\n ignoreUrls: true,\n ignoreComments: false,\n ignoreRegExpLiterals: true,\n ignoreStrings: true,\n ignoreTemplateLiterals: true,\n },\n ],\n\n // specify the max number of lines in a file\n // https://eslint.org/docs/rules/max-lines\n \"max-lines\": [\n \"off\",\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true,\n },\n ],\n\n // enforce a maximum function length\n // https://eslint.org/docs/rules/max-lines-per-function\n \"max-lines-per-function\": [\n \"off\",\n {\n max: 50,\n skipBlankLines: true,\n skipComments: true,\n IIFEs: true,\n },\n ],\n\n // specify the maximum depth callbacks can be nested\n \"max-nested-callbacks\": \"off\",\n\n // limits the number of parameters that can be used in the function declaration.\n \"max-params\": [\"off\", 3],\n\n // specify the maximum number of statement allowed in a function\n \"max-statements\": [\"off\", 10],\n\n // restrict the number of statements per line\n // https://eslint.org/docs/rules/max-statements-per-line\n \"max-statements-per-line\": [\"off\", { max: 1 }],\n\n // enforce a particular style for multiline comments\n // https://eslint.org/docs/rules/multiline-comment-style\n \"multiline-comment-style\": [\"off\", \"starred-block\"],\n\n // require multiline ternary\n // https://eslint.org/docs/rules/multiline-ternary\n // TODO: enable?\n \"multiline-ternary\": [\"off\", \"never\"],\n\n // require a capital letter for constructors\n \"new-cap\": [\n \"error\",\n {\n newIsCap: true,\n newIsCapExceptions: [],\n capIsNew: false,\n capIsNewExceptions: [\"Immutable.Map\", \"Immutable.Set\", \"Immutable.List\"],\n },\n ],\n\n // disallow the omission of parentheses when invoking a constructor with no arguments\n // https://eslint.org/docs/rules/new-parens\n \"new-parens\": \"error\",\n\n // allow/disallow an empty newline after var statement\n \"newline-after-var\": \"off\",\n\n // https://eslint.org/docs/rules/newline-before-return\n \"newline-before-return\": \"off\",\n\n // enforces new line after each method call in the chain to make it\n // more readable and easy to maintain\n // https://eslint.org/docs/rules/newline-per-chained-call\n \"newline-per-chained-call\": [\"error\", { ignoreChainWithDepth: 4 }],\n\n // disallow use of the Array constructor\n \"no-array-constructor\": \"error\",\n\n // disallow use of bitwise operators\n // https://eslint.org/docs/rules/no-bitwise\n \"no-bitwise\": \"error\",\n\n // disallow use of the continue statement\n // https://eslint.org/docs/rules/no-continue\n \"no-continue\": \"error\",\n\n // disallow comments inline after code\n \"no-inline-comments\": \"off\",\n\n // disallow if as the only statement in an else block\n // https://eslint.org/docs/rules/no-lonely-if\n \"no-lonely-if\": \"error\",\n\n // disallow un-paren'd mixes of different operators\n // https://eslint.org/docs/rules/no-mixed-operators\n \"no-mixed-operators\": [\n \"error\",\n {\n // the list of arithmetic groups disallows mixing `%` and `**`\n // with other arithmetic operators.\n groups: [\n [\"%\", \"**\"],\n [\"%\", \"+\"],\n [\"%\", \"-\"],\n [\"%\", \"*\"],\n [\"%\", \"/\"],\n [\"/\", \"*\"],\n [\"&\", \"|\", \"<<\", \">>\", \">>>\"],\n [\"==\", \"!=\", \"===\", \"!==\"],\n [\"&&\", \"||\"],\n [\"in\", \"instanceof\"],\n ],\n allowSamePrecedence: false,\n },\n ],\n\n // disallow mixed spaces and tabs for indentation\n \"no-mixed-spaces-and-tabs\": \"error\",\n\n // disallow use of chained assignment expressions\n // https://eslint.org/docs/rules/no-multi-assign\n \"no-multi-assign\": [\"error\"],\n\n // disallow multiple empty lines, only one newline at the end, and no new lines at the beginning\n // https://eslint.org/docs/rules/no-multiple-empty-lines\n \"no-multiple-empty-lines\": [\"error\", { max: 1, maxBOF: 0, maxEOF: 0 }],\n\n // disallow negated conditions\n // https://eslint.org/docs/rules/no-negated-condition\n \"no-negated-condition\": \"off\",\n\n // disallow nested ternary expressions\n \"no-nested-ternary\": \"error\",\n\n // disallow use of the Object constructor\n \"no-new-object\": \"error\",\n\n // disallow use of unary operators, ++ and --\n // https://eslint.org/docs/rules/no-plusplus\n \"no-plusplus\": \"error\",\n\n // disallow certain syntax forms\n // https://eslint.org/docs/rules/no-restricted-syntax\n \"no-restricted-syntax\": [\n \"error\",\n {\n selector: \"ForInStatement\",\n message:\n \"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.\",\n },\n {\n selector: \"ForOfStatement\",\n message:\n \"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.\",\n },\n {\n selector: \"LabeledStatement\",\n message: \"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.\",\n },\n {\n selector: \"WithStatement\",\n message: \"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.\",\n },\n ],\n\n // disallow space between function identifier and application\n // deprecated in favor of func-call-spacing\n \"no-spaced-func\": \"off\",\n\n // disallow tab characters entirely\n \"no-tabs\": \"error\",\n\n // disallow the use of ternary operators\n \"no-ternary\": \"off\",\n\n // disallow trailing whitespace at the end of lines\n \"no-trailing-spaces\": [\n \"error\",\n {\n skipBlankLines: false,\n ignoreComments: false,\n },\n ],\n\n // disallow dangling underscores in identifiers\n // https://eslint.org/docs/rules/no-underscore-dangle\n \"no-underscore-dangle\": [\n \"error\",\n {\n allow: [\"__DEV__\"],\n allowAfterThis: false,\n allowAfterSuper: false,\n enforceInMethodNames: true,\n },\n ],\n\n // disallow the use of Boolean literals in conditional expressions\n // also, prefer `a || b` over `a ? a : b`\n // https://eslint.org/docs/rules/no-unneeded-ternary\n \"no-unneeded-ternary\": [\"error\", { defaultAssignment: false }],\n\n // disallow whitespace before properties\n // https://eslint.org/docs/rules/no-whitespace-before-property\n \"no-whitespace-before-property\": \"error\",\n\n // enforce the location of single-line statements\n // https://eslint.org/docs/rules/nonblock-statement-body-position\n \"nonblock-statement-body-position\": [\"error\", \"beside\", { overrides: {} }],\n\n // require padding inside curly braces\n \"object-curly-spacing\": [\"error\", \"always\"],\n\n // enforce line breaks between braces\n // https://eslint.org/docs/rules/object-curly-newline\n \"object-curly-newline\": [\n \"error\",\n {\n ObjectExpression: { minProperties: 4, multiline: true, consistent: true },\n ObjectPattern: { minProperties: 4, multiline: true, consistent: true },\n ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n ExportDeclaration: { minProperties: 4, multiline: true, consistent: true },\n },\n ],\n\n // enforce \"same line\" or \"multiple line\" on object properties.\n // https://eslint.org/docs/rules/object-property-newline\n \"object-property-newline\": [\n \"error\",\n {\n allowAllPropertiesOnSameLine: true,\n },\n ],\n\n // allow just one var statement per function\n \"one-var\": [\"error\", \"never\"],\n\n // require a newline around variable declaration\n // https://eslint.org/docs/rules/one-var-declaration-per-line\n \"one-var-declaration-per-line\": [\"error\", \"always\"],\n\n // require assignment operator shorthand where possible or prohibit it entirely\n // https://eslint.org/docs/rules/operator-assignment\n \"operator-assignment\": [\"error\", \"always\"],\n\n // Requires operator at the beginning of the line in multiline statements\n // https://eslint.org/docs/rules/operator-linebreak\n \"operator-linebreak\": [\"error\", \"before\", { overrides: { \"=\": \"none\" } }],\n\n // disallow padding within blocks\n \"padded-blocks\": [\n \"error\",\n {\n blocks: \"never\",\n classes: \"never\",\n switches: \"never\",\n },\n {\n allowSingleLineBlocks: true,\n },\n ],\n\n // Require or disallow padding lines between statements\n // https://eslint.org/docs/rules/padding-line-between-statements\n \"padding-line-between-statements\": \"off\",\n\n // Disallow the use of Math.pow in favor of the ** operator\n // https://eslint.org/docs/rules/prefer-exponentiation-operator\n \"prefer-exponentiation-operator\": \"error\",\n\n // Prefer use of an object spread over Object.assign\n // https://eslint.org/docs/rules/prefer-object-spread\n \"prefer-object-spread\": \"error\",\n\n // require quotes around object literal property names\n // https://eslint.org/docs/rules/quote-props.html\n \"quote-props\": [\"error\", \"as-needed\", { keywords: false, unnecessary: true, numbers: false }],\n\n // specify whether double or single quotes should be used\n quotes: [\"error\", \"double\", { avoidEscape: true }],\n\n // do not require jsdoc\n // https://eslint.org/docs/rules/require-jsdoc\n \"require-jsdoc\": \"off\",\n\n // require or disallow use of semicolons instead of ASI\n semi: [\"error\", \"always\"],\n\n // enforce spacing before and after semicolons\n \"semi-spacing\": [\"error\", { before: false, after: true }],\n\n // Enforce location of semicolons\n // https://eslint.org/docs/rules/semi-style\n \"semi-style\": [\"error\", \"last\"],\n\n // requires object keys to be sorted\n \"sort-keys\": [\"off\", \"asc\", { caseSensitive: false, natural: true }],\n\n // sort variables within the same declaration block\n \"sort-vars\": \"off\",\n\n // require or disallow space before blocks\n \"space-before-blocks\": \"error\",\n\n // require or disallow space before function opening parenthesis\n // https://eslint.org/docs/rules/space-before-function-paren\n \"space-before-function-paren\": [\n \"error\",\n {\n anonymous: \"always\",\n named: \"never\",\n asyncArrow: \"always\",\n },\n ],\n\n // require or disallow spaces inside parentheses\n \"space-in-parens\": [\"error\", \"never\"],\n\n // require spaces around operators\n \"space-infix-ops\": \"error\",\n\n // Require or disallow spaces before/after unary operators\n // https://eslint.org/docs/rules/space-unary-ops\n \"space-unary-ops\": [\n \"error\",\n {\n words: true,\n nonwords: false,\n overrides: {},\n },\n ],\n\n // require or disallow a space immediately following the // or /* in a comment\n // https://eslint.org/docs/rules/spaced-comment\n \"spaced-comment\": [\n \"error\",\n \"always\",\n {\n line: {\n exceptions: [\"-\", \"+\", \"*\"],\n markers: [\"=\", \"!\", \"/\"], // space here to support sprockets directives, slash for TS /// comments\n },\n block: {\n exceptions: [\"-\", \"+\"],\n markers: [\"=\", \"!\", \":\", \"::\"], // space here to support sprockets directives and flow comment types\n balanced: true,\n },\n },\n ],\n\n // Enforce spacing around colons of switch statements\n // https://eslint.org/docs/rules/switch-colon-spacing\n \"switch-colon-spacing\": [\"error\", { after: true, before: false }],\n\n // Require or disallow spacing between template tags and their literals\n // https://eslint.org/docs/rules/template-tag-spacing\n \"template-tag-spacing\": [\"error\", \"never\"],\n\n // require or disallow the Unicode Byte Order Mark\n // https://eslint.org/docs/rules/unicode-bom\n \"unicode-bom\": [\"error\", \"never\"],\n\n // require regex literals to be wrapped in parentheses\n \"wrap-regex\": \"off\",\n },\n};\n\nexport default config;\n"]}
@@ -1,12 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkNO36P4BR_js = require('../../chunk-NO36P4BR.js');
3
+ var chunkROX6JHFJ_js = require('../../chunk-ROX6JHFJ.js');
4
+ var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
4
5
  var chunk6E2RGUNG_js = require('../../chunk-6E2RGUNG.js');
5
6
  var chunkSV64EPVP_js = require('../../chunk-SV64EPVP.js');
6
7
  var chunkARKJLBXP_js = require('../../chunk-ARKJLBXP.js');
8
+ var packageJsonUtils = require('@anolilab/package-json-utils');
7
9
 
8
- var n=chunk6E2RGUNG_js.a.rules,l=chunkSV64EPVP_js.a.rules,e=chunkNO36P4BR_js.a.rules,r=chunkARKJLBXP_js.a("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":n["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":n["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":l["valid-typeof"]}}),b=r;
10
+ var t=chunk6E2RGUNG_js.a.rules,f=chunkSV64EPVP_js.a.rules,e=chunkROX6JHFJ_js.a.rules,a={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigBabelPrettier||(global.hasAnolilabEsLintConfigBabelPrettier=!0,chunkYMWD4DNM_js.b(`
11
+ Found prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier`)),a={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var c=chunkARKJLBXP_js.a("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":t["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":t["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":f["valid-typeof"],...a}}),y=c;
9
12
 
10
- module.exports = b;
13
+ module.exports = y;
11
14
  //# sourceMappingURL=out.js.map
12
15
  //# sourceMappingURL=babel.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","create_config_default","babel_default"],"mappings":"2KAOA,IAAMA,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAEzBC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdH,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,CACpD,CACJ,CAAC,EAEMM,EAAQF","sourcesContent":["import 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\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","consoleLog","config","create_config_default","babel_default"],"mappings":"4NAAA,OAAS,aAAAA,MAAiB,+BAS1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAGI,OAAO,uCACR,OAAO,qCAAuC,GAE9CQ,EAAW;AAAA,8GAAiH,GAGhID,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAME,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdL,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport { consoleLog } from \"../../utils/loggers\";\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\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigBabelPrettier) {\n global.hasAnolilabEsLintConfigBabelPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier\");\n }\n\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
@@ -1,10 +1,13 @@
1
- import { a as a$2 } from '../../chunk-F6JHPR4L.mjs';
2
- import { a } from '../../chunk-WDMF75TJ.mjs';
3
- import { a as a$1 } from '../../chunk-DJDHW6UR.mjs';
4
- import { a as a$3 } from '../../chunk-3XUVOUJE.mjs';
1
+ import { a as a$3 } from '../../chunk-6ZQSXLLR.mjs';
2
+ import { b } from '../../chunk-G7JIJH44.mjs';
3
+ import { a as a$1 } from '../../chunk-WDMF75TJ.mjs';
4
+ import { a as a$2 } from '../../chunk-DJDHW6UR.mjs';
5
+ import { a as a$4 } from '../../chunk-3XUVOUJE.mjs';
6
+ import { hasAnyDep } from '@anolilab/package-json-utils';
5
7
 
6
- var n=a.rules,l=a$1.rules,e=a$2.rules,r=a$3("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":n["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":n["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":l["valid-typeof"]}}),b=r;
8
+ var t=a$1.rules,f=a$2.rules,e=a$3.rules,a={};hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigBabelPrettier||(global.hasAnolilabEsLintConfigBabelPrettier=!0,b(`
9
+ Found prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier`)),a={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var c=a$4("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":t["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":t["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":f["valid-typeof"],...a}}),y=c;
7
10
 
8
- export { b as default };
11
+ export { y as default };
9
12
  //# sourceMappingURL=out.js.map
10
13
  //# sourceMappingURL=babel.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","create_config_default","babel_default"],"mappings":"+KAOA,IAAMA,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAEzBC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdH,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,CACpD,CACJ,CAAC,EAEMM,EAAQF","sourcesContent":["import 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\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n },\n});\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","consoleLog","config","create_config_default","babel_default"],"mappings":"iOAAA,OAAS,aAAAA,MAAiB,+BAS1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAGI,OAAO,uCACR,OAAO,qCAAuC,GAE9CQ,EAAW;AAAA,8GAAiH,GAGhID,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAME,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdL,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMI,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport { consoleLog } from \"../../utils/loggers\";\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\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigBabelPrettier) {\n global.hasAnolilabEsLintConfigBabelPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling some rules to fix wrong behavior of the rule with eslint and prettier\");\n }\n\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
@@ -3,8 +3,8 @@
3
3
  var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
 
6
- var e=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];packageJsonUtils.hasTypescript&&(packageJsonUtils.hasAnyDep(["eslint-plugin-tsdoc"])?chunkYMWD4DNM_js.b(`
7
- Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):e.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:e},d=n;
6
+ var s=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];packageJsonUtils.hasTypescript&&(packageJsonUtils.hasAnyDep(["eslint-plugin-tsdoc"],{peerDeps:!1})?chunkYMWD4DNM_js.b(`
7
+ Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):s.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:s},d=n;
8
8
 
9
9
  module.exports = d;
10
10
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"4CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IACID,EAAU,CAAC,qBAAqB,CAAC,EACjCG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (hasAnyDep([\"eslint-plugin-tsdoc\"])) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"4CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IAEID,EAAU,CAAC,qBAAqB,EAAG,CAC/B,SAAU,EACd,CAAC,EAEDG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (\n hasAnyDep([\"eslint-plugin-tsdoc\"], {\n peerDeps: false,\n })\n ) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
@@ -1,8 +1,8 @@
1
1
  import { b } from '../../chunk-G7JIJH44.mjs';
2
2
  import { hasTypescript, hasAnyDep } from '@anolilab/package-json-utils';
3
3
 
4
- var e=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];hasTypescript&&(hasAnyDep(["eslint-plugin-tsdoc"])?b(`
5
- Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):e.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:e},d=n;
4
+ var s=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];hasTypescript&&(hasAnyDep(["eslint-plugin-tsdoc"],{peerDeps:!1})?b(`
5
+ Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):s.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:s},d=n;
6
6
 
7
7
  export { d as default };
8
8
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"6CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IACID,EAAU,CAAC,qBAAqB,CAAC,EACjCG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (hasAnyDep([\"eslint-plugin-tsdoc\"])) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"6CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IAEID,EAAU,CAAC,qBAAqB,EAAG,CAC/B,SAAU,EACd,CAAC,EAEDG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (\n hasAnyDep([\"eslint-plugin-tsdoc\"], {\n peerDeps: false,\n })\n ) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
@@ -3,7 +3,7 @@
3
3
  var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
4
4
  var packageJsonUtils = require('@anolilab/package-json-utils');
5
5
 
6
- var n=[];packageJsonUtils.hasAnyDep(["prettier"])&&(global.hasAnolilabEsLintConfigJsonCPrettier||(global.hasAnolilabEsLintConfigJsonCPrettier=!0,chunkYMWD4DNM_js.b(`
6
+ var n=[];packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigJsonCPrettier||(global.hasAnolilabEsLintConfigJsonCPrettier=!0,chunkYMWD4DNM_js.b(`
7
7
  Found prettier as dependency, disabling the jsonc prettier rules.`)),n.push("plugin:jsonc/prettier"));var i={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:n,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},r=i;
8
8
 
9
9
  module.exports = r;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","consoleLog","config","jsonc_default"],"mappings":"4CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAA4B,CAAC,EAE/BD,EAAU,CAAC,UAAU,CAAC,IAEjB,OAAO,uCACR,OAAO,qCAAuC,GAE9CE,EAAW;AAAA,kEAAqE,GAGpFD,EAAgB,KAAK,uBAAuB,GAGhD,IAAME,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASF,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (hasAnyDep([\"prettier\"])) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigJsonCPrettier) {\n global.hasAnolilabEsLintConfigJsonCPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling the jsonc prettier rules.\");\n }\n\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","consoleLog","config","jsonc_default"],"mappings":"4CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAA4B,CAAC,EAG/BD,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAGI,OAAO,uCACR,OAAO,qCAAuC,GAE9CE,EAAW;AAAA,kEAAqE,GAGpFD,EAAgB,KAAK,uBAAuB,GAGhD,IAAME,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASF,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigJsonCPrettier) {\n global.hasAnolilabEsLintConfigJsonCPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling the jsonc prettier rules.\");\n }\n\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1,7 +1,7 @@
1
1
  import { b } from '../../chunk-G7JIJH44.mjs';
2
2
  import { hasAnyDep } from '@anolilab/package-json-utils';
3
3
 
4
- var n=[];hasAnyDep(["prettier"])&&(global.hasAnolilabEsLintConfigJsonCPrettier||(global.hasAnolilabEsLintConfigJsonCPrettier=!0,b(`
4
+ var n=[];hasAnyDep(["prettier"],{peerDeps:!1})&&(global.hasAnolilabEsLintConfigJsonCPrettier||(global.hasAnolilabEsLintConfigJsonCPrettier=!0,b(`
5
5
  Found prettier as dependency, disabling the jsonc prettier rules.`)),n.push("plugin:jsonc/prettier"));var i={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:n,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},r=i;
6
6
 
7
7
  export { r as default };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","consoleLog","config","jsonc_default"],"mappings":"6CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAA4B,CAAC,EAE/BD,EAAU,CAAC,UAAU,CAAC,IAEjB,OAAO,uCACR,OAAO,qCAAuC,GAE9CE,EAAW;AAAA,kEAAqE,GAGpFD,EAAgB,KAAK,uBAAuB,GAGhD,IAAME,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASF,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (hasAnyDep([\"prettier\"])) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigJsonCPrettier) {\n global.hasAnolilabEsLintConfigJsonCPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling the jsonc prettier rules.\");\n }\n\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","consoleLog","config","jsonc_default"],"mappings":"6CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAA4B,CAAC,EAG/BD,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAGI,OAAO,uCACR,OAAO,qCAAuC,GAE9CE,EAAW;AAAA,kEAAqE,GAGpFD,EAAgB,KAAK,uBAAuB,GAGhD,IAAME,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASF,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigJsonCPrettier) {\n global.hasAnolilabEsLintConfigJsonCPrettier = true;\n\n consoleLog(\"\\nFound prettier as dependency, disabling the jsonc prettier rules.\");\n }\n\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAC1B,QACA,QACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\n \"error\",\n \"always\",\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAAC,QAAS,QAAQ,CACpD,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\"error\", \"always\"],\n },\n },\n ],\n};\n\nexport default config;\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAC1B,QACA,QACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\n \"error\",\n \"always\",\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
1
+ {"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAAC,QAAS,QAAQ,CACpD,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\"error\", \"always\"],\n },\n },\n ],\n};\n\nexport default config;\n"]}