@anolilab/eslint-config 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/chunk-57IVUTVM.js +9 -0
- package/dist/chunk-57IVUTVM.js.map +1 -0
- package/dist/{chunk-ZEBBNF2R.js → chunk-F5CTGWCD.js} +3 -3
- package/dist/{chunk-PTQ3FFI5.js → chunk-X3W6J3PZ.js} +2 -2
- package/dist/{chunk-PTQ3FFI5.js.map → chunk-X3W6J3PZ.js.map} +1 -1
- package/dist/{chunk-H7VQP3ZD.js → chunk-YRRY5AGG.js} +1 -1
- package/dist/chunk-YRRY5AGG.js.map +1 -0
- package/dist/config/plugins/antfu.js +2 -2
- package/dist/config/plugins/array-func.js +2 -2
- package/dist/config/plugins/babel.js +5 -5
- package/dist/config/plugins/es.js +2 -2
- package/dist/config/plugins/etc.js +2 -2
- package/dist/config/plugins/html.js +3 -3
- package/dist/config/plugins/jsonc.js +2 -2
- package/dist/config/plugins/jsonc.js.map +1 -1
- package/dist/config/plugins/node.js +1 -1
- package/dist/config/plugins/node.js.map +1 -1
- package/dist/config/plugins/perfectionist.js +2 -2
- package/dist/config/plugins/react-hooks.js +2 -2
- package/dist/config/plugins/react-redux.js +2 -2
- package/dist/config/plugins/react-usememo.js +2 -2
- package/dist/config/plugins/react.js +6 -6
- package/dist/config/plugins/react.js.map +1 -1
- package/dist/config/plugins/regexp.js +2 -2
- package/dist/config/plugins/sonarjs.js +2 -2
- package/dist/config/plugins/tailwindcss.js +2 -2
- package/dist/config/plugins/tanstack-query.js +2 -2
- package/dist/config/plugins/testing-library.js +3 -3
- package/dist/config/plugins/testing-library.js.map +1 -1
- package/dist/config/plugins/tsdoc.js +2 -2
- package/dist/config/plugins/typescript.js +4 -4
- package/dist/config/plugins/typescript.js.map +1 -1
- package/dist/config/plugins/unicorn.js +3 -3
- package/dist/config/plugins/yml.js +3 -3
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +2 -2
- package/dist/config/plugins/you-dont-need-momentjs.js +2 -2
- package/dist/config/plugins/zod.js +2 -2
- package/dist/config/style.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +6 -6
- package/dist/postinstall.js.map +1 -1
- package/dist/typescript-type-checking.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-H7VQP3ZD.js.map +0 -1
- package/dist/chunk-PW4WCSOE.js +0 -9
- package/dist/chunk-PW4WCSOE.js.map +0 -1
- /package/dist/{chunk-ZEBBNF2R.js.map → chunk-F5CTGWCD.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @anolilab/eslint-config [9.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@9.0.0...@anolilab/eslint-config@9.0.1) (2023-07-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Improve clarity of code and fix potential null exceptions ([8c468f4](https://github.com/anolilab/javascript-style-guide/commit/8c468f428bf3feb9425b90861264b873a590ba45))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Dependencies
|
|
11
|
+
|
|
12
|
+
* **@anolilab/package-json-utils:** upgraded to 2.0.1
|
|
13
|
+
* **@anolilab/semantic-release-preset:** upgraded to 5.0.1
|
|
14
|
+
|
|
1
15
|
## @anolilab/eslint-config [9.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@8.0.0...@anolilab/eslint-config@9.0.0) (2023-07-04)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkX3W6J3PZ_js = require('./chunk-X3W6J3PZ.js');
|
|
4
|
+
|
|
5
|
+
if(global.anolilabEslintIndent===void 0&&chunkX3W6J3PZ_js.a.indent){if(Number.isNaN(chunkX3W6J3PZ_js.a.indent))throw new TypeError("Indent must be a number");global.anolilabEslintIndent=Number(chunkX3W6J3PZ_js.a.indent);}else global.anolilabEslintIndent=4;var l=global.anolilabEslintIndent,i=l;
|
|
6
|
+
|
|
7
|
+
exports.a = i;
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-57IVUTVM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/indent.ts"],"names":["eslint_config_default","indent","indent_default"],"mappings":"wCAEA,GAAI,OAAO,uBAAyB,QAAaA,EAAqB,OAAW,CAC7E,GAAI,OAAO,MAAMA,EAAqB,MAAS,EAC3C,MAAM,IAAI,UAAU,yBAAyB,EAGjD,OAAO,qBAAuB,OAAOA,EAAqB,MAAS,CACvE,MACI,OAAO,qBAAuB,EAGlC,IAAMC,EAAS,OAAO,qBAEfC,EAAQD","sourcesContent":["import anolilabEslintConfig from \"./eslint-config\";\n\nif (global.anolilabEslintIndent === undefined && anolilabEslintConfig[\"indent\"]) {\n if (Number.isNaN(anolilabEslintConfig[\"indent\"])) {\n throw new TypeError(\"Indent must be a number\");\n }\n\n global.anolilabEslintIndent = Number(anolilabEslintConfig[\"indent\"]);\n} else {\n global.anolilabEslintIndent = 4;\n}\n\nconst indent = global.anolilabEslintIndent;\n\nexport default indent;\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk57IVUTVM_js = require('./chunk-57IVUTVM.js');
|
|
4
4
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
5
|
|
|
6
|
-
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);var r={};global.hasAnolilabEsLintConfigPrettier&&(r={"array-bracket-newline":"off","array-bracket-spacing":"off","array-element-newline":"off","arrow-parens":"off","arrow-spacing":"off","block-spacing":"off","brace-style":"off","comma-dangle":"off","comma-spacing":"off","comma-style":"off","computed-property-spacing":"off",curly:0,"dot-location":"off","eol-last":"off","func-call-spacing":"off","function-call-argument-newline":"off","function-paren-newline":"off","generator-star-spacing":"off","implicit-arrow-linebreak":"off",indent:"off","jsx-quotes":"off","key-spacing":"off","keyword-spacing":"off","linebreak-style":"off","lines-around-comment":0,"max-len":0,"multiline-ternary":"off","new-parens":"off","newline-per-chained-call":"off","no-confusing-arrow":0,"no-extra-parens":"off","no-extra-semi":"off","no-floating-decimal":"off","no-mixed-operators":0,"no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":0,"no-trailing-spaces":"off","no-unexpected-multiline":0,"no-whitespace-before-property":"off","nonblock-statement-body-position":"off","object-curly-newline":"off","object-curly-spacing":"off","object-property-newline":"off","one-var-declaration-per-line":"off","operator-linebreak":"off","padded-blocks":"off","quote-props":"off",quotes:0,"rest-spread-spacing":"off",semi:"off","semi-spacing":"off","semi-style":"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off","switch-colon-spacing":"off","template-curly-spacing":"off","template-tag-spacing":"off","unicode-bom":"off","wrap-iife":"off","wrap-regex":"off","yield-star-spacing":"off"});var a={rules:{"array-bracket-newline":"off","array-bracket-spacing":["error","never"],"array-element-newline":"off","block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{ignoreDestructuring:!1,properties:"never"}],"capitalized-comments":["off","never",{block:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"},line:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"}}],"comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"always-multiline",imports:"always-multiline",objects:"always-multiline"}],"comma-spacing":["error",{after:!0,before:!1}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,NewExpression:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{considerPropertyDescriptor:!0,includeCommonJSModuleExports:!1}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-call-argument-newline":["error","consistent"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",
|
|
6
|
+
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);var r={};global.hasAnolilabEsLintConfigPrettier&&(r={"array-bracket-newline":"off","array-bracket-spacing":"off","array-element-newline":"off","arrow-parens":"off","arrow-spacing":"off","block-spacing":"off","brace-style":"off","comma-dangle":"off","comma-spacing":"off","comma-style":"off","computed-property-spacing":"off",curly:0,"dot-location":"off","eol-last":"off","func-call-spacing":"off","function-call-argument-newline":"off","function-paren-newline":"off","generator-star-spacing":"off","implicit-arrow-linebreak":"off",indent:"off","jsx-quotes":"off","key-spacing":"off","keyword-spacing":"off","linebreak-style":"off","lines-around-comment":0,"max-len":0,"multiline-ternary":"off","new-parens":"off","newline-per-chained-call":"off","no-confusing-arrow":0,"no-extra-parens":"off","no-extra-semi":"off","no-floating-decimal":"off","no-mixed-operators":0,"no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":0,"no-trailing-spaces":"off","no-unexpected-multiline":0,"no-whitespace-before-property":"off","nonblock-statement-body-position":"off","object-curly-newline":"off","object-curly-spacing":"off","object-property-newline":"off","one-var-declaration-per-line":"off","operator-linebreak":"off","padded-blocks":"off","quote-props":"off",quotes:0,"rest-spread-spacing":"off",semi:"off","semi-spacing":"off","semi-style":"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off","switch-colon-spacing":"off","template-curly-spacing":"off","template-tag-spacing":"off","unicode-bom":"off","wrap-iife":"off","wrap-regex":"off","yield-star-spacing":"off"});var a={rules:{"array-bracket-newline":"off","array-bracket-spacing":["error","never"],"array-element-newline":"off","block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["error",{ignoreDestructuring:!1,properties:"never"}],"capitalized-comments":["off","never",{block:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"},line:{ignoreConsecutiveComments:!0,ignoreInlineComments:!0,ignorePattern:".*"}}],"comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"always-multiline",imports:"always-multiline",objects:"always-multiline"}],"comma-spacing":["error",{after:!0,before:!1}],"comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,NewExpression:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1}}],"computed-property-spacing":["error","never"],"consistent-this":"off","default-param-last":["error"],"eol-last":["error","always"],"func-call-spacing":["error","never"],"func-name-matching":["off","always",{considerPropertyDescriptor:!0,includeCommonJSModuleExports:!1}],"func-names":["error","as-needed"],"func-style":["error","expression"],"function-call-argument-newline":["error","consistent"],"function-paren-newline":["error","consistent"],"id-blacklist":"error","id-denylist":"off","id-length":"off","id-match":"off","implicit-arrow-linebreak":["error","beside"],indent:["error",chunk57IVUTVM_js.a,{ArrayExpression:1,CallExpression:{arguments:1},FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ImportDeclaration:1,ObjectExpression:1,SwitchCase:1,VariableDeclarator:1,flatTernaryExpressions:!1,ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],outerIIFEBody:1}],"jsx-quotes":["off","prefer-double"],"key-spacing":["error",{afterColon:!0,beforeColon:!1}],"keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"line-comment-position":["off",{applyDefaultPatterns:!0,ignorePattern:"",position:"above"}],"linebreak-style":["error","unix"],"lines-around-comment":"off","lines-around-directive":["error",{after:"always",before:"always"}],"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"max-depth":["off",4],"max-len":["error",160,2,{ignoreComments:!1,ignoreRegExpLiterals:!0,ignoreStrings:!0,ignoreTemplateLiterals:!0,ignoreUrls:!0}],"max-lines":["off",{max:300,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["off",{IIFEs:!0,max:50,skipBlankLines:!0,skipComments:!0}],"max-nested-callbacks":"off","max-params":["off",3],"max-statements":["off",10],"max-statements-per-line":["off",{max:1}],"multiline-comment-style":["off","starred-block"],"multiline-ternary":["off","never"],"new-cap":["error",{capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"],newIsCap:!0,newIsCapExceptions:[]}],"new-parens":"error","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":["error",{ignoreChainWithDepth:4}],"no-array-constructor":"error","no-bitwise":"error","no-continue":"error","no-inline-comments":"off","no-lonely-if":"error","no-mixed-operators":["error",{allowSamePrecedence:!1,groups:[["%","**"],["%","+"],["%","-"],["%","*"],["%","/"],["/","*"],["&","|","<<",">>",">>>"],["==","!=","===","!=="],["&&","||"],["in","instanceof"]]}],"no-mixed-spaces-and-tabs":"error","no-multi-assign":["error"],"no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","no-nested-ternary":"error","no-new-object":"error","no-plusplus":"error","no-restricted-syntax":["error",{message:"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",selector:"ForInStatement"},{message:"iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.",selector:"ForOfStatement"},{message:"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",selector:"LabeledStatement"},{message:"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",selector:"WithStatement"},{message:"`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.",selector:"CallExpression[callee.name=useMemo][arguments.1.type=ArrayExpression][arguments.1.elements.length=0]"},{message:"Use `.key` instead of `.keyCode`",selector:"MemberExpression > .property[type=Identifier][name=keyCode]"}],"no-spaced-func":"off","no-tabs":"error","no-ternary":"off","no-trailing-spaces":["error",{ignoreComments:!1,skipBlankLines:!1}],"no-underscore-dangle":["error",{allow:["__DEV__","__STORYBOOK_CLIENT_API__","__STORYBOOK_ADDONS_CHANNEL__","__STORYBOOK_STORY_STORE__"],allowAfterSuper:!1,allowAfterThis:!1,enforceInMethodNames:!0}],"no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":["error","beside",{overrides:{}}],"object-curly-newline":["error",{ExportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ImportDeclaration:{consistent:!0,minProperties:4,multiline:!0},ObjectExpression:{consistent:!0,minProperties:4,multiline:!0},ObjectPattern:{consistent:!0,minProperties:4,multiline:!0}}],"object-curly-spacing":["error","always"],"object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"one-var":["error","never"],"one-var-declaration-per-line":["error","always"],"operator-assignment":["error","always"],"operator-linebreak":["error","before",{overrides:{"=":"none"}}],"padded-blocks":["error",{blocks:"never",classes:"never",switches:"never"},{allowSingleLineBlocks:!0}],"padding-line-between-statements":"off","prefer-exponentiation-operator":"error","prefer-object-spread":"error","quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],quotes:["error","double",{avoidEscape:!0}],"require-jsdoc":"off",semi:["error","always"],"semi-spacing":["error",{after:!0,before:!1}],"semi-style":["error","last"],"sort-keys":"off","sort-vars":"off","space-before-blocks":"error","space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"space-in-parens":["error","never"],"space-infix-ops":"error","space-unary-ops":["error",{nonwords:!1,overrides:{},words:!0}],"spaced-comment":["error","always",{block:{balanced:!0,exceptions:["-","+"],markers:["=","!",":","::"]},line:{exceptions:["-","+","*"],markers:["=","!","/"]}}],"switch-colon-spacing":["error",{after:!0,before:!1}],"template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"wrap-regex":"off",...r}},i=a;
|
|
7
7
|
|
|
8
8
|
exports.a = i;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
10
|
+
//# sourceMappingURL=chunk-F5CTGWCD.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
4
4
|
|
|
5
|
-
!global.anolilabEslintPackageJsonConfig&&packageJsonUtils.pkg&&(global.anolilabEslintPackageJsonConfig=packageJsonUtils.pkg
|
|
5
|
+
!global.anolilabEslintPackageJsonConfig&&packageJsonUtils.pkg&&(global.anolilabEslintPackageJsonConfig=packageJsonUtils.pkg.anolilab?.["eslint-config"]);var o=global.anolilabEslintPackageJsonConfig??{},a=o;
|
|
6
6
|
|
|
7
7
|
exports.a = a;
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-X3W6J3PZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/eslint-config.ts"],"names":["pkg","config","eslint_config_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAEhB,CAAC,OAAO,iCAAmCA,IAE3C,OAAO,gCAAkCA,
|
|
1
|
+
{"version":3,"sources":["../src/utils/eslint-config.ts"],"names":["pkg","config","eslint_config_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAEhB,CAAC,OAAO,iCAAmCA,IAE3C,OAAO,gCAAkCA,EAAI,WAAc,eAAe,GAG9E,IAAMC,EAAiD,OAAO,iCAAmC,CAAC,EAE3FC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\n\nif (!global.anolilabEslintPackageJsonConfig && pkg) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n global.anolilabEslintPackageJsonConfig = pkg[\"anolilab\"]?.[\"eslint-config\"];\n}\n\nconst config: { [key: string]: boolean | undefined } = global.anolilabEslintPackageJsonConfig ?? {};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/create-config.ts"],"names":["getType","type","createConfig","config","environment","createConfigs","rules"],"mappings":"AAIA,IAAMA,EAAWC,GAAmB,CAChC,OAAQA,EAAM,CACV,IAAK,aAED,MAAO,CAAC,OAAQ,QAAS,QAAS,QAAS,OAAO,EAEtD,IAAK,cACD,MAAO,CAAC,QAAS,QAAS,UAAU,EAExC,IAAK,YACD,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAQ,QAAS,QAAS,OAAO,EAEvE,IAAK,aACD,MAAO,CAAC,OAAQ,QAAS,OAAO,EAEpC,IAAK,MACD,MAAO,CAAC,OAAQ,QAAS,QAAS,QAAS,OAAQ,QAAS,QAAS,QAAS,OAAO,EAEzF,IAAK,OACD,MAAO,CAEH,wBACA,wBACA,wBAGA,6BACA,4BACJ,EAEJ,IAAK,MACD,MAAO,CACH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,sBACJ,EAEJ,IAAK,SACD,MAAO,CAAC,oCAAqC,qCAAqC,EAEtF,IAAK,QACD,MAAO,CAEH,UACA,cACA,iBACA,eACA,eACA,eACA,kBACA,mBACA,uBAGA,wBACA,wBACA,wBACA,6BACA,6BACA,oCACA,qCACJ,EAEJ,QACI,MAAM,IAAI,MAAM,iBAAiBA,CAAI,EAAE,CAE/C,CACJ,EAEaC,EAAe,CAACD,EAAgBE,EAA8CC,KAChF,CACH,IAAKA,EACL,UAAW,CACP,CACI,MAAOJ,EAAQC,CAAI,EACnB,GAAGE,CACP,CACJ,CACJ,GAESE,EACTC,IAKO,CACH,UAAWA,EAAM,IAAI,CAAC,CAAE,OAAAH,EAAQ,KAAAF,CAAK,KAC1B,CACH,MAAOD,EAAQC,CAAI,EACnB,GAAGE,CACP,EACH,CACL","sourcesContent":["import type { Linter } from \"eslint\";\n\ntype FileType = \"all\" | \"ava\" | \"javascript\" | \"jest\" | \"js_and_ts\" | \"jsx_and_tsx\" | \"tests\" | \"typescript\" | \"vitest\";\n\nconst getType = (type: FileType) => {\n switch (type) {\n case \"typescript\": {\n // @see https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions\n return [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"jsx_and_tsx\": {\n return [\"*.jsx\", \"*.tsx\", \"*.md{,x}\"];\n }\n case \"js_and_ts\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"javascript\": {\n return [\"*.js\", \"*.mjs\", \"*.cjs\"];\n }\n case \"all\": {\n return [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\", \"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\", \"*.mdx\"];\n }\n case \"jest\": {\n return [\n // Test files\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n\n // Facebook convention\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n ];\n }\n case \"ava\": {\n return [\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n ];\n }\n case \"vitest\": {\n return [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"];\n }\n case \"tests\": {\n return [\n // ava\n \"test.js\",\n \"src/test.js\",\n \"source/test.js\",\n \"**/test-*.js\",\n \"**/*.spec.js\",\n \"**/*.test.js\",\n \"**/test/**/*.js\",\n \"**/tests/**/*.js\",\n \"**/__tests__/**/*.js\",\n\n // jest\n \"**/*.spec.{js,ts,tsx}\",\n \"**/*.test.{js,ts,tsx}\",\n \"**/test/*.{js,ts,tsx}\",\n \"**/__mocks__/*.{js,ts,tsx}\",\n \"**/__tests__/*.{js,ts,tsx}\",\n \"**/__tests__/**/*.?(c|m)[jt]s?(x)\",\n \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\",\n ];\n }\n default: {\n throw new Error(`Unknown type: ${type}`);\n }\n }\n};\n\nexport const createConfig = (type: FileType, config: Omit<Linter.ConfigOverride, \"files\">, environment?: { [name: string]: boolean }): Linter.Config => {\n return {\n env: environment,\n overrides: [\n {\n files: getType(type),\n ...config,\n },\n ],\n };\n};\nexport const createConfigs = (\n rules: {\n config: Omit<Linter.ConfigOverride, \"files\">;\n type: FileType;\n }[],\n): Linter.Config => {\n return {\n overrides: rules.map(({ config, type }) => {\n return {\n files: getType(type),\n ...config,\n };\n }),\n };\n};\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
6
|
|
|
7
|
-
var t=
|
|
7
|
+
var t=chunkYRRY5AGG_js.a("all",{plugins:["antfu"],rules:{"antfu/generic-spacing":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-cjs-exports":packageJsonUtils.packageIsTypeModule?"error":"off","antfu/no-ts-export-equal":packageJsonUtils.hasTypescript?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off"}}),i=t;
|
|
8
8
|
|
|
9
9
|
module.exports = i;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var e=
|
|
6
|
+
var e=chunkYRRY5AGG_js.a("all",{extends:["plugin:array-func/recommended"],plugins:["array-func"],rules:{"array-func/prefer-array-from":"off","array-func/prefer-flat":0,"array-func/prefer-flat-map":0}}),a=e;
|
|
7
7
|
|
|
8
8
|
module.exports = a;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunkF5CTGWCD_js = require('../../chunk-F5CTGWCD.js');
|
|
4
|
+
require('../../chunk-57IVUTVM.js');
|
|
5
|
+
require('../../chunk-X3W6J3PZ.js');
|
|
6
6
|
var chunkMQFZFF2T_js = require('../../chunk-MQFZFF2T.js');
|
|
7
7
|
var chunk6COSQA7M_js = require('../../chunk-6COSQA7M.js');
|
|
8
|
-
var
|
|
8
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
9
9
|
require('../../chunk-3NVDJZNH.js');
|
|
10
10
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
11
11
|
|
|
12
|
-
var a=chunkMQFZFF2T_js.a.rules,r=chunk6COSQA7M_js.a.rules,e=
|
|
12
|
+
var a=chunkMQFZFF2T_js.a.rules,r=chunk6COSQA7M_js.a.rules,e=chunkF5CTGWCD_js.a.rules;global.anolilabEslintConfigBabelPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigBabelPrettierRules={"@babel/object-curly-spacing":"off","@babel/semi":"off","babel/quotes":0});var f=chunkYRRY5AGG_js.a("all",{plugins:["babel"],rules:{"babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"babel/new-cap":e["new-cap"],"babel/no-invalid-this":a["no-invalid-this"],"babel/no-unused-expressions":a["no-unused-expressions"],"babel/object-curly-spacing":e["object-curly-spacing"],"babel/quotes":e.quotes,"babel/semi":e.semi,"babel/valid-typeof":r["valid-typeof"],camelcase:"off","new-cap":"off","no-invalid-this":"off","no-unused-expressions":"off","object-curly-spacing":"off",quotes:"off",semi:"off","valid-typeof":"off",...global.anolilabEslintConfigBabelPrettierRules}}),d=f;
|
|
13
13
|
|
|
14
14
|
module.exports = d;
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var t=
|
|
6
|
+
var t=chunkYRRY5AGG_js.a("all",{plugins:["es-x"],settings:{es:{aggressive:!0}}}),r=t;
|
|
7
7
|
|
|
8
8
|
module.exports = r;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var t=
|
|
6
|
+
var t=chunkYRRY5AGG_js.a("typescript",{extends:["plugin:etc/recommended"],plugins:["etc"]}),n=t;
|
|
7
7
|
|
|
8
8
|
module.exports = n;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunk57IVUTVM_js = require('../../chunk-57IVUTVM.js');
|
|
4
|
+
require('../../chunk-X3W6J3PZ.js');
|
|
5
5
|
require('../../chunk-3NVDJZNH.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
|
-
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigHtmlPrettierRules={"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"},global.anolilabEslintConfigHtmlPrettierSettings={"html/report-bad-indent":"off"});var e={};global.hasAnolilabEsLintConfigPrettier||(e={"html/indent":`+${
|
|
8
|
+
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigHtmlPrettierRules={"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"},global.anolilabEslintConfigHtmlPrettierSettings={"html/report-bad-indent":"off"});var e={};global.hasAnolilabEsLintConfigPrettier||(e={"html/indent":`+${chunk57IVUTVM_js.a}`});var n={overrides:[{extends:["plugin:@html-eslint/recommended"],files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],globals:{sourceCode:!0},parser:"@html-eslint/parser",plugins:["html","@html-eslint"],rules:{"@html-eslint/indent":["error",chunk57IVUTVM_js.a],"capitalized-comments":"off","spaced-comment":"off",...global.anolilabEslintConfigHtmlPrettierRules},settings:{"html/report-bad-indent":"error",...e,...global.anolilabEslintConfigHtmlPrettierSettings}}]},s=n;
|
|
9
9
|
|
|
10
10
|
module.exports = s;
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkX3W6J3PZ_js = require('../../chunk-X3W6J3PZ.js');
|
|
5
5
|
require('../../chunk-3NVDJZNH.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
var process = require('process');
|
|
8
8
|
|
|
9
|
-
var r=[];(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&r.push("plugin:jsonc/prettier");var t=packageJsonUtils.hasDependency("sort-package-json")||packageJsonUtils.hasDevDependency("sort-package-json");if(t){let e=process.env.DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE!=="true";e&&
|
|
9
|
+
var r=[];(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&r.push("plugin:jsonc/prettier");var t=packageJsonUtils.hasDependency("sort-package-json")||packageJsonUtils.hasDevDependency("sort-package-json");if(t){let e=process.env.DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE!=="true";e&&chunkX3W6J3PZ_js.a.info_on_disabling_jsonc_sort_keys_rule!==void 0&&(e=chunkX3W6J3PZ_js.a.info_on_disabling_jsonc_sort_keys_rule),e&&chunkSEYYGHPU_js.b(`
|
|
10
10
|
@anolilab/eslint-config found sort-package-json.
|
|
11
11
|
|
|
12
12
|
Following rules are disabled: jsonc/sort-keys for all package.json files.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasDependency","hasDevDependency","env","extendedPlugins","hasSortPackageJson","showLog","eslint_config_default","consoleLog","config","jsonc_default"],"mappings":"wHAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAEhD,OAAS,OAAAC,MAAW,UAKpB,IAAMC,EAA4B,CAAC,GAE/BH,EAAc,UAAU,GAAKC,EAAiB,UAAU,IACxDE,EAAgB,KAAK,uBAAuB,EAGhD,IAAMC,EAAqBJ,EAAc,mBAAmB,GAAKC,EAAiB,mBAAmB,EAErG,GAAIG,EAAoB,CACpB,IAAIC,EAAmBH,EAAI,iDAAsD,OAE7EG,GAAWC,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasDependency","hasDevDependency","env","extendedPlugins","hasSortPackageJson","showLog","eslint_config_default","consoleLog","config","jsonc_default"],"mappings":"wHAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAEhD,OAAS,OAAAC,MAAW,UAKpB,IAAMC,EAA4B,CAAC,GAE/BH,EAAc,UAAU,GAAKC,EAAiB,UAAU,IACxDE,EAAgB,KAAK,uBAAuB,EAGhD,IAAMC,EAAqBJ,EAAc,mBAAmB,GAAKC,EAAiB,mBAAmB,EAErG,GAAIG,EAAoB,CACpB,IAAIC,EAAmBH,EAAI,iDAAsD,OAE7EG,GAAWC,EAAqB,yCAA8C,SAC9ED,EAAUC,EAAqB,wCAG/BD,GACAE,EAAW;AAAA;AAAA;AAAA;AAAA,CAC8D,CAEjF,CAEA,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAASL,EACT,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,OAAQ,qBACZ,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,SAAS,CACrB,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,SAAS,CACrB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,QAAQ,CACpB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,cAAc,EACtB,MAAO,CAEH,kBAAmBC,EACb,MACA,CACI,QACA,CACI,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,EACA,YAAa,IACjB,EACA,CACI,MAAO,CAAE,KAAM,KAAM,EACrB,YAAa,iDACjB,EACA,CACI,MAAO,CAAC,QAAS,UAAW,QAAQ,EACpC,YAAa,aACjB,CACJ,CACV,CACJ,CACJ,CACJ,EAEOK,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport { env } from \"node:process\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (hasDependency(\"prettier\") || hasDevDependency(\"prettier\")) {\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst hasSortPackageJson = hasDependency(\"sort-package-json\") || hasDevDependency(\"sort-package-json\");\n\nif (hasSortPackageJson) {\n let showLog: boolean = env[\"DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE\"] !== \"true\";\n\n if (showLog && anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"] !== undefined) {\n showLog = anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"];\n }\n\n if (showLog) {\n consoleLog(`\\n@anolilab/eslint-config found sort-package-json. \\n\n Following rules are disabled: jsonc/sort-keys for all package.json files. \\n`);\n }\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: extendedPlugins,\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n parser: \"jsonc-eslint-parser\",\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n files: [\"*.json5\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n files: [\"*.jsonc\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"*.json\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"package.json\"],\n rules: {\n // When the package \"sort-package-json\" is installed, we disable the rule \"jsonc/sort-keys\" because, the package \"sort-package-json\" is responsible for sorting the keys.\n \"jsonc/sort-keys\": hasSortPackageJson\n ? \"off\"\n : [\n \"error\",\n {\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 pathPattern: \"^$\",\n },\n {\n order: { type: \"asc\" },\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n },\n {\n order: [\"types\", \"require\", \"import\"],\n pathPattern: \"^exports.*$\",\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require('../../chunk-3NVDJZNH.js');
|
|
4
4
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
5
|
|
|
6
|
-
if(global.anolilabEslintConfigNodeRules===void 0&&packageJsonUtils.pkg?.engines?.node){let e=packageJsonUtils.pkg
|
|
6
|
+
if(global.anolilabEslintConfigNodeRules===void 0&&packageJsonUtils.pkg?.engines?.node){let e=packageJsonUtils.pkg.engines.node;global.anolilabEslintConfigNodeRules={"n/no-unsupported-features/es-builtins":["error",{version:e}],"n/no-unsupported-features/es-syntax":["error",{ignores:["modules"],version:e}],"n/no-unsupported-features/node-builtins":["error",{version:e}]};}var o={env:{node:!0},extends:["plugin:n/recommended"],overrides:[{files:["*.js","*.mjs","*.cjs"],rules:{"n/file-extension-in-import":["error","always"]}}],parserOptions:{ecmaVersion:2021},plugins:["n"],rules:{"global-require":"error","n/callback-return":"off","n/file-extension-in-import":"off","n/handle-callback-err":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","n/no-missing-import":"off","n/no-missing-require":"off","n/no-mixed-requires":["error",{allowCall:!0,grouping:!0}],"n/no-new-require":"error","n/no-process-env":"off","n/no-process-exit":"off","n/no-restricted-modules":"off","n/no-sync":"off","n/no-unpublished-bin":"error","n/process-exit-as-throw":"error","no-buffer-constructor":"error","no-path-concat":"error",...global.anolilabEslintConfigNodeRules}},s=o;
|
|
7
7
|
|
|
8
8
|
module.exports = s;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","version","config","node_default"],"mappings":"gCAAA,OAAS,OAAAA,MAAW,+BAGpB,GAAI,OAAO,gCAAkC,QAAaA,GAAK,SAAU,KAAS,CAC9E,IAAMC,EAAkBD,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","version","config","node_default"],"mappings":"gCAAA,OAAS,OAAAA,MAAW,+BAGpB,GAAI,OAAO,gCAAkC,QAAaA,GAAK,SAAU,KAAS,CAC9E,IAAMC,EAAkBD,EAAI,QAAQ,KAEpC,OAAO,8BAAgC,CACnC,wCAAyC,CAAC,QAAS,CAAE,QAAAC,CAAQ,CAAC,EAC9D,sCAAuC,CAAC,QAAS,CAAE,QAAS,CAAC,SAAS,EAAG,QAAAA,CAAQ,CAAC,EAClF,0CAA2C,CAAC,QAAS,CAAE,QAAAA,CAAQ,CAAC,CACpE,CACJ,CAGA,IAAMC,EAAwB,CAC1B,IAAK,CACD,KAAM,EACV,EACA,QAAS,CAAC,sBAAsB,EAChC,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAAC,QAAS,QAAQ,CACpD,CACJ,CACJ,EACA,cAAe,CACX,YAAa,IACjB,EACA,QAAS,CAAC,GAAG,EACb,MAAO,CAEH,iBAAkB,QAElB,oBAAqB,MAErB,6BAA8B,MAE9B,wBAAyB,MAGzB,yBAA0B,MAE1B,0BAA2B,MAI3B,sBAAuB,MAEvB,uBAAwB,MAIxB,sBAAuB,CACnB,QACA,CACI,UAAW,GACX,SAAU,EACd,CACJ,EAGA,mBAAoB,QAGpB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAI3B,YAAa,MAEb,uBAAwB,QAExB,0BAA2B,QAG3B,wBAAyB,QAGzB,iBAAkB,QAElB,GAAG,OAAO,6BACd,CACJ,EAEOC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nif (global.anolilabEslintConfigNodeRules === undefined && pkg?.engines?.[\"node\"]) {\n const version: string = pkg.engines[\"node\"];\n\n global.anolilabEslintConfigNodeRules = {\n \"n/no-unsupported-features/es-builtins\": [\"error\", { version }],\n \"n/no-unsupported-features/es-syntax\": [\"error\", { ignores: [\"modules\"], version }],\n \"n/no-unsupported-features/node-builtins\": [\"error\", { version }],\n };\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n env: {\n node: true,\n },\n extends: [\"plugin:n/recommended\"],\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 parserOptions: {\n ecmaVersion: 2021,\n },\n plugins: [\"n\"],\n rules: {\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n \"n/file-extension-in-import\": \"off\",\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n\n \"n/no-extraneous-require\": \"off\",\n\n // require all requires be top-level\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n\n \"n/no-missing-require\": \"off\",\n\n // disallow use of the Buffer() constructor\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n allowCall: true,\n grouping: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow string concatenation with __dirname and __filename\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 process.exit()\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n ...global.anolilabEslintConfigNodeRules,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
5
5
|
require('../../chunk-3NVDJZNH.js');
|
|
6
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
8
|
!global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys&&(packageJsonUtils.hasDependency("eslint-plugin-typescript-sort-keys")||packageJsonUtils.hasDevDependency("eslint-plugin-typescript-sort-keys"))&&(global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys=!0,chunkSEYYGHPU_js.b(`
|
|
9
9
|
Please remove "eslint-plugin-typescript-sort-keys" from your package.json, it conflicts with "eslint-plugin-perfectionist".
|
|
10
|
-
`));var s=
|
|
10
|
+
`));var s=chunkYRRY5AGG_js.a("all",{extends:["plugin:perfectionist/recommended-natural"],plugins:["perfectionist"],rules:{"perfectionist/sort-imports":"off","perfectionist/sort-union-types":"off","sort-keys":"off"}}),l=s;
|
|
11
11
|
|
|
12
12
|
module.exports = l;
|
|
13
13
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var r=
|
|
6
|
+
var r=chunkYRRY5AGG_js.a("jsx_and_tsx",{parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["react-hooks"],rules:{"react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error"}}),t=r;
|
|
7
7
|
|
|
8
8
|
module.exports = t;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var r=
|
|
6
|
+
var r=chunkYRRY5AGG_js.a("jsx_and_tsx",{extends:["plugin:react-redux/recommended"],plugins:["react-redux"],rules:{"react-redux/mapStateToProps-prefer-selectors":"off","react-redux/prefer-separate-component-file":"off"}}),o=r;
|
|
7
7
|
|
|
8
8
|
module.exports = o;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRRY5AGG_js = require('../../chunk-YRRY5AGG.js');
|
|
4
4
|
require('../../chunk-3NVDJZNH.js');
|
|
5
5
|
|
|
6
|
-
var r=
|
|
6
|
+
var r=chunkYRRY5AGG_js.a("jsx_and_tsx",{parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["@arthurgeron/react-usememo"],rules:{"@arthurgeron/react-usememo/require-usememo":"error"}}),o=r;
|
|
7
7
|
|
|
8
8
|
module.exports = o;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkF5CTGWCD_js = require('../../chunk-F5CTGWCD.js');
|
|
5
|
+
var chunk57IVUTVM_js = require('../../chunk-57IVUTVM.js');
|
|
6
|
+
var chunkX3W6J3PZ_js = require('../../chunk-X3W6J3PZ.js');
|
|
7
7
|
require('../../chunk-3NVDJZNH.js');
|
|
8
8
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
9
9
|
var u = require('find-up');
|
|
@@ -14,14 +14,14 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
14
14
|
|
|
15
15
|
var u__default = /*#__PURE__*/_interopDefault(u);
|
|
16
16
|
|
|
17
|
-
var g=
|
|
17
|
+
var g=chunkF5CTGWCD_js.a.rules,s=g["no-underscore-dangle"];!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.anolilabEslintConfigReactPrettierRules===void 0&&global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigReactPrettierRules={"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":"off","react/jsx-closing-tag-location":"off","react/jsx-curly-newline":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off"});var c=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let e=typeof u__default.default.sync("node_modules/react/jsx-runtime.js")=="string",t=process.env.DISABLE_INFO_ON_DISABLING_JSX_REACT_RULE!=="true";t&&chunkX3W6J3PZ_js.a.info_on_disabling_jsx_react_rule!==void 0&&(t=chunkX3W6J3PZ_js.a.info_on_disabling_jsx_react_rule),t&&e&&chunkSEYYGHPU_js.b(`
|
|
18
18
|
@anolilab/eslint-config found react jsx-runtime.
|
|
19
19
|
|
|
20
20
|
Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
|
|
21
21
|
If you dont use the new react jsx-runtime in you project, please enable it manually.
|
|
22
|
-
`),global.hasAnolilabEsLintConfigReactRuntimePath=e;}return global.hasAnolilabEsLintConfigReactRuntimePath})();if(!global.anolilabEslintConfigReactVersion){let r=packageJsonUtils.getPackageSubProperty("dependencies")("react");if(r===void 0&&(r=packageJsonUtils.getPackageSubProperty("devDependencies")("react")),r!==void 0){let e=semver.parse(r);e!==null&&(global.anolilabEslintConfigReactVersion=`${e.major}.${e.minor}`);}}global.anolilabEslintConfigReactVersion!==void 0&&
|
|
22
|
+
`),global.hasAnolilabEsLintConfigReactRuntimePath=e;}return global.hasAnolilabEsLintConfigReactRuntimePath})();if(!global.anolilabEslintConfigReactVersion){let r=packageJsonUtils.getPackageSubProperty("dependencies")("react");if(r===void 0&&(r=packageJsonUtils.getPackageSubProperty("devDependencies")("react")),r!==void 0){let e=semver.parse(r);e!==null&&(global.anolilabEslintConfigReactVersion=`${e.major}.${e.minor}`);}}global.anolilabEslintConfigReactVersion!==void 0&&chunkX3W6J3PZ_js.a.info_on_found_react_version!==!1&&chunkSEYYGHPU_js.b(`
|
|
23
23
|
@anolilab/eslint-config found the version ${global.anolilabEslintConfigReactVersion} of react in your dependencies, this version ${global.anolilabEslintConfigReactVersion} will be used to setup the "eslint-plugin-react"
|
|
24
|
-
`);var x={overrides:[{env:{browser:!0},files:["*.mdx","*.jsx","*.tsx"],parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["react"],rules:{"class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"]}],"jsx-quotes":["error","prefer-double"],"no-underscore-dangle":[s[0],{...s[1],allow:[...s[1].allow,"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]}],"react/boolean-prop-naming":["off",{message:"",propTypeNames:["bool","mutuallyExclusiveTrueProps"],rule:"^(is|has)[A-Z]([A-Za-z0-9]?)+"}],"react/button-has-type":["error",{button:!0,reset:!1,submit:!0}],"react/default-props-match-prop-types":["error",{allowRequiredDefaults:!1}],"react/destructuring-assignment":["error","always"],"react/display-name":["off",{ignoreTranspilerName:!1}],"react/forbid-component-props":["off",{forbid:[]}],"react/forbid-dom-props":["off",{forbid:[]}],"react/forbid-elements":["off",{forbid:[]}],"react/forbid-foreign-prop-types":["warn",{allowInPropTypes:!0}],"react/forbid-prop-types":["error",{checkChildContextTypes:!0,checkContextTypes:!0,forbid:["any","array","object"]}],"react/function-component-definition":["error",{namedComponents:"arrow-function",unnamedComponents:"arrow-function"}],"react/jsx-boolean-value":["error","never",{always:[]}],"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":["error","line-aligned"],"react/jsx-curly-brace-presence":["error",{children:"never",props:"never"}],"react/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-equals-spacing":["error","never"],"react/jsx-first-prop-new-line":["error","multiline-multiprop"],"react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"react/jsx-indent":["error",
|
|
24
|
+
`);var x={overrides:[{env:{browser:!0},files:["*.mdx","*.jsx","*.tsx"],parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["react"],rules:{"class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"]}],"jsx-quotes":["error","prefer-double"],"no-underscore-dangle":[s[0],{...s[1],allow:[...s[1].allow,"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]}],"react/boolean-prop-naming":["off",{message:"",propTypeNames:["bool","mutuallyExclusiveTrueProps"],rule:"^(is|has)[A-Z]([A-Za-z0-9]?)+"}],"react/button-has-type":["error",{button:!0,reset:!1,submit:!0}],"react/default-props-match-prop-types":["error",{allowRequiredDefaults:!1}],"react/destructuring-assignment":["error","always"],"react/display-name":["off",{ignoreTranspilerName:!1}],"react/forbid-component-props":["off",{forbid:[]}],"react/forbid-dom-props":["off",{forbid:[]}],"react/forbid-elements":["off",{forbid:[]}],"react/forbid-foreign-prop-types":["warn",{allowInPropTypes:!0}],"react/forbid-prop-types":["error",{checkChildContextTypes:!0,checkContextTypes:!0,forbid:["any","array","object"]}],"react/function-component-definition":["error",{namedComponents:"arrow-function",unnamedComponents:"arrow-function"}],"react/jsx-boolean-value":["error","never",{always:[]}],"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":["error","line-aligned"],"react/jsx-curly-brace-presence":["error",{children:"never",props:"never"}],"react/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-equals-spacing":["error","never"],"react/jsx-first-prop-new-line":["error","multiline-multiprop"],"react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"react/jsx-indent":["error",chunk57IVUTVM_js.a,{checkAttributes:!0,indentLogicalExpressions:!0}],"react/jsx-indent-props":["error",chunk57IVUTVM_js.a],"react/jsx-key":"off","react/jsx-max-depth":"off","react/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"react/jsx-newline":"off","react/jsx-no-bind":["error",{allowArrowFunctions:!0,allowBind:!1,allowFunctions:!1,ignoreDOMComponents:!0,ignoreRefs:!0}],"react/jsx-no-comment-textnodes":"error","react/jsx-no-constructed-context-values":"error","react/jsx-no-duplicate-props":["error",{ignoreCase:!0}],"react/jsx-no-literals":["off",{noStrings:!0}],"react/jsx-no-script-url":["error",[{name:"Link",props:["to"]}]],"react/jsx-no-target-blank":["error",{enforceDynamicLinks:"always"}],"react/jsx-no-undef":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":["error",{allow:"single-child"}],"react/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],"react/jsx-props-no-multi-spaces":"error","react/jsx-props-no-spreading":["error",{custom:"enforce",exceptions:[],explicitSpread:"ignore",html:"enforce"}],"react/jsx-sort-props":"off","react/jsx-space-before-closing":["off","always"],"react/jsx-tag-spacing":["error",{afterOpening:"never",beforeClosing:"never",beforeSelfClosing:"always",closingSlash:"never"}],"react/jsx-uses-react":[c?"off":"error"],"react/jsx-uses-vars":"error","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"error","react/no-array-index-key":"error","react/no-children-prop":"error","react/no-danger":"warn","react/no-danger-with-children":"error","react/no-deprecated":["error"],"react/no-did-mount-set-state":"off","react/no-did-update-set-state":"error","react/no-direct-mutation-state":"error","react/no-find-dom-node":"error","react/no-is-mounted":"error","react/no-multi-comp":"off","react/no-redundant-should-component-update":"error","react/no-render-return-value":"error","react/no-set-state":"off","react/no-string-refs":"error","react/no-this-in-sfc":"error","react/no-unescaped-entities":"error","react/no-unknown-property":"error","react/no-unsafe":"off","react/no-unused-prop-types":["error",{customValidators:[],skipShapeProps:!0}],"react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":["error","always"],"react/prefer-read-only-props":"off","react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/prop-types":["error",{customValidators:[],ignore:[],skipUndeclared:!1}],"react/react-in-jsx-scope":c?"off":"error","react/require-default-props":["error",{forbidDefaultForRequired:!0}],"react/require-optimization":["off",{allowDecorators:[]}],"react/require-render-return":"error","react/self-closing-comp":"error","react/sort-comp":["error",{groups:{lifecycle:["displayName","propTypes","contextTypes","childContextTypes","mixins","statics","defaultProps","constructor","getDefaultProps","getInitialState","state","getChildContext","getDerivedStateFromProps","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","getSnapshotBeforeUpdate","componentDidUpdate","componentDidCatch","componentWillUnmount"],rendering:["/^render.+$/","render"]},order:["static-variables","static-methods","instance-variables","lifecycle","/^handle.+$/","/^on.+$/","getters","setters","/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/","instance-methods","everything-else","rendering"]}],"react/sort-default-props":["error",{ignoreCase:!0}],"react/sort-prop-types":["off",{callbacksLast:!1,ignoreCase:!0,requiredFirst:!1,sortShapeProp:!0}],"react/state-in-constructor":["error","always"],"react/static-property-placement":["error","property assignment"],"react/style-prop-object":"error","react/void-dom-elements-no-children":"error",...global.anolilabEslintConfigReactPrettierRules},settings:{"import/resolver":{node:{extensions:[".js",".jsx",".json",".cjs",".mjs"]}},propWrapperFunctions:["forbidExtraProps","exact","Object.freeze"],react:{version:global.anolilabEslintConfigReactVersion??"detect"}}},{files:["*.jsx"],rules:{"react/jsx-closing-tag-location":"error","react/jsx-filename-extension":"error","react/jsx-wrap-multilines":["error",{arrow:"parens-new-line",assignment:"parens-new-line",condition:"parens-new-line",declaration:"parens-new-line",logical:"parens-new-line",prop:"parens-new-line",return:"parens-new-line"}],"react/no-typos":"error"}},{files:["*.tsx"],rules:{"react/default-props-match-prop-types":"off","react/jsx-filename-extension":"off","react/prop-types":"off"}}]},E=x;
|
|
25
25
|
|
|
26
26
|
module.exports = E;
|
|
27
27
|
//# sourceMappingURL=out.js.map
|