@anolilab/eslint-config 16.1.1 → 16.1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## @anolilab/eslint-config [16.1.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.1.2...@anolilab/eslint-config@16.1.3) (2025-05-26)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **eslint-config:** update TypeScript declaration file type from "d.ts" to "types" ([3292434](https://github.com/anolilab/javascript-style-guide/commit/3292434f3f0600794844790b030b6d882696a123))
6
+
7
+ ## @anolilab/eslint-config [16.1.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.1.1...@anolilab/eslint-config@16.1.2) (2025-05-26)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **eslint-config:** add 'link' tag to definedTags in jsdoc configuration ([8e5483e](https://github.com/anolilab/javascript-style-guide/commit/8e5483e7755ffa1cfc1e885c90b71251fd64acb7))
12
+
1
13
  ## @anolilab/eslint-config [16.1.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@16.1.0...@anolilab/eslint-config@16.1.1) (2025-05-26)
2
14
 
3
15
  ### Bug Fixes
package/README.md CHANGED
@@ -620,7 +620,7 @@ The `getFilesGlobs` function accepts one of the following `FileType` strings:
620
620
  - `"astro_ts"`: TypeScript files within Astro components.
621
621
  - `"astro"`: Astro component files (`.astro`).
622
622
  - `"css"`: CSS files.
623
- - `"d.ts"`: TypeScript declaration files (`.d.ts`, `.d.cts`, `.d.mts`).
623
+ - `"types"`: TypeScript declaration files (`.d.ts`, `.d.cts`, `.d.mts`).
624
624
  - `"e2e"`: End-to-end test files.
625
625
  - `"graphql"`: GraphQL files (`.gql`, `.graphql`).
626
626
  - `"html"`: Various HTML-like template files (`.html`, `.hbs`, `.erb`, etc.).
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var de=Object.create;var ee=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ye=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var j=(e,r)=>ee(e,"name",{value:r,configurable:!0});var he=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of me(r))!ge.call(e,t)&&t!==o&&ee(e,t,{get:()=>r[t],enumerable:!(s=ue(r,t))||s.enumerable});return e};var l=(e,r,o)=>(o=e!=null?de(ye(e)):{},he(r||!e||!e.__esModule?ee(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("node:fs"),xe=require("node:path"),m=require("@visulima/package"),je=require("eslint-flat-config-utils"),ae=require("semver"),n=require("./packem_shared/getFilesGlobs-llCT-8Ra.cjs"),we=require("@typescript-eslint/parser"),ve=require("globals"),ne=require("eslint-merge-processors"),ie=require("@eslint/compat"),ke=require("@visulima/tsconfig"),Pe=require("eslint-plugin-regexp"),Ce=require("confusing-browser-globals"),oe=j(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),Oe=oe(we),H=oe(ve),De=oe(Ce),U={"dot-notation":"off","no-empty-function":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-redeclare":"off","no-return-await":"off","no-throw-literal":"off","no-unused-expressions":"off",strict:"off"},_e=n.createConfig("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/best-practices/rules",rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],complexity:["off",11],"consistent-return":"error",curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-location":["error","property"],"dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","max-classes-per-file":["error",1],"no-alert":"error","no-caller":"error","no-case-declarations":"error","no-constructor-return":"error","no-div-regex":"off","no-else-return":["error",{allowElseIf:!1}],"no-empty-function":["error",{allow:["arrowFunctions","functions","methods"]}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eq-null":"off","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-fallthrough":"error","no-floating-decimal":"error","no-global-assign":["error",{exceptions:[]}],"no-implicit-coercion":["off",{allow:[],boolean:!1,number:!0,string:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","no-magic-numbers":["off",{detectObjects:!1,enforceConst:!0,ignore:[],ignoreArrayIndexes:!0}],"no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-native-reassign":"off","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":["error",{ignorePropertyModificationsFor:["acc","accumulator","e","ctx","context","req","request","res","response","$scope","staticContext"],props:!0}],"no-proto":"error","no-redeclare":"error","no-restricted-properties":["error",{message:"arguments.callee is deprecated",object:"arguments",property:"callee"},{message:"Please use Number.isFinite instead",object:"global",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"self",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"window",property:"isFinite"},{message:"Please use Number.isNaN instead",object:"global",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"self",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"window",property:"isNaN"},{message:"Please use Object.defineProperty instead.",property:"__defineGetter__"},{message:"Please use Object.defineProperty instead.",property:"__defineSetter__"},{message:"Use the exponentiation operator (**) instead.",object:"Math",property:"pow"},{message:"Use `Number.isNaN` instead.",object:"globalThis",property:"isNaN"},{message:"Use `Number.isFinite` instead.",object:"globalThis",property:"isFinite"},{message:"Use `Number.parseFloat` instead.",object:"globalThis",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"globalThis",property:"parseInt"},{message:"Use `Number.parseFloat` instead.",object:"window",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"window",property:"parseInt"},{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-return-assign":["error","always"],"no-return-await":"error","no-script-url":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-throw-literal":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}],"no-unused-labels":"error","no-useless-call":"off","no-useless-catch":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":"error","no-warning-comments":["off",{location:"start",terms:["todo","fixme","xxx","@todo"]}],"no-with":"error","prefer-named-capture-group":"off","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-regex-literals":"off",radix:"error","require-await":"off","require-unicode-regexp":"off","vars-on-top":"error","wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error"}},{files:n.getFilesGlobs("ts"),name:"anolilab/best-practices/ts-rules",rules:U}]}),Se={"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-new-native-nonconstructor":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]},Fe=n.createConfig("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/errors/rules",rules:Se},{files:n.getFilesGlobs("ts"),name:"anolilab/errors/ts-rules",rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off"}}]});var qe=Object.defineProperty,Ee=j((e,r)=>qe(e,"name",{value:r,configurable:!0}),"s$3");const le=Ee(e=>({"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"arrow-parens":["error","always"],"arrow-spacing":["error",{after:!0,before:!0}],"constructor-super":"error","generator-star-spacing":["error",{after:!0,before:!1}],"no-class-assign":"error","no-confusing-arrow":["error",{allowParens:!0}],"no-const-assign":"error","no-dupe-class-members":"error","no-duplicate-imports":"off","no-new-symbol":"error","no-restricted-exports":["error",{restrictDefaultExports:{defaultFrom:!1,direct:!1,named:!0,namedFrom:!1,namespaceFrom:!0},restrictedNamedExports:["then"]}],"no-restricted-imports":["error",{paths:[{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.isequal"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.uniqueId"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.mergewith"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.pick"},{name:"error"},{name:"domain"},{name:"freelist"},{name:"smalloc"},{name:"punycode"},{name:"sys"},{message:'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try "qs" as a package',name:"querystring"},{message:"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors",name:"colors"},{message:"node v10.12 mkdir supports recursive option",name:"mkdirp"},{message:'Please use "@faker-js/faker" as a replacement',name:"faker"},{message:"Please use Object.assign or spread { ...obj }",name:"xtend"},{message:"Please use Object.assign or spread { ...obj }",name:"object-assign"},{message:"Please use Object.assign or spread { ...obj }",name:"extend-shallow"},{message:"node supports recursive option now",name:"rimraf"},{message:'just use "".padStart() and "".padEnd()',name:"pad-left"},{message:'just use "".padStart() and "".padEnd()',name:"pad-right"},{message:'just use "".padStart() and "".padEnd()',name:"left-pad"},{message:'just use "".padStart() and "".padEnd()',name:"right-pad"},{message:'just use "".padStart() and "".padEnd()',name:"pad"},{name:"safe-buffer"},{name:"safer-buffer"},{message:"just use [].flat() or some other polyfill",name:"array-flatten"},{message:"Been deprecated",name:"request"},{message:"use async/await instead",name:"co"},{message:"Please use TextDecoder instead",name:"windows-1252"},{message:"Please use TextDecoder instead",name:"string_decoder"},{message:"Please use array.prototype.flatMap instead",name:"concat-map"},{name:"buffer-alloc"}],patterns:["lodash.*"]}],"no-this-before-super":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreExport:!1,ignoreImport:!1}],"no-var":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":e?"off":["error",{destructuring:"any",ignoreReadBeforeAssign:!0}],"prefer-destructuring":["error",{AssignmentExpression:{array:!0,object:!1},VariableDeclarator:{array:!1,object:!0}},{enforceForRenamedProperties:!1}],"prefer-numeric-literals":"error","prefer-reflect":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","require-yield":"error","rest-spread-spacing":["error","never"],"sort-imports":["off",{ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","template-curly-spacing":"error","yield-star-spacing":["error","after"]}),"es6Rules"),Ae=n.createConfig("all",async(e,r)=>{const{files:o=r,isInEditor:s=!1}=e;return[{files:o,languageOptions:{parserOptions:{ecmaFeatures:{generators:!1,objectLiteralDuplicateProperties:!1},ecmaVersion:6,sourceType:"module"}},name:"anolilab/es6/rules",rules:le(s)},{files:n.getFilesGlobs("ts"),name:"anolilab/es6/ts-rules",rules:{"constructor-super":"off","no-const-assign":"off","no-dupe-class-members":"off","no-new-symbol":"off","no-this-before-super":"off","no-useless-constructor":"off"}}]});var Ie=Object.defineProperty,Ne=j((e,r)=>Ie(e,"name",{value:r,configurable:!0}),"t$2");const Te=Ne(async(e=[])=>[{ignores:["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/.npmignore","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts",...e],name:"anolilab/ignores"}],"ignores");var Je=Object.defineProperty,$e=j((e,r)=>Je(e,"name",{value:r,configurable:!0}),"a$1");const c=$e(async e=>{const r=await e;return r.default||r},"interopDefault"),Ue=n.createConfig("all",async(e,r)=>{const{files:o=r,lessOpinionated:s=!1,overrides:t,packageJson:a}=e,i=await c(import("eslint-plugin-antfu"));return[{files:o,name:"anolilab/antfu",plugins:{antfu:i},rules:{"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-import-dist":"error","antfu/no-import-node-modules-by-path":"error","antfu/no-ts-export-equal":m.hasPackageJsonAnyDependency(a,["typescript"])?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off",...s?{curly:["error","all"]}:{"antfu/curly":"error","antfu/if-newline":"error"},...t}}]}),Le=n.createConfig("astro",async(e,r)=>{const{files:o=r,overrides:s={},stylistic:t=!0}=e,[a,i,p]=await Promise.all([c(import("eslint-plugin-astro")),c(import("astro-eslint-parser")),c(import("@typescript-eslint/parser"))]);return[{name:"anolilab/astro/setup",plugins:{astro:a}},{files:o,languageOptions:{globals:a.environments.astro.globals,parser:i,parserOptions:{extraFileExtensions:[".astro"],parser:p},sourceType:"module"},name:"anolilab/astro/rules",processor:"astro/client-side-ts",rules:{"antfu/no-top-level-await":"off","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-set-html-directive":"off","astro/no-unused-define-vars-in-style":"error","astro/semi":"off","astro/valid-compile":"error",...t?{"@stylistic/indent":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/no-multiple-empty-lines":"off"}:{},...s}}]}),Me=n.createConfig("all",async(e,r)=>{const{files:o=r,overrides:s}=e,t=await c(import("@eslint-community/eslint-plugin-eslint-comments"));return[{files:o,name:"anolilab/eslint-comments/rules",plugins:{"eslint-comments":t},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-restricted-disable":"off","eslint-comments/no-unlimited-disable":"off","eslint-comments/no-unused-disable":"error","eslint-comments/no-unused-enable":"error","eslint-comments/no-use":"off","eslint-comments/require-description":"off",...s}}]}),Re=n.createConfig("all",async(e,r)=>{const{files:o=r}=e,s=(await c(import("eslint-plugin-compat"))).configs["flat/recommended"];return s.files=o,[s]});var Ge=Object.defineProperty,ze=j((e,r)=>Ge(e,"name",{value:r,configurable:!0}),"r$2");const C={meta:{name:"parser-plain"},parseForESLint:ze(e=>({ast:{body:[],comments:[],loc:{end:e.length,start:0},range:[0,e.length],tokens:[],type:"Program"},scopeManager:void 0,services:{isPlain:!0},visitorKeys:{Program:[]}}),"parseForESLint")};var Ve=Object.defineProperty,Be=j((e,r)=>Ve(e,"name",{value:r,configurable:!0}),"o$1");const w=0,We=Be(async e=>{const{indent:r,jsx:o,overrides:s={},prettier:t,quotes:a,semi:i}={...ce,...e},p=await c(import("@stylistic/eslint-plugin")),f=p.configs.customize({indent:r,jsx:o,pluginName:"@stylistic",quotes:t?void 0:a,semi:t?!1:i});return[{name:"anolilab/stylistic/rules",plugins:{"@stylistic":p},rules:{...f.rules,"@stylistic/arrow-parens":"off","@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",enums:"always-multiline",exports:"always-multiline",functions:"always-multiline",generics:"always-multiline",imports:"always-multiline",objects:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error",{after:!0,before:!1}],"@stylistic/func-call-spacing":["error","never"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/indent":["error",r,{ArrayExpression:1,CallExpression:{arguments:1},flatTernaryExpressions:!1,FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ImportDeclaration:1,ObjectExpression:1,outerIIFEBody:1,SwitchCase:1,VariableDeclarator:1}],"@stylistic/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"@stylistic/keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"@stylistic/lines-around-comment":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@stylistic/member-delimiter-style":"error","@stylistic/no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":"error","@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:"directive"},{blankLine:"never",next:"directive",prev:"directive"},{blankLine:"always",next:"*",prev:["const","let","var"]},{blankLine:"any",next:["const","let","var"],prev:["const","let","var"]},{blankLine:"always",next:"return",prev:"*"},{blankLine:"always",next:["for","function","if","switch","try"],prev:"*"},{blankLine:"always",next:"*",prev:["for","function","if","switch","try"]}],"@stylistic/quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"@stylistic/space-infix-ops":"error","@stylistic/type-annotation-spacing":"error","@stylistic/yield-star-spacing":["error",{after:!0,before:!1}],...s,...t?{"@stylistic/array-bracket-newline":"off","@stylistic/array-bracket-spacing":"off","@stylistic/array-element-newline":"off","@stylistic/arrow-parens":"off","@stylistic/arrow-spacing":"off","@stylistic/block-spacing":"off","@stylistic/brace-style":"off","@stylistic/comma-dangle":"off","@stylistic/comma-spacing":"off","@stylistic/comma-style":"off","@stylistic/computed-property-spacing":"off","@stylistic/dot-location":"off","@stylistic/eol-last":"off","@stylistic/func-call-spacing":"off","@stylistic/function-call-argument-newline":"off","@stylistic/function-call-spacing":"off","@stylistic/function-paren-newline":"off","@stylistic/generator-star-spacing":"off","@stylistic/implicit-arrow-linebreak":"off","@stylistic/indent":"off","@stylistic/indent-binary-ops":"off","@stylistic/js/array-bracket-newline":"off","@stylistic/js/array-bracket-spacing":"off","@stylistic/js/array-element-newline":"off","@stylistic/js/arrow-parens":"off","@stylistic/js/arrow-spacing":"off","@stylistic/js/block-spacing":"off","@stylistic/js/brace-style":"off","@stylistic/js/comma-dangle":"off","@stylistic/js/comma-spacing":"off","@stylistic/js/comma-style":"off","@stylistic/js/computed-property-spacing":"off","@stylistic/js/dot-location":"off","@stylistic/js/eol-last":"off","@stylistic/js/func-call-spacing":"off","@stylistic/js/function-call-argument-newline":"off","@stylistic/js/function-call-spacing":"off","@stylistic/js/function-paren-newline":"off","@stylistic/js/generator-star-spacing":"off","@stylistic/js/implicit-arrow-linebreak":"off","@stylistic/js/indent":"off","@stylistic/js/jsx-quotes":"off","@stylistic/js/key-spacing":"off","@stylistic/js/keyword-spacing":"off","@stylistic/js/linebreak-style":"off","@stylistic/js/lines-around-comment":w,"@stylistic/js/max-len":w,"@stylistic/js/max-statements-per-line":"off","@stylistic/js/multiline-ternary":"off","@stylistic/js/new-parens":"off","@stylistic/js/newline-per-chained-call":"off","@stylistic/js/no-confusing-arrow":w,"@stylistic/js/no-extra-parens":"off","@stylistic/js/no-extra-semi":"off","@stylistic/js/no-floating-decimal":"off","@stylistic/js/no-mixed-operators":w,"@stylistic/js/no-mixed-spaces-and-tabs":"off","@stylistic/js/no-multi-spaces":"off","@stylistic/js/no-multiple-empty-lines":"off","@stylistic/js/no-tabs":w,"@stylistic/js/no-trailing-spaces":"off","@stylistic/js/no-whitespace-before-property":"off","@stylistic/js/nonblock-statement-body-position":"off","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","@stylistic/js/operator-linebreak":"off","@stylistic/js/padded-blocks":"off","@stylistic/js/quote-props":"off","@stylistic/js/quotes":w,"@stylistic/js/rest-spread-spacing":"off","@stylistic/js/semi":"off","@stylistic/js/semi-spacing":"off","@stylistic/js/semi-style":"off","@stylistic/js/space-before-blocks":"off","@stylistic/js/space-before-function-paren":"off","@stylistic/js/space-in-parens":"off","@stylistic/js/space-infix-ops":"off","@stylistic/js/space-unary-ops":"off","@stylistic/js/switch-colon-spacing":"off","@stylistic/js/template-curly-spacing":"off","@stylistic/js/template-tag-spacing":"off","@stylistic/js/wrap-iife":"off","@stylistic/js/wrap-regex":"off","@stylistic/js/yield-star-spacing":"off","@stylistic/jsx-child-element-spacing":"off","@stylistic/jsx-closing-bracket-location":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-curly-newline":"off","@stylistic/jsx-curly-spacing":"off","@stylistic/jsx-equals-spacing":"off","@stylistic/jsx-first-prop-new-line":"off","@stylistic/jsx-indent":"off","@stylistic/jsx-indent-props":"off","@stylistic/jsx-max-props-per-line":"off","@stylistic/jsx-newline":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/jsx-props-no-multi-spaces":"off","@stylistic/jsx-quotes":"off","@stylistic/jsx-tag-spacing":"off","@stylistic/jsx-wrap-multilines":"off","@stylistic/jsx/jsx-child-element-spacing":"off","@stylistic/jsx/jsx-closing-bracket-location":"off","@stylistic/jsx/jsx-closing-tag-location":"off","@stylistic/jsx/jsx-curly-newline":"off","@stylistic/jsx/jsx-curly-spacing":"off","@stylistic/jsx/jsx-equals-spacing":"off","@stylistic/jsx/jsx-first-prop-new-line":"off","@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-indent-props":"off","@stylistic/jsx/jsx-max-props-per-line":"off","@stylistic/key-spacing":"off","@stylistic/keyword-spacing":"off","@stylistic/linebreak-style":"off","@stylistic/lines-around-comment":w,"@stylistic/max-len":w,"@stylistic/max-statements-per-line":"off","@stylistic/member-delimiter-style":"off","@stylistic/multiline-ternary":"off","@stylistic/new-parens":"off","@stylistic/newline-per-chained-call":"off","@stylistic/no-confusing-arrow":w,"@stylistic/no-extra-parens":"off","@stylistic/no-extra-semi":"off","@stylistic/no-floating-decimal":"off","@stylistic/no-mixed-operators":w,"@stylistic/no-mixed-spaces-and-tabs":"off","@stylistic/no-multi-spaces":"off","@stylistic/no-multiple-empty-lines":"off","@stylistic/no-tabs":w,"@stylistic/no-trailing-spaces":"off","@stylistic/no-whitespace-before-property":"off","@stylistic/nonblock-statement-body-position":"off","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":"off","@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","@stylistic/operator-linebreak":"off","@stylistic/padded-blocks":"off","@stylistic/quote-props":"off","@stylistic/quotes":w,"@stylistic/rest-spread-spacing":"off","@stylistic/semi":"off","@stylistic/semi-spacing":"off","@stylistic/semi-style":"off","@stylistic/space-before-blocks":"off","@stylistic/space-before-function-paren":"off","@stylistic/space-in-parens":"off","@stylistic/space-infix-ops":"off","@stylistic/space-unary-ops":"off","@stylistic/switch-colon-spacing":"off","@stylistic/template-curly-spacing":"off","@stylistic/template-tag-spacing":"off","@stylistic/ts/block-spacing":"off","@stylistic/ts/brace-style":"off","@stylistic/ts/comma-dangle":"off","@stylistic/ts/comma-spacing":"off","@stylistic/ts/func-call-spacing":"off","@stylistic/ts/function-call-spacing":"off","@stylistic/ts/indent":"off","@stylistic/ts/key-spacing":"off","@stylistic/ts/keyword-spacing":"off","@stylistic/ts/lines-around-comment":w,"@stylistic/ts/member-delimiter-style":"off","@stylistic/ts/no-extra-parens":"off","@stylistic/ts/no-extra-semi":"off","@stylistic/ts/object-curly-spacing":"off","@stylistic/ts/quotes":w,"@stylistic/ts/semi":"off","@stylistic/ts/space-before-blocks":"off","@stylistic/ts/space-before-function-paren":"off","@stylistic/ts/space-infix-ops":"off","@stylistic/ts/type-annotation-spacing":"off","@stylistic/type-annotation-spacing":"off","@stylistic/type-generic-spacing":"off","@stylistic/type-named-tuple-spacing":"off","@stylistic/wrap-iife":"off","@stylistic/wrap-regex":"off","@stylistic/yield-star-spacing":"off"}:{}}}]},"stylistic"),ce={indent:4,jsx:!0,quotes:"double",semi:!0};var Xe=Object.defineProperty,pe=j((e,r)=>Xe(e,"name",{value:r,configurable:!0}),"p$2");const _=pe((e,r={})=>({...e,...r,plugins:[...r.plugins||[],...e.plugins||[]]}),"mergePrettierOptions"),Ke=pe(async(e,r)=>{if(e.slidev&&e.markdown!==!0&&e.markdown!=="prettier")throw new Error("`slidev` option only works when `markdown` is enabled with `prettier`");const{indent:o,quotes:s,semi:t}={...ce,...r},a=Object.assign({endOfLine:"auto",printWidth:120,semi:t,singleQuote:s==="single",tabWidth:typeof o=="number"?o:2,trailingComma:"all",useTabs:o==="tab"},e.prettierOptions||{}),i={xmlQuoteAttributes:"double",xmlSelfClosingSpace:!0,xmlSortAttributesByKey:!1,xmlWhitespaceSensitivity:"ignore"},p={indentWidth:typeof o=="number"?o:2,quoteStyle:s==="single"?"preferSingle":"preferDouble",useTabs:o==="tab",...e.dprintOptions},f=[{name:"anolilab/formatter/setup",plugins:{format:await c(import("eslint-plugin-format"))}}];if(e.css&&f.push({files:[...n.getFilesGlobs("css"),...n.getFilesGlobs("postcss")],languageOptions:{parser:C},name:"anolilab/formatter/css",rules:{"format/prettier":["error",_(a,{parser:"css"})]}},{files:n.getFilesGlobs("scss"),languageOptions:{parser:C},name:"anolilab/formatter/scss",rules:{"format/prettier":["error",_(a,{parser:"scss"})]}},{files:n.getFilesGlobs("less"),languageOptions:{parser:C},name:"anolilab/formatter/less",rules:{"format/prettier":["error",_(a,{parser:"less"})]}}),e.html&&f.push({files:n.getFilesGlobs("html"),languageOptions:{parser:C},name:"anolilab/formatter/html",rules:{"format/prettier":["error",_(a,{parser:"html"})]}}),e.xml&&f.push({files:n.getFilesGlobs("xml"),languageOptions:{parser:C},name:"anolilab/formatter/xml",rules:{"format/prettier":["error",_({...i,...a},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.svg&&f.push({files:n.getFilesGlobs("svg"),languageOptions:{parser:C},name:"anolilab/formatter/svg",rules:{"format/prettier":["error",_({...i,...a},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.markdown){const h=e.markdown===!0?"prettier":e.markdown;let x=[];typeof e.slidev=="boolean"&&e.slidev===!0?x=["**/slides.md"]:typeof e.slidev=="object"&&e.slidev.files&&(x=e.slidev.files),f.push({files:n.getFilesGlobs("markdown"),ignores:x,languageOptions:{parser:C},name:"anolilab/formatter/markdown",rules:{[`format/${h}`]:["error",h==="prettier"?_(a,{embeddedLanguageFormatting:"off",parser:"markdown"}):{...p,language:"markdown"}]}}),e.slidev&&f.push({files:x,languageOptions:{parser:C},name:"anolilab/formatter/slidev",rules:{"format/prettier":["error",_(a,{embeddedLanguageFormatting:"off",parser:"slidev",plugins:["prettier-plugin-slidev"]})]}})}return e.astro&&f.push({files:n.getFilesGlobs("astro"),languageOptions:{parser:C},name:"anolilab/formatter/astro",rules:{"format/prettier":["error",_(a,{parser:"astro",plugins:["prettier-plugin-astro"]})]}},{files:[...n.getFilesGlobs("astro"),...n.getFilesGlobs("astro_ts")],name:"anolilab/formatter/astro/disables",rules:{"@stylistic/arrow-parens":"off","@stylistic/block-spacing":"off","@stylistic/comma-dangle":"off","@stylistic/indent":"off","@stylistic/no-multi-spaces":"off","@stylistic/quotes":"off","@stylistic/semi":"off"}}),e.graphql&&f.push({files:n.getFilesGlobs("graphql"),languageOptions:{parser:C},name:"anolilab/formatter/graphql",rules:{"format/prettier":["error",_(a,{parser:"graphql"})]}}),f},"formatters"),He=n.createConfig("html",async(e,r)=>{const{files:o=r,overrides:s,prettier:t,stylistic:a=!0}=e,{indent:i=4}=typeof a=="boolean"?{}:a,p=await c(import("eslint-plugin-html"));return[{files:o,name:"anolilab/html/setup",plugins:{html:p},rules:{"@html-eslint/indent":["error",i],"capitalized-comments":"off","spaced-comment":"off",...t?{"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"}:{},...s},settings:{"html/indent":`+${i}`,"html/report-bad-indent":"error",...t?{"html/report-bad-indent":"off"}:{}}}]}),Qe=n.createConfig("all",async(e,r)=>{const{files:o=r,overrides:s,packageJson:t,stylistic:a,tsconfigPath:i}=e,p=await c(import("eslint-plugin-import-x")),f=[{name:"anolilab/imports/setup",plugins:{import:p}},{files:o,name:"anolilab/imports/rules",rules:{"import/consistent-type-specifier-style":["error","prefer-top-level"],"import/default":"off","import/dynamic-import-chunkname":["off",{importFunctions:[],webpackChunknameFormat:"[0-9a-zA-Z-_/.]+"}],"import/export":"error","import/exports-last":"error","import/extensions":["error","ignorePackages",{checkTypeImports:i!==void 0,ignorePackages:!0,pattern:{...t.type==="module"?{cjs:"always",js:"always",json:"always",jsx:"always",mjs:"always"}:{cjs:"never",js:"never",json:"always",jsx:"never",mjs:"never"}}}],"import/first":"error","import/group-exports":"off","import/imports-first":"off","import/max-dependencies":["off",{max:10}],"import/named":"error","import/namespace":"off",...a?{"import/newline-after-import":["error",{count:1}]}:{},"import/no-absolute-path":"error","import/no-amd":"error","import/no-anonymous-default-export":["off",{allowAnonymousClass:!1,allowAnonymousFunction:!1,allowArray:!1,allowArrowFunction:!1,allowLiteral:!1,allowObject:!1}],"import/no-commonjs":t.type==="module"?["error",{allowPrimitiveModules:!0}]:"off","import/no-cycle":["error",{maxDepth:"∞"}],"import/no-default-export":"off","import/no-deprecated":"off","import/no-duplicates":"error","import/no-dynamic-require":"error","import/no-empty-named-blocks":"error","import/no-extraneous-dependencies":["error",{devDependencies:["test/**","tests/**","spec/**","**/fixture/**","**/__mocks__/**","test.{js,jsx}","test-*.{js,jsx}","**/*{.,_}{test,spec}.{js,jsx}","**/jest.config.cjs","**/jest.setup.js","**/vue.config.cjs","**/webpack.config.cjs","**/webpack.config.*.js","**/rollup.config.cjs","**/rollup.config.*.js","**/gulpfile.js","**/gulpfile.*.js","**/Gruntfile{,.js}","**/protractor.conf.js","**/protractor.conf.*.js","**/karma.conf.js","**/.eslintrc.js","**/.eslintrc.cjs","**/.eslintrc.mjs","**/eslint.config.js","**/eslint.config.mjs","**/eslint.config.cjs","**/vite.config.js","**/vite.config.ts","**/vitest.config.js","**/vitest.config.ts","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],optionalDependencies:!1}],"import/no-import-module-exports":[t.type==="module"?"off":"error",{exceptions:[]}],"import/no-internal-modules":["off",{allow:[]}],"import/no-mutable-exports":"error","import/no-named-as-default":"error","import/no-named-as-default-member":"error","import/no-named-default":"error","import/no-named-export":"off","import/no-namespace":"error","import/no-nodejs-modules":"off","import/no-relative-packages":"error","import/no-relative-parent-imports":"off","import/no-restricted-paths":"off","import/no-self-import":"error","import/no-unassigned-import":"off","import/no-unresolved":["error",{caseSensitive:!0,commonjs:!0}],"import/no-useless-path-segments":["error",{commonjs:!0,noUselessIndex:!1}],"import/no-webpack-loader-syntax":"error","import/order":"off","import/prefer-default-export":"error","import/unambiguous":"off",...s}},{files:n.getFilesGlobs("d.cjs"),name:"anolilab/imports/d.ts-rules",rules:{"import/no-duplicates":"off"}}];return m.hasPackageJsonAnyDependency(t,["react","react-dom"])&&f.push(p.flatConfigs.react),m.hasPackageJsonAnyDependency(t,["typescript"])&&f.push({files:n.getFilesGlobs("ts"),languageOptions:{ecmaVersion:"latest",parser:Oe,sourceType:"module"},name:"anolilab/import/ts-rules",rules:{"import/default":"off","import/export":"off","import/extensions":"off","import/named":"off","import/no-unresolved":"off"},settings:{"import/extensions":[...n.getFilesGlobs("js_and_ts"),...n.getFilesGlobs("jsx_and_tsx")].map(h=>h.replace("**/*","")),"import/external-module-folders":["node_modules","node_modules/@types"],"import/parsers":{"@typescript-eslint/parser":n.getFilesGlobs("ts").map(h=>h.replace("**/*",""))},...i?{"import/resolver":{node:!0,typescript:{alwaysTryTypes:!0,project:i}}}:{"import/resolver":{node:!0,typescript:!0}}}}),f}),Ye=n.createConfig("js",async e=>{const{packageJson:r}=e,o=await c(import("@eslint/js"));return[{languageOptions:{ecmaVersion:2022,globals:{...H.browser,...H.es2021,...H.node,document:"readonly",navigator:"readonly",window:"readonly",...r.type==="module"?{__dirname:"off",__filename:"off",exports:"off",require:"off"}:{__dirname:!0,__filename:!0,exports:!0,require:!0}},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},name:"anolilab/javascript/setup"},o.configs.recommended,{files:["**/*.cjs"],languageOptions:{globals:{__dirname:!0,__filename:!0,exports:!0,require:!0}}},{files:["**/*.mjs"],languageOptions:{globals:{__dirname:"off",__filename:"off",exports:"off",require:"off"}}}]}),Ze=n.createConfig("js",async(e,r)=>{const{files:o=r,jsx:s=!1,overrides:t={},packageJson:a,silent:i,stylistic:p=!0,typescript:f}=e,h=await c(import("eslint-plugin-jsdoc")),x=m.hasPackageJsonAnyDependency(a,["eslint-plugin-tsdoc"]);x&&!i&&console.info(`
2
- Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`);const k=["remarks","openapi"],F=["openapi"],v=[{name:"anolilab/jsdoc/setup",plugins:{jsdoc:h}},{files:o,name:"anolilab/jsdoc/js-rules",rules:{...h.configs["flat/recommended-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:F}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...p?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}];return f&&!x&&v.push({files:n.getFilesGlobs("ts"),name:"anolilab/jsdoc/ts-rules",rules:{...h.configs["flat/contents-typescript-error"].rules,...h.configs["flat/logical-typescript-error"].rules,...h.configs["flat/stylistic-typescript-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:F}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...p?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}),v});var er=Object.defineProperty,rr=j((e,r)=>er(e,"name",{value:r,configurable:!0}),"r$1");const sr=rr(async e=>{const{overrides:r,packageJson:o,prettier:s,silent:t,stylistic:a=!0}=e,{indent:i=4}=typeof a=="boolean"?{}:a,p=await c(import("eslint-plugin-jsonc")),f=m.hasPackageJsonAnyDependency(o,["sort-package-json"]);return f&&!t&&console.info(`
1
+ "use strict";var de=Object.create;var ee=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ye=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var j=(e,r)=>ee(e,"name",{value:r,configurable:!0});var he=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of me(r))!ge.call(e,t)&&t!==o&&ee(e,t,{get:()=>r[t],enumerable:!(s=ue(r,t))||s.enumerable});return e};var l=(e,r,o)=>(o=e!=null?de(ye(e)):{},he(r||!e||!e.__esModule?ee(o,"default",{value:e,enumerable:!0}):o,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("node:fs"),xe=require("node:path"),m=require("@visulima/package"),je=require("eslint-flat-config-utils"),ae=require("semver"),n=require("./packem_shared/getFilesGlobs-C5hZ7pGr.cjs"),we=require("@typescript-eslint/parser"),ve=require("globals"),ne=require("eslint-merge-processors"),ie=require("@eslint/compat"),ke=require("@visulima/tsconfig"),Pe=require("eslint-plugin-regexp"),Ce=require("confusing-browser-globals"),oe=j(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),Oe=oe(we),H=oe(ve),De=oe(Ce),U={"dot-notation":"off","no-empty-function":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-redeclare":"off","no-return-await":"off","no-throw-literal":"off","no-unused-expressions":"off",strict:"off"},_e=n.createConfig("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/best-practices/rules",rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],complexity:["off",11],"consistent-return":"error",curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-location":["error","property"],"dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","max-classes-per-file":["error",1],"no-alert":"error","no-caller":"error","no-case-declarations":"error","no-constructor-return":"error","no-div-regex":"off","no-else-return":["error",{allowElseIf:!1}],"no-empty-function":["error",{allow:["arrowFunctions","functions","methods"]}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eq-null":"off","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-fallthrough":"error","no-floating-decimal":"error","no-global-assign":["error",{exceptions:[]}],"no-implicit-coercion":["off",{allow:[],boolean:!1,number:!0,string:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","no-magic-numbers":["off",{detectObjects:!1,enforceConst:!0,ignore:[],ignoreArrayIndexes:!0}],"no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-native-reassign":"off","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":["error",{ignorePropertyModificationsFor:["acc","accumulator","e","ctx","context","req","request","res","response","$scope","staticContext"],props:!0}],"no-proto":"error","no-redeclare":"error","no-restricted-properties":["error",{message:"arguments.callee is deprecated",object:"arguments",property:"callee"},{message:"Please use Number.isFinite instead",object:"global",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"self",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"window",property:"isFinite"},{message:"Please use Number.isNaN instead",object:"global",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"self",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"window",property:"isNaN"},{message:"Please use Object.defineProperty instead.",property:"__defineGetter__"},{message:"Please use Object.defineProperty instead.",property:"__defineSetter__"},{message:"Use the exponentiation operator (**) instead.",object:"Math",property:"pow"},{message:"Use `Number.isNaN` instead.",object:"globalThis",property:"isNaN"},{message:"Use `Number.isFinite` instead.",object:"globalThis",property:"isFinite"},{message:"Use `Number.parseFloat` instead.",object:"globalThis",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"globalThis",property:"parseInt"},{message:"Use `Number.parseFloat` instead.",object:"window",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"window",property:"parseInt"},{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-return-assign":["error","always"],"no-return-await":"error","no-script-url":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-throw-literal":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}],"no-unused-labels":"error","no-useless-call":"off","no-useless-catch":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":"error","no-warning-comments":["off",{location:"start",terms:["todo","fixme","xxx","@todo"]}],"no-with":"error","prefer-named-capture-group":"off","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-regex-literals":"off",radix:"error","require-await":"off","require-unicode-regexp":"off","vars-on-top":"error","wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error"}},{files:n.getFilesGlobs("ts"),name:"anolilab/best-practices/ts-rules",rules:U}]}),Se={"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-new-native-nonconstructor":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]},Fe=n.createConfig("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/errors/rules",rules:Se},{files:n.getFilesGlobs("ts"),name:"anolilab/errors/ts-rules",rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off"}}]});var qe=Object.defineProperty,Ee=j((e,r)=>qe(e,"name",{value:r,configurable:!0}),"s$3");const le=Ee(e=>({"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"arrow-parens":["error","always"],"arrow-spacing":["error",{after:!0,before:!0}],"constructor-super":"error","generator-star-spacing":["error",{after:!0,before:!1}],"no-class-assign":"error","no-confusing-arrow":["error",{allowParens:!0}],"no-const-assign":"error","no-dupe-class-members":"error","no-duplicate-imports":"off","no-new-symbol":"error","no-restricted-exports":["error",{restrictDefaultExports:{defaultFrom:!1,direct:!1,named:!0,namedFrom:!1,namespaceFrom:!0},restrictedNamedExports:["then"]}],"no-restricted-imports":["error",{paths:[{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.isequal"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.uniqueId"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.mergewith"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.pick"},{name:"error"},{name:"domain"},{name:"freelist"},{name:"smalloc"},{name:"punycode"},{name:"sys"},{message:'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try "qs" as a package',name:"querystring"},{message:"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors",name:"colors"},{message:"node v10.12 mkdir supports recursive option",name:"mkdirp"},{message:'Please use "@faker-js/faker" as a replacement',name:"faker"},{message:"Please use Object.assign or spread { ...obj }",name:"xtend"},{message:"Please use Object.assign or spread { ...obj }",name:"object-assign"},{message:"Please use Object.assign or spread { ...obj }",name:"extend-shallow"},{message:"node supports recursive option now",name:"rimraf"},{message:'just use "".padStart() and "".padEnd()',name:"pad-left"},{message:'just use "".padStart() and "".padEnd()',name:"pad-right"},{message:'just use "".padStart() and "".padEnd()',name:"left-pad"},{message:'just use "".padStart() and "".padEnd()',name:"right-pad"},{message:'just use "".padStart() and "".padEnd()',name:"pad"},{name:"safe-buffer"},{name:"safer-buffer"},{message:"just use [].flat() or some other polyfill",name:"array-flatten"},{message:"Been deprecated",name:"request"},{message:"use async/await instead",name:"co"},{message:"Please use TextDecoder instead",name:"windows-1252"},{message:"Please use TextDecoder instead",name:"string_decoder"},{message:"Please use array.prototype.flatMap instead",name:"concat-map"},{name:"buffer-alloc"}],patterns:["lodash.*"]}],"no-this-before-super":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreExport:!1,ignoreImport:!1}],"no-var":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":e?"off":["error",{destructuring:"any",ignoreReadBeforeAssign:!0}],"prefer-destructuring":["error",{AssignmentExpression:{array:!0,object:!1},VariableDeclarator:{array:!1,object:!0}},{enforceForRenamedProperties:!1}],"prefer-numeric-literals":"error","prefer-reflect":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","require-yield":"error","rest-spread-spacing":["error","never"],"sort-imports":["off",{ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","template-curly-spacing":"error","yield-star-spacing":["error","after"]}),"es6Rules"),Ae=n.createConfig("all",async(e,r)=>{const{files:o=r,isInEditor:s=!1}=e;return[{files:o,languageOptions:{parserOptions:{ecmaFeatures:{generators:!1,objectLiteralDuplicateProperties:!1},ecmaVersion:6,sourceType:"module"}},name:"anolilab/es6/rules",rules:le(s)},{files:n.getFilesGlobs("ts"),name:"anolilab/es6/ts-rules",rules:{"constructor-super":"off","no-const-assign":"off","no-dupe-class-members":"off","no-new-symbol":"off","no-this-before-super":"off","no-useless-constructor":"off"}}]});var Ie=Object.defineProperty,Ne=j((e,r)=>Ie(e,"name",{value:r,configurable:!0}),"t$2");const Te=Ne(async(e=[])=>[{ignores:["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/.npmignore","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts",...e],name:"anolilab/ignores"}],"ignores");var Je=Object.defineProperty,$e=j((e,r)=>Je(e,"name",{value:r,configurable:!0}),"a$1");const c=$e(async e=>{const r=await e;return r.default||r},"interopDefault"),Ue=n.createConfig("all",async(e,r)=>{const{files:o=r,lessOpinionated:s=!1,overrides:t,packageJson:a}=e,i=await c(import("eslint-plugin-antfu"));return[{files:o,name:"anolilab/antfu",plugins:{antfu:i},rules:{"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-import-dist":"error","antfu/no-import-node-modules-by-path":"error","antfu/no-ts-export-equal":m.hasPackageJsonAnyDependency(a,["typescript"])?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off",...s?{curly:["error","all"]}:{"antfu/curly":"error","antfu/if-newline":"error"},...t}}]}),Le=n.createConfig("astro",async(e,r)=>{const{files:o=r,overrides:s={},stylistic:t=!0}=e,[a,i,p]=await Promise.all([c(import("eslint-plugin-astro")),c(import("astro-eslint-parser")),c(import("@typescript-eslint/parser"))]);return[{name:"anolilab/astro/setup",plugins:{astro:a}},{files:o,languageOptions:{globals:a.environments.astro.globals,parser:i,parserOptions:{extraFileExtensions:[".astro"],parser:p},sourceType:"module"},name:"anolilab/astro/rules",processor:"astro/client-side-ts",rules:{"antfu/no-top-level-await":"off","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-set-html-directive":"off","astro/no-unused-define-vars-in-style":"error","astro/semi":"off","astro/valid-compile":"error",...t?{"@stylistic/indent":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/no-multiple-empty-lines":"off"}:{},...s}}]}),Me=n.createConfig("all",async(e,r)=>{const{files:o=r,overrides:s}=e,t=await c(import("@eslint-community/eslint-plugin-eslint-comments"));return[{files:o,name:"anolilab/eslint-comments/rules",plugins:{"eslint-comments":t},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-restricted-disable":"off","eslint-comments/no-unlimited-disable":"off","eslint-comments/no-unused-disable":"error","eslint-comments/no-unused-enable":"error","eslint-comments/no-use":"off","eslint-comments/require-description":"off",...s}}]}),Re=n.createConfig("all",async(e,r)=>{const{files:o=r}=e,s=(await c(import("eslint-plugin-compat"))).configs["flat/recommended"];return s.files=o,[s]});var Ge=Object.defineProperty,ze=j((e,r)=>Ge(e,"name",{value:r,configurable:!0}),"r$2");const C={meta:{name:"parser-plain"},parseForESLint:ze(e=>({ast:{body:[],comments:[],loc:{end:e.length,start:0},range:[0,e.length],tokens:[],type:"Program"},scopeManager:void 0,services:{isPlain:!0},visitorKeys:{Program:[]}}),"parseForESLint")};var Ve=Object.defineProperty,Be=j((e,r)=>Ve(e,"name",{value:r,configurable:!0}),"o$1");const w=0,We=Be(async e=>{const{indent:r,jsx:o,overrides:s={},prettier:t,quotes:a,semi:i}={...ce,...e},p=await c(import("@stylistic/eslint-plugin")),f=p.configs.customize({indent:r,jsx:o,pluginName:"@stylistic",quotes:t?void 0:a,semi:t?!1:i});return[{name:"anolilab/stylistic/rules",plugins:{"@stylistic":p},rules:{...f.rules,"@stylistic/arrow-parens":"off","@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",enums:"always-multiline",exports:"always-multiline",functions:"always-multiline",generics:"always-multiline",imports:"always-multiline",objects:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error",{after:!0,before:!1}],"@stylistic/func-call-spacing":["error","never"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/indent":["error",r,{ArrayExpression:1,CallExpression:{arguments:1},flatTernaryExpressions:!1,FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ImportDeclaration:1,ObjectExpression:1,outerIIFEBody:1,SwitchCase:1,VariableDeclarator:1}],"@stylistic/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"@stylistic/keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"@stylistic/lines-around-comment":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@stylistic/member-delimiter-style":"error","@stylistic/no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":"error","@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:"directive"},{blankLine:"never",next:"directive",prev:"directive"},{blankLine:"always",next:"*",prev:["const","let","var"]},{blankLine:"any",next:["const","let","var"],prev:["const","let","var"]},{blankLine:"always",next:"return",prev:"*"},{blankLine:"always",next:["for","function","if","switch","try"],prev:"*"},{blankLine:"always",next:"*",prev:["for","function","if","switch","try"]}],"@stylistic/quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"@stylistic/space-infix-ops":"error","@stylistic/type-annotation-spacing":"error","@stylistic/yield-star-spacing":["error",{after:!0,before:!1}],...s,...t?{"@stylistic/array-bracket-newline":"off","@stylistic/array-bracket-spacing":"off","@stylistic/array-element-newline":"off","@stylistic/arrow-parens":"off","@stylistic/arrow-spacing":"off","@stylistic/block-spacing":"off","@stylistic/brace-style":"off","@stylistic/comma-dangle":"off","@stylistic/comma-spacing":"off","@stylistic/comma-style":"off","@stylistic/computed-property-spacing":"off","@stylistic/dot-location":"off","@stylistic/eol-last":"off","@stylistic/func-call-spacing":"off","@stylistic/function-call-argument-newline":"off","@stylistic/function-call-spacing":"off","@stylistic/function-paren-newline":"off","@stylistic/generator-star-spacing":"off","@stylistic/implicit-arrow-linebreak":"off","@stylistic/indent":"off","@stylistic/indent-binary-ops":"off","@stylistic/js/array-bracket-newline":"off","@stylistic/js/array-bracket-spacing":"off","@stylistic/js/array-element-newline":"off","@stylistic/js/arrow-parens":"off","@stylistic/js/arrow-spacing":"off","@stylistic/js/block-spacing":"off","@stylistic/js/brace-style":"off","@stylistic/js/comma-dangle":"off","@stylistic/js/comma-spacing":"off","@stylistic/js/comma-style":"off","@stylistic/js/computed-property-spacing":"off","@stylistic/js/dot-location":"off","@stylistic/js/eol-last":"off","@stylistic/js/func-call-spacing":"off","@stylistic/js/function-call-argument-newline":"off","@stylistic/js/function-call-spacing":"off","@stylistic/js/function-paren-newline":"off","@stylistic/js/generator-star-spacing":"off","@stylistic/js/implicit-arrow-linebreak":"off","@stylistic/js/indent":"off","@stylistic/js/jsx-quotes":"off","@stylistic/js/key-spacing":"off","@stylistic/js/keyword-spacing":"off","@stylistic/js/linebreak-style":"off","@stylistic/js/lines-around-comment":w,"@stylistic/js/max-len":w,"@stylistic/js/max-statements-per-line":"off","@stylistic/js/multiline-ternary":"off","@stylistic/js/new-parens":"off","@stylistic/js/newline-per-chained-call":"off","@stylistic/js/no-confusing-arrow":w,"@stylistic/js/no-extra-parens":"off","@stylistic/js/no-extra-semi":"off","@stylistic/js/no-floating-decimal":"off","@stylistic/js/no-mixed-operators":w,"@stylistic/js/no-mixed-spaces-and-tabs":"off","@stylistic/js/no-multi-spaces":"off","@stylistic/js/no-multiple-empty-lines":"off","@stylistic/js/no-tabs":w,"@stylistic/js/no-trailing-spaces":"off","@stylistic/js/no-whitespace-before-property":"off","@stylistic/js/nonblock-statement-body-position":"off","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","@stylistic/js/operator-linebreak":"off","@stylistic/js/padded-blocks":"off","@stylistic/js/quote-props":"off","@stylistic/js/quotes":w,"@stylistic/js/rest-spread-spacing":"off","@stylistic/js/semi":"off","@stylistic/js/semi-spacing":"off","@stylistic/js/semi-style":"off","@stylistic/js/space-before-blocks":"off","@stylistic/js/space-before-function-paren":"off","@stylistic/js/space-in-parens":"off","@stylistic/js/space-infix-ops":"off","@stylistic/js/space-unary-ops":"off","@stylistic/js/switch-colon-spacing":"off","@stylistic/js/template-curly-spacing":"off","@stylistic/js/template-tag-spacing":"off","@stylistic/js/wrap-iife":"off","@stylistic/js/wrap-regex":"off","@stylistic/js/yield-star-spacing":"off","@stylistic/jsx-child-element-spacing":"off","@stylistic/jsx-closing-bracket-location":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-curly-newline":"off","@stylistic/jsx-curly-spacing":"off","@stylistic/jsx-equals-spacing":"off","@stylistic/jsx-first-prop-new-line":"off","@stylistic/jsx-indent":"off","@stylistic/jsx-indent-props":"off","@stylistic/jsx-max-props-per-line":"off","@stylistic/jsx-newline":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/jsx-props-no-multi-spaces":"off","@stylistic/jsx-quotes":"off","@stylistic/jsx-tag-spacing":"off","@stylistic/jsx-wrap-multilines":"off","@stylistic/jsx/jsx-child-element-spacing":"off","@stylistic/jsx/jsx-closing-bracket-location":"off","@stylistic/jsx/jsx-closing-tag-location":"off","@stylistic/jsx/jsx-curly-newline":"off","@stylistic/jsx/jsx-curly-spacing":"off","@stylistic/jsx/jsx-equals-spacing":"off","@stylistic/jsx/jsx-first-prop-new-line":"off","@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-indent-props":"off","@stylistic/jsx/jsx-max-props-per-line":"off","@stylistic/key-spacing":"off","@stylistic/keyword-spacing":"off","@stylistic/linebreak-style":"off","@stylistic/lines-around-comment":w,"@stylistic/max-len":w,"@stylistic/max-statements-per-line":"off","@stylistic/member-delimiter-style":"off","@stylistic/multiline-ternary":"off","@stylistic/new-parens":"off","@stylistic/newline-per-chained-call":"off","@stylistic/no-confusing-arrow":w,"@stylistic/no-extra-parens":"off","@stylistic/no-extra-semi":"off","@stylistic/no-floating-decimal":"off","@stylistic/no-mixed-operators":w,"@stylistic/no-mixed-spaces-and-tabs":"off","@stylistic/no-multi-spaces":"off","@stylistic/no-multiple-empty-lines":"off","@stylistic/no-tabs":w,"@stylistic/no-trailing-spaces":"off","@stylistic/no-whitespace-before-property":"off","@stylistic/nonblock-statement-body-position":"off","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":"off","@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","@stylistic/operator-linebreak":"off","@stylistic/padded-blocks":"off","@stylistic/quote-props":"off","@stylistic/quotes":w,"@stylistic/rest-spread-spacing":"off","@stylistic/semi":"off","@stylistic/semi-spacing":"off","@stylistic/semi-style":"off","@stylistic/space-before-blocks":"off","@stylistic/space-before-function-paren":"off","@stylistic/space-in-parens":"off","@stylistic/space-infix-ops":"off","@stylistic/space-unary-ops":"off","@stylistic/switch-colon-spacing":"off","@stylistic/template-curly-spacing":"off","@stylistic/template-tag-spacing":"off","@stylistic/ts/block-spacing":"off","@stylistic/ts/brace-style":"off","@stylistic/ts/comma-dangle":"off","@stylistic/ts/comma-spacing":"off","@stylistic/ts/func-call-spacing":"off","@stylistic/ts/function-call-spacing":"off","@stylistic/ts/indent":"off","@stylistic/ts/key-spacing":"off","@stylistic/ts/keyword-spacing":"off","@stylistic/ts/lines-around-comment":w,"@stylistic/ts/member-delimiter-style":"off","@stylistic/ts/no-extra-parens":"off","@stylistic/ts/no-extra-semi":"off","@stylistic/ts/object-curly-spacing":"off","@stylistic/ts/quotes":w,"@stylistic/ts/semi":"off","@stylistic/ts/space-before-blocks":"off","@stylistic/ts/space-before-function-paren":"off","@stylistic/ts/space-infix-ops":"off","@stylistic/ts/type-annotation-spacing":"off","@stylistic/type-annotation-spacing":"off","@stylistic/type-generic-spacing":"off","@stylistic/type-named-tuple-spacing":"off","@stylistic/wrap-iife":"off","@stylistic/wrap-regex":"off","@stylistic/yield-star-spacing":"off"}:{}}}]},"stylistic"),ce={indent:4,jsx:!0,quotes:"double",semi:!0};var Xe=Object.defineProperty,pe=j((e,r)=>Xe(e,"name",{value:r,configurable:!0}),"p$2");const _=pe((e,r={})=>({...e,...r,plugins:[...r.plugins||[],...e.plugins||[]]}),"mergePrettierOptions"),Ke=pe(async(e,r)=>{if(e.slidev&&e.markdown!==!0&&e.markdown!=="prettier")throw new Error("`slidev` option only works when `markdown` is enabled with `prettier`");const{indent:o,quotes:s,semi:t}={...ce,...r},a=Object.assign({endOfLine:"auto",printWidth:120,semi:t,singleQuote:s==="single",tabWidth:typeof o=="number"?o:2,trailingComma:"all",useTabs:o==="tab"},e.prettierOptions||{}),i={xmlQuoteAttributes:"double",xmlSelfClosingSpace:!0,xmlSortAttributesByKey:!1,xmlWhitespaceSensitivity:"ignore"},p={indentWidth:typeof o=="number"?o:2,quoteStyle:s==="single"?"preferSingle":"preferDouble",useTabs:o==="tab",...e.dprintOptions},f=[{name:"anolilab/formatter/setup",plugins:{format:await c(import("eslint-plugin-format"))}}];if(e.css&&f.push({files:[...n.getFilesGlobs("css"),...n.getFilesGlobs("postcss")],languageOptions:{parser:C},name:"anolilab/formatter/css",rules:{"format/prettier":["error",_(a,{parser:"css"})]}},{files:n.getFilesGlobs("scss"),languageOptions:{parser:C},name:"anolilab/formatter/scss",rules:{"format/prettier":["error",_(a,{parser:"scss"})]}},{files:n.getFilesGlobs("less"),languageOptions:{parser:C},name:"anolilab/formatter/less",rules:{"format/prettier":["error",_(a,{parser:"less"})]}}),e.html&&f.push({files:n.getFilesGlobs("html"),languageOptions:{parser:C},name:"anolilab/formatter/html",rules:{"format/prettier":["error",_(a,{parser:"html"})]}}),e.xml&&f.push({files:n.getFilesGlobs("xml"),languageOptions:{parser:C},name:"anolilab/formatter/xml",rules:{"format/prettier":["error",_({...i,...a},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.svg&&f.push({files:n.getFilesGlobs("svg"),languageOptions:{parser:C},name:"anolilab/formatter/svg",rules:{"format/prettier":["error",_({...i,...a},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.markdown){const h=e.markdown===!0?"prettier":e.markdown;let x=[];typeof e.slidev=="boolean"&&e.slidev===!0?x=["**/slides.md"]:typeof e.slidev=="object"&&e.slidev.files&&(x=e.slidev.files),f.push({files:n.getFilesGlobs("markdown"),ignores:x,languageOptions:{parser:C},name:"anolilab/formatter/markdown",rules:{[`format/${h}`]:["error",h==="prettier"?_(a,{embeddedLanguageFormatting:"off",parser:"markdown"}):{...p,language:"markdown"}]}}),e.slidev&&f.push({files:x,languageOptions:{parser:C},name:"anolilab/formatter/slidev",rules:{"format/prettier":["error",_(a,{embeddedLanguageFormatting:"off",parser:"slidev",plugins:["prettier-plugin-slidev"]})]}})}return e.astro&&f.push({files:n.getFilesGlobs("astro"),languageOptions:{parser:C},name:"anolilab/formatter/astro",rules:{"format/prettier":["error",_(a,{parser:"astro",plugins:["prettier-plugin-astro"]})]}},{files:[...n.getFilesGlobs("astro"),...n.getFilesGlobs("astro_ts")],name:"anolilab/formatter/astro/disables",rules:{"@stylistic/arrow-parens":"off","@stylistic/block-spacing":"off","@stylistic/comma-dangle":"off","@stylistic/indent":"off","@stylistic/no-multi-spaces":"off","@stylistic/quotes":"off","@stylistic/semi":"off"}}),e.graphql&&f.push({files:n.getFilesGlobs("graphql"),languageOptions:{parser:C},name:"anolilab/formatter/graphql",rules:{"format/prettier":["error",_(a,{parser:"graphql"})]}}),f},"formatters"),He=n.createConfig("html",async(e,r)=>{const{files:o=r,overrides:s,prettier:t,stylistic:a=!0}=e,{indent:i=4}=typeof a=="boolean"?{}:a,p=await c(import("eslint-plugin-html"));return[{files:o,name:"anolilab/html/setup",plugins:{html:p},rules:{"@html-eslint/indent":["error",i],"capitalized-comments":"off","spaced-comment":"off",...t?{"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"}:{},...s},settings:{"html/indent":`+${i}`,"html/report-bad-indent":"error",...t?{"html/report-bad-indent":"off"}:{}}}]}),Qe=n.createConfig("all",async(e,r)=>{const{files:o=r,overrides:s,packageJson:t,stylistic:a,tsconfigPath:i}=e,p=await c(import("eslint-plugin-import-x")),f=[{name:"anolilab/imports/setup",plugins:{import:p}},{files:o,name:"anolilab/imports/rules",rules:{"import/consistent-type-specifier-style":["error","prefer-top-level"],"import/default":"off","import/dynamic-import-chunkname":["off",{importFunctions:[],webpackChunknameFormat:"[0-9a-zA-Z-_/.]+"}],"import/export":"error","import/exports-last":"error","import/extensions":["error","ignorePackages",{checkTypeImports:i!==void 0,ignorePackages:!0,pattern:{...t.type==="module"?{cjs:"always",js:"always",json:"always",jsx:"always",mjs:"always"}:{cjs:"never",js:"never",json:"always",jsx:"never",mjs:"never"}}}],"import/first":"error","import/group-exports":"off","import/imports-first":"off","import/max-dependencies":["off",{max:10}],"import/named":"error","import/namespace":"off",...a?{"import/newline-after-import":["error",{count:1}]}:{},"import/no-absolute-path":"error","import/no-amd":"error","import/no-anonymous-default-export":["off",{allowAnonymousClass:!1,allowAnonymousFunction:!1,allowArray:!1,allowArrowFunction:!1,allowLiteral:!1,allowObject:!1}],"import/no-commonjs":t.type==="module"?["error",{allowPrimitiveModules:!0}]:"off","import/no-cycle":["error",{maxDepth:"∞"}],"import/no-default-export":"off","import/no-deprecated":"off","import/no-duplicates":"error","import/no-dynamic-require":"error","import/no-empty-named-blocks":"error","import/no-extraneous-dependencies":["error",{devDependencies:["test/**","tests/**","spec/**","**/fixture/**","**/__mocks__/**","test.{js,jsx}","test-*.{js,jsx}","**/*{.,_}{test,spec}.{js,jsx}","**/jest.config.cjs","**/jest.setup.js","**/vue.config.cjs","**/webpack.config.cjs","**/webpack.config.*.js","**/rollup.config.cjs","**/rollup.config.*.js","**/gulpfile.js","**/gulpfile.*.js","**/Gruntfile{,.js}","**/protractor.conf.js","**/protractor.conf.*.js","**/karma.conf.js","**/.eslintrc.js","**/.eslintrc.cjs","**/.eslintrc.mjs","**/eslint.config.js","**/eslint.config.mjs","**/eslint.config.cjs","**/vite.config.js","**/vite.config.ts","**/vitest.config.js","**/vitest.config.ts","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],optionalDependencies:!1}],"import/no-import-module-exports":[t.type==="module"?"off":"error",{exceptions:[]}],"import/no-internal-modules":["off",{allow:[]}],"import/no-mutable-exports":"error","import/no-named-as-default":"error","import/no-named-as-default-member":"error","import/no-named-default":"error","import/no-named-export":"off","import/no-namespace":"error","import/no-nodejs-modules":"off","import/no-relative-packages":"error","import/no-relative-parent-imports":"off","import/no-restricted-paths":"off","import/no-self-import":"error","import/no-unassigned-import":"off","import/no-unresolved":["error",{caseSensitive:!0,commonjs:!0}],"import/no-useless-path-segments":["error",{commonjs:!0,noUselessIndex:!1}],"import/no-webpack-loader-syntax":"error","import/order":"off","import/prefer-default-export":"error","import/unambiguous":"off",...s}},{files:n.getFilesGlobs("types"),name:"anolilab/imports/d.ts-rules",rules:{"import/no-duplicates":"off"}}];return m.hasPackageJsonAnyDependency(t,["react","react-dom"])&&f.push(p.flatConfigs.react),m.hasPackageJsonAnyDependency(t,["typescript"])&&f.push({files:n.getFilesGlobs("ts"),languageOptions:{ecmaVersion:"latest",parser:Oe,sourceType:"module"},name:"anolilab/import/ts-rules",rules:{"import/default":"off","import/export":"off","import/extensions":"off","import/named":"off","import/no-unresolved":"off"},settings:{"import/extensions":[...n.getFilesGlobs("js_and_ts"),...n.getFilesGlobs("jsx_and_tsx")].map(h=>h.replace("**/*","")),"import/external-module-folders":["node_modules","node_modules/@types"],"import/parsers":{"@typescript-eslint/parser":n.getFilesGlobs("ts").map(h=>h.replace("**/*",""))},...i?{"import/resolver":{node:!0,typescript:{alwaysTryTypes:!0,project:i}}}:{"import/resolver":{node:!0,typescript:!0}}}}),f}),Ye=n.createConfig("js",async e=>{const{packageJson:r}=e,o=await c(import("@eslint/js"));return[{languageOptions:{ecmaVersion:2022,globals:{...H.browser,...H.es2021,...H.node,document:"readonly",navigator:"readonly",window:"readonly",...r.type==="module"?{__dirname:"off",__filename:"off",exports:"off",require:"off"}:{__dirname:!0,__filename:!0,exports:!0,require:!0}},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},name:"anolilab/javascript/setup"},o.configs.recommended,{files:["**/*.cjs"],languageOptions:{globals:{__dirname:!0,__filename:!0,exports:!0,require:!0}}},{files:["**/*.mjs"],languageOptions:{globals:{__dirname:"off",__filename:"off",exports:"off",require:"off"}}}]}),Ze=n.createConfig("js",async(e,r)=>{const{files:o=r,jsx:s=!1,overrides:t={},packageJson:a,silent:i,stylistic:p=!0,typescript:f}=e,h=await c(import("eslint-plugin-jsdoc")),x=m.hasPackageJsonAnyDependency(a,["eslint-plugin-tsdoc"]);x&&!i&&console.info(`
2
+ Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`);const k=["remarks","openapi","link"],F=["openapi"],v=[{name:"anolilab/jsdoc/setup",plugins:{jsdoc:h}},{files:o,name:"anolilab/jsdoc/js-rules",rules:{...h.configs["flat/recommended-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:F}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...p?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}];return f&&!x&&v.push({files:n.getFilesGlobs("ts"),name:"anolilab/jsdoc/ts-rules",rules:{...h.configs["flat/contents-typescript-error"].rules,...h.configs["flat/logical-typescript-error"].rules,...h.configs["flat/stylistic-typescript-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:F}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...p?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}),v});var er=Object.defineProperty,rr=j((e,r)=>er(e,"name",{value:r,configurable:!0}),"r$1");const sr=rr(async e=>{const{overrides:r,packageJson:o,prettier:s,silent:t,stylistic:a=!0}=e,{indent:i=4}=typeof a=="boolean"?{}:a,p=await c(import("eslint-plugin-jsonc")),f=m.hasPackageJsonAnyDependency(o,["sort-package-json"]);return f&&!t&&console.info(`
3
3
  @anolilab/eslint-config found "sort-package-json" package.
4
4
 
5
5
  Following rules are disabled: jsonc/sort-keys for all package.json files.
package/dist/index.d.cts CHANGED
@@ -16411,7 +16411,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16411
16411
  plugins?: Record<string, any>;
16412
16412
  };
16413
16413
 
16414
- type FileType = "all" | "astro_ts" | "astro" | "css" | "d.ts" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "vitest" | "xml" | "yaml";
16414
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16415
16415
  declare const getFilesGlobs: (fileType: FileType) => string[];
16416
16416
 
16417
16417
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
package/dist/index.d.mts CHANGED
@@ -16411,7 +16411,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16411
16411
  plugins?: Record<string, any>;
16412
16412
  };
16413
16413
 
16414
- type FileType = "all" | "astro_ts" | "astro" | "css" | "d.ts" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "vitest" | "xml" | "yaml";
16414
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16415
16415
  declare const getFilesGlobs: (fileType: FileType) => string[];
16416
16416
 
16417
16417
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
package/dist/index.d.ts CHANGED
@@ -16411,7 +16411,7 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16411
16411
  plugins?: Record<string, any>;
16412
16412
  };
16413
16413
 
16414
- type FileType = "all" | "astro_ts" | "astro" | "css" | "d.ts" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "vitest" | "xml" | "yaml";
16414
+ type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
16415
16415
  declare const getFilesGlobs: (fileType: FileType) => string[];
16416
16416
 
16417
16417
  type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- var ce=Object.defineProperty;var j=(e,r)=>ce(e,"name",{value:r,configurable:!0});import{readFileSync as pe}from"node:fs";import{join as fe}from"node:path";import{hasPackageJsonAnyDependency as y,parsePackageJson as de,ensurePackages as ue}from"@visulima/package";import{FlatConfigComposer as me}from"eslint-flat-config-utils";import{parse as oe}from"semver";import{createConfig as c,getFilesGlobs as f}from"./packem_shared/getFilesGlobs-BbIYwP6s.mjs";import ye from"@typescript-eslint/parser";import K from"globals";import{mergeProcessors as ge,processorPassThrough as he}from"eslint-merge-processors";import{fixupPluginRules as te}from"@eslint/compat";import{readTsConfig as be}from"@visulima/tsconfig";import{configs as xe}from"eslint-plugin-regexp";import je from"confusing-browser-globals";const U={"dot-notation":"off","no-empty-function":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-redeclare":"off","no-return-await":"off","no-throw-literal":"off","no-unused-expressions":"off",strict:"off"},we=c("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/best-practices/rules",rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],complexity:["off",11],"consistent-return":"error",curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-location":["error","property"],"dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","max-classes-per-file":["error",1],"no-alert":"error","no-caller":"error","no-case-declarations":"error","no-constructor-return":"error","no-div-regex":"off","no-else-return":["error",{allowElseIf:!1}],"no-empty-function":["error",{allow:["arrowFunctions","functions","methods"]}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eq-null":"off","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-fallthrough":"error","no-floating-decimal":"error","no-global-assign":["error",{exceptions:[]}],"no-implicit-coercion":["off",{allow:[],boolean:!1,number:!0,string:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","no-magic-numbers":["off",{detectObjects:!1,enforceConst:!0,ignore:[],ignoreArrayIndexes:!0}],"no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-native-reassign":"off","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":["error",{ignorePropertyModificationsFor:["acc","accumulator","e","ctx","context","req","request","res","response","$scope","staticContext"],props:!0}],"no-proto":"error","no-redeclare":"error","no-restricted-properties":["error",{message:"arguments.callee is deprecated",object:"arguments",property:"callee"},{message:"Please use Number.isFinite instead",object:"global",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"self",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"window",property:"isFinite"},{message:"Please use Number.isNaN instead",object:"global",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"self",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"window",property:"isNaN"},{message:"Please use Object.defineProperty instead.",property:"__defineGetter__"},{message:"Please use Object.defineProperty instead.",property:"__defineSetter__"},{message:"Use the exponentiation operator (**) instead.",object:"Math",property:"pow"},{message:"Use `Number.isNaN` instead.",object:"globalThis",property:"isNaN"},{message:"Use `Number.isFinite` instead.",object:"globalThis",property:"isFinite"},{message:"Use `Number.parseFloat` instead.",object:"globalThis",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"globalThis",property:"parseInt"},{message:"Use `Number.parseFloat` instead.",object:"window",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"window",property:"parseInt"},{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-return-assign":["error","always"],"no-return-await":"error","no-script-url":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-throw-literal":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}],"no-unused-labels":"error","no-useless-call":"off","no-useless-catch":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":"error","no-warning-comments":["off",{location:"start",terms:["todo","fixme","xxx","@todo"]}],"no-with":"error","prefer-named-capture-group":"off","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-regex-literals":"off",radix:"error","require-await":"off","require-unicode-regexp":"off","vars-on-top":"error","wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error"}},{files:f("ts"),name:"anolilab/best-practices/ts-rules",rules:U}]}),ve={"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-new-native-nonconstructor":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]},ke=c("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/errors/rules",rules:ve},{files:f("ts"),name:"anolilab/errors/ts-rules",rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off"}}]});var Oe=Object.defineProperty,Pe=j((e,r)=>Oe(e,"name",{value:r,configurable:!0}),"s$3");const ne=Pe(e=>({"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"arrow-parens":["error","always"],"arrow-spacing":["error",{after:!0,before:!0}],"constructor-super":"error","generator-star-spacing":["error",{after:!0,before:!1}],"no-class-assign":"error","no-confusing-arrow":["error",{allowParens:!0}],"no-const-assign":"error","no-dupe-class-members":"error","no-duplicate-imports":"off","no-new-symbol":"error","no-restricted-exports":["error",{restrictDefaultExports:{defaultFrom:!1,direct:!1,named:!0,namedFrom:!1,namespaceFrom:!0},restrictedNamedExports:["then"]}],"no-restricted-imports":["error",{paths:[{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.isequal"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.uniqueId"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.mergewith"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.pick"},{name:"error"},{name:"domain"},{name:"freelist"},{name:"smalloc"},{name:"punycode"},{name:"sys"},{message:'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try "qs" as a package',name:"querystring"},{message:"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors",name:"colors"},{message:"node v10.12 mkdir supports recursive option",name:"mkdirp"},{message:'Please use "@faker-js/faker" as a replacement',name:"faker"},{message:"Please use Object.assign or spread { ...obj }",name:"xtend"},{message:"Please use Object.assign or spread { ...obj }",name:"object-assign"},{message:"Please use Object.assign or spread { ...obj }",name:"extend-shallow"},{message:"node supports recursive option now",name:"rimraf"},{message:'just use "".padStart() and "".padEnd()',name:"pad-left"},{message:'just use "".padStart() and "".padEnd()',name:"pad-right"},{message:'just use "".padStart() and "".padEnd()',name:"left-pad"},{message:'just use "".padStart() and "".padEnd()',name:"right-pad"},{message:'just use "".padStart() and "".padEnd()',name:"pad"},{name:"safe-buffer"},{name:"safer-buffer"},{message:"just use [].flat() or some other polyfill",name:"array-flatten"},{message:"Been deprecated",name:"request"},{message:"use async/await instead",name:"co"},{message:"Please use TextDecoder instead",name:"windows-1252"},{message:"Please use TextDecoder instead",name:"string_decoder"},{message:"Please use array.prototype.flatMap instead",name:"concat-map"},{name:"buffer-alloc"}],patterns:["lodash.*"]}],"no-this-before-super":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreExport:!1,ignoreImport:!1}],"no-var":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":e?"off":["error",{destructuring:"any",ignoreReadBeforeAssign:!0}],"prefer-destructuring":["error",{AssignmentExpression:{array:!0,object:!1},VariableDeclarator:{array:!1,object:!0}},{enforceForRenamedProperties:!1}],"prefer-numeric-literals":"error","prefer-reflect":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","require-yield":"error","rest-spread-spacing":["error","never"],"sort-imports":["off",{ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","template-curly-spacing":"error","yield-star-spacing":["error","after"]}),"es6Rules"),Ce=c("all",async(e,r)=>{const{files:o=r,isInEditor:s=!1}=e;return[{files:o,languageOptions:{parserOptions:{ecmaFeatures:{generators:!1,objectLiteralDuplicateProperties:!1},ecmaVersion:6,sourceType:"module"}},name:"anolilab/es6/rules",rules:ne(s)},{files:f("ts"),name:"anolilab/es6/ts-rules",rules:{"constructor-super":"off","no-const-assign":"off","no-dupe-class-members":"off","no-new-symbol":"off","no-this-before-super":"off","no-useless-constructor":"off"}}]});var Se=Object.defineProperty,_e=j((e,r)=>Se(e,"name",{value:r,configurable:!0}),"t$2");const Ee=_e(async(e=[])=>[{ignores:["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/.npmignore","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts",...e],name:"anolilab/ignores"}],"ignores");var qe=Object.defineProperty,De=j((e,r)=>qe(e,"name",{value:r,configurable:!0}),"a$1");const i=De(async e=>{const r=await e;return r.default||r},"interopDefault"),Ie=c("all",async(e,r)=>{const{files:o=r,lessOpinionated:s=!1,overrides:t,packageJson:n}=e,a=await i(import("eslint-plugin-antfu"));return[{files:o,name:"anolilab/antfu",plugins:{antfu:a},rules:{"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-import-dist":"error","antfu/no-import-node-modules-by-path":"error","antfu/no-ts-export-equal":y(n,["typescript"])?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off",...s?{curly:["error","all"]}:{"antfu/curly":"error","antfu/if-newline":"error"},...t}}]}),Fe=c("astro",async(e,r)=>{const{files:o=r,overrides:s={},stylistic:t=!0}=e,[n,a,l]=await Promise.all([i(import("eslint-plugin-astro")),i(import("astro-eslint-parser")),i(import("@typescript-eslint/parser"))]);return[{name:"anolilab/astro/setup",plugins:{astro:n}},{files:o,languageOptions:{globals:n.environments.astro.globals,parser:a,parserOptions:{extraFileExtensions:[".astro"],parser:l},sourceType:"module"},name:"anolilab/astro/rules",processor:"astro/client-side-ts",rules:{"antfu/no-top-level-await":"off","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-set-html-directive":"off","astro/no-unused-define-vars-in-style":"error","astro/semi":"off","astro/valid-compile":"error",...t?{"@stylistic/indent":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/no-multiple-empty-lines":"off"}:{},...s}}]}),Ne=c("all",async(e,r)=>{const{files:o=r,overrides:s}=e,t=await i(import("@eslint-community/eslint-plugin-eslint-comments"));return[{files:o,name:"anolilab/eslint-comments/rules",plugins:{"eslint-comments":t},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-restricted-disable":"off","eslint-comments/no-unlimited-disable":"off","eslint-comments/no-unused-disable":"error","eslint-comments/no-unused-enable":"error","eslint-comments/no-use":"off","eslint-comments/require-description":"off",...s}}]}),Te=c("all",async(e,r)=>{const{files:o=r}=e,s=(await i(import("eslint-plugin-compat"))).configs["flat/recommended"];return s.files=o,[s]});var Ae=Object.defineProperty,$e=j((e,r)=>Ae(e,"name",{value:r,configurable:!0}),"r$2");const P={meta:{name:"parser-plain"},parseForESLint:$e(e=>({ast:{body:[],comments:[],loc:{end:e.length,start:0},range:[0,e.length],tokens:[],type:"Program"},scopeManager:void 0,services:{isPlain:!0},visitorKeys:{Program:[]}}),"parseForESLint")};var Le=Object.defineProperty,Ue=j((e,r)=>Le(e,"name",{value:r,configurable:!0}),"o$1");const w=0,Me=Ue(async e=>{const{indent:r,jsx:o,overrides:s={},prettier:t,quotes:n,semi:a}={...ae,...e},l=await i(import("@stylistic/eslint-plugin")),p=l.configs.customize({indent:r,jsx:o,pluginName:"@stylistic",quotes:t?void 0:n,semi:t?!1:a});return[{name:"anolilab/stylistic/rules",plugins:{"@stylistic":l},rules:{...p.rules,"@stylistic/arrow-parens":"off","@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",enums:"always-multiline",exports:"always-multiline",functions:"always-multiline",generics:"always-multiline",imports:"always-multiline",objects:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error",{after:!0,before:!1}],"@stylistic/func-call-spacing":["error","never"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/indent":["error",r,{ArrayExpression:1,CallExpression:{arguments:1},flatTernaryExpressions:!1,FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ImportDeclaration:1,ObjectExpression:1,outerIIFEBody:1,SwitchCase:1,VariableDeclarator:1}],"@stylistic/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"@stylistic/keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"@stylistic/lines-around-comment":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@stylistic/member-delimiter-style":"error","@stylistic/no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":"error","@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:"directive"},{blankLine:"never",next:"directive",prev:"directive"},{blankLine:"always",next:"*",prev:["const","let","var"]},{blankLine:"any",next:["const","let","var"],prev:["const","let","var"]},{blankLine:"always",next:"return",prev:"*"},{blankLine:"always",next:["for","function","if","switch","try"],prev:"*"},{blankLine:"always",next:"*",prev:["for","function","if","switch","try"]}],"@stylistic/quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"@stylistic/space-infix-ops":"error","@stylistic/type-annotation-spacing":"error","@stylistic/yield-star-spacing":["error",{after:!0,before:!1}],...s,...t?{"@stylistic/array-bracket-newline":"off","@stylistic/array-bracket-spacing":"off","@stylistic/array-element-newline":"off","@stylistic/arrow-parens":"off","@stylistic/arrow-spacing":"off","@stylistic/block-spacing":"off","@stylistic/brace-style":"off","@stylistic/comma-dangle":"off","@stylistic/comma-spacing":"off","@stylistic/comma-style":"off","@stylistic/computed-property-spacing":"off","@stylistic/dot-location":"off","@stylistic/eol-last":"off","@stylistic/func-call-spacing":"off","@stylistic/function-call-argument-newline":"off","@stylistic/function-call-spacing":"off","@stylistic/function-paren-newline":"off","@stylistic/generator-star-spacing":"off","@stylistic/implicit-arrow-linebreak":"off","@stylistic/indent":"off","@stylistic/indent-binary-ops":"off","@stylistic/js/array-bracket-newline":"off","@stylistic/js/array-bracket-spacing":"off","@stylistic/js/array-element-newline":"off","@stylistic/js/arrow-parens":"off","@stylistic/js/arrow-spacing":"off","@stylistic/js/block-spacing":"off","@stylistic/js/brace-style":"off","@stylistic/js/comma-dangle":"off","@stylistic/js/comma-spacing":"off","@stylistic/js/comma-style":"off","@stylistic/js/computed-property-spacing":"off","@stylistic/js/dot-location":"off","@stylistic/js/eol-last":"off","@stylistic/js/func-call-spacing":"off","@stylistic/js/function-call-argument-newline":"off","@stylistic/js/function-call-spacing":"off","@stylistic/js/function-paren-newline":"off","@stylistic/js/generator-star-spacing":"off","@stylistic/js/implicit-arrow-linebreak":"off","@stylistic/js/indent":"off","@stylistic/js/jsx-quotes":"off","@stylistic/js/key-spacing":"off","@stylistic/js/keyword-spacing":"off","@stylistic/js/linebreak-style":"off","@stylistic/js/lines-around-comment":w,"@stylistic/js/max-len":w,"@stylistic/js/max-statements-per-line":"off","@stylistic/js/multiline-ternary":"off","@stylistic/js/new-parens":"off","@stylistic/js/newline-per-chained-call":"off","@stylistic/js/no-confusing-arrow":w,"@stylistic/js/no-extra-parens":"off","@stylistic/js/no-extra-semi":"off","@stylistic/js/no-floating-decimal":"off","@stylistic/js/no-mixed-operators":w,"@stylistic/js/no-mixed-spaces-and-tabs":"off","@stylistic/js/no-multi-spaces":"off","@stylistic/js/no-multiple-empty-lines":"off","@stylistic/js/no-tabs":w,"@stylistic/js/no-trailing-spaces":"off","@stylistic/js/no-whitespace-before-property":"off","@stylistic/js/nonblock-statement-body-position":"off","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","@stylistic/js/operator-linebreak":"off","@stylistic/js/padded-blocks":"off","@stylistic/js/quote-props":"off","@stylistic/js/quotes":w,"@stylistic/js/rest-spread-spacing":"off","@stylistic/js/semi":"off","@stylistic/js/semi-spacing":"off","@stylistic/js/semi-style":"off","@stylistic/js/space-before-blocks":"off","@stylistic/js/space-before-function-paren":"off","@stylistic/js/space-in-parens":"off","@stylistic/js/space-infix-ops":"off","@stylistic/js/space-unary-ops":"off","@stylistic/js/switch-colon-spacing":"off","@stylistic/js/template-curly-spacing":"off","@stylistic/js/template-tag-spacing":"off","@stylistic/js/wrap-iife":"off","@stylistic/js/wrap-regex":"off","@stylistic/js/yield-star-spacing":"off","@stylistic/jsx-child-element-spacing":"off","@stylistic/jsx-closing-bracket-location":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-curly-newline":"off","@stylistic/jsx-curly-spacing":"off","@stylistic/jsx-equals-spacing":"off","@stylistic/jsx-first-prop-new-line":"off","@stylistic/jsx-indent":"off","@stylistic/jsx-indent-props":"off","@stylistic/jsx-max-props-per-line":"off","@stylistic/jsx-newline":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/jsx-props-no-multi-spaces":"off","@stylistic/jsx-quotes":"off","@stylistic/jsx-tag-spacing":"off","@stylistic/jsx-wrap-multilines":"off","@stylistic/jsx/jsx-child-element-spacing":"off","@stylistic/jsx/jsx-closing-bracket-location":"off","@stylistic/jsx/jsx-closing-tag-location":"off","@stylistic/jsx/jsx-curly-newline":"off","@stylistic/jsx/jsx-curly-spacing":"off","@stylistic/jsx/jsx-equals-spacing":"off","@stylistic/jsx/jsx-first-prop-new-line":"off","@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-indent-props":"off","@stylistic/jsx/jsx-max-props-per-line":"off","@stylistic/key-spacing":"off","@stylistic/keyword-spacing":"off","@stylistic/linebreak-style":"off","@stylistic/lines-around-comment":w,"@stylistic/max-len":w,"@stylistic/max-statements-per-line":"off","@stylistic/member-delimiter-style":"off","@stylistic/multiline-ternary":"off","@stylistic/new-parens":"off","@stylistic/newline-per-chained-call":"off","@stylistic/no-confusing-arrow":w,"@stylistic/no-extra-parens":"off","@stylistic/no-extra-semi":"off","@stylistic/no-floating-decimal":"off","@stylistic/no-mixed-operators":w,"@stylistic/no-mixed-spaces-and-tabs":"off","@stylistic/no-multi-spaces":"off","@stylistic/no-multiple-empty-lines":"off","@stylistic/no-tabs":w,"@stylistic/no-trailing-spaces":"off","@stylistic/no-whitespace-before-property":"off","@stylistic/nonblock-statement-body-position":"off","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":"off","@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","@stylistic/operator-linebreak":"off","@stylistic/padded-blocks":"off","@stylistic/quote-props":"off","@stylistic/quotes":w,"@stylistic/rest-spread-spacing":"off","@stylistic/semi":"off","@stylistic/semi-spacing":"off","@stylistic/semi-style":"off","@stylistic/space-before-blocks":"off","@stylistic/space-before-function-paren":"off","@stylistic/space-in-parens":"off","@stylistic/space-infix-ops":"off","@stylistic/space-unary-ops":"off","@stylistic/switch-colon-spacing":"off","@stylistic/template-curly-spacing":"off","@stylistic/template-tag-spacing":"off","@stylistic/ts/block-spacing":"off","@stylistic/ts/brace-style":"off","@stylistic/ts/comma-dangle":"off","@stylistic/ts/comma-spacing":"off","@stylistic/ts/func-call-spacing":"off","@stylistic/ts/function-call-spacing":"off","@stylistic/ts/indent":"off","@stylistic/ts/key-spacing":"off","@stylistic/ts/keyword-spacing":"off","@stylistic/ts/lines-around-comment":w,"@stylistic/ts/member-delimiter-style":"off","@stylistic/ts/no-extra-parens":"off","@stylistic/ts/no-extra-semi":"off","@stylistic/ts/object-curly-spacing":"off","@stylistic/ts/quotes":w,"@stylistic/ts/semi":"off","@stylistic/ts/space-before-blocks":"off","@stylistic/ts/space-before-function-paren":"off","@stylistic/ts/space-infix-ops":"off","@stylistic/ts/type-annotation-spacing":"off","@stylistic/type-annotation-spacing":"off","@stylistic/type-generic-spacing":"off","@stylistic/type-named-tuple-spacing":"off","@stylistic/wrap-iife":"off","@stylistic/wrap-regex":"off","@stylistic/yield-star-spacing":"off"}:{}}}]},"stylistic"),ae={indent:4,jsx:!0,quotes:"double",semi:!0};var Re=Object.defineProperty,ie=j((e,r)=>Re(e,"name",{value:r,configurable:!0}),"p$2");const _=ie((e,r={})=>({...e,...r,plugins:[...r.plugins||[],...e.plugins||[]]}),"mergePrettierOptions"),Je=ie(async(e,r)=>{if(e.slidev&&e.markdown!==!0&&e.markdown!=="prettier")throw new Error("`slidev` option only works when `markdown` is enabled with `prettier`");const{indent:o,quotes:s,semi:t}={...ae,...r},n=Object.assign({endOfLine:"auto",printWidth:120,semi:t,singleQuote:s==="single",tabWidth:typeof o=="number"?o:2,trailingComma:"all",useTabs:o==="tab"},e.prettierOptions||{}),a={xmlQuoteAttributes:"double",xmlSelfClosingSpace:!0,xmlSortAttributesByKey:!1,xmlWhitespaceSensitivity:"ignore"},l={indentWidth:typeof o=="number"?o:2,quoteStyle:s==="single"?"preferSingle":"preferDouble",useTabs:o==="tab",...e.dprintOptions},p=[{name:"anolilab/formatter/setup",plugins:{format:await i(import("eslint-plugin-format"))}}];if(e.css&&p.push({files:[...f("css"),...f("postcss")],languageOptions:{parser:P},name:"anolilab/formatter/css",rules:{"format/prettier":["error",_(n,{parser:"css"})]}},{files:f("scss"),languageOptions:{parser:P},name:"anolilab/formatter/scss",rules:{"format/prettier":["error",_(n,{parser:"scss"})]}},{files:f("less"),languageOptions:{parser:P},name:"anolilab/formatter/less",rules:{"format/prettier":["error",_(n,{parser:"less"})]}}),e.html&&p.push({files:f("html"),languageOptions:{parser:P},name:"anolilab/formatter/html",rules:{"format/prettier":["error",_(n,{parser:"html"})]}}),e.xml&&p.push({files:f("xml"),languageOptions:{parser:P},name:"anolilab/formatter/xml",rules:{"format/prettier":["error",_({...a,...n},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.svg&&p.push({files:f("svg"),languageOptions:{parser:P},name:"anolilab/formatter/svg",rules:{"format/prettier":["error",_({...a,...n},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.markdown){const h=e.markdown===!0?"prettier":e.markdown;let x=[];typeof e.slidev=="boolean"&&e.slidev===!0?x=["**/slides.md"]:typeof e.slidev=="object"&&e.slidev.files&&(x=e.slidev.files),p.push({files:f("markdown"),ignores:x,languageOptions:{parser:P},name:"anolilab/formatter/markdown",rules:{[`format/${h}`]:["error",h==="prettier"?_(n,{embeddedLanguageFormatting:"off",parser:"markdown"}):{...l,language:"markdown"}]}}),e.slidev&&p.push({files:x,languageOptions:{parser:P},name:"anolilab/formatter/slidev",rules:{"format/prettier":["error",_(n,{embeddedLanguageFormatting:"off",parser:"slidev",plugins:["prettier-plugin-slidev"]})]}})}return e.astro&&p.push({files:f("astro"),languageOptions:{parser:P},name:"anolilab/formatter/astro",rules:{"format/prettier":["error",_(n,{parser:"astro",plugins:["prettier-plugin-astro"]})]}},{files:[...f("astro"),...f("astro_ts")],name:"anolilab/formatter/astro/disables",rules:{"@stylistic/arrow-parens":"off","@stylistic/block-spacing":"off","@stylistic/comma-dangle":"off","@stylistic/indent":"off","@stylistic/no-multi-spaces":"off","@stylistic/quotes":"off","@stylistic/semi":"off"}}),e.graphql&&p.push({files:f("graphql"),languageOptions:{parser:P},name:"anolilab/formatter/graphql",rules:{"format/prettier":["error",_(n,{parser:"graphql"})]}}),p},"formatters"),ze=c("html",async(e,r)=>{const{files:o=r,overrides:s,prettier:t,stylistic:n=!0}=e,{indent:a=4}=typeof n=="boolean"?{}:n,l=await i(import("eslint-plugin-html"));return[{files:o,name:"anolilab/html/setup",plugins:{html:l},rules:{"@html-eslint/indent":["error",a],"capitalized-comments":"off","spaced-comment":"off",...t?{"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"}:{},...s},settings:{"html/indent":`+${a}`,"html/report-bad-indent":"error",...t?{"html/report-bad-indent":"off"}:{}}}]}),Ve=c("all",async(e,r)=>{const{files:o=r,overrides:s,packageJson:t,stylistic:n,tsconfigPath:a}=e,l=await i(import("eslint-plugin-import-x")),p=[{name:"anolilab/imports/setup",plugins:{import:l}},{files:o,name:"anolilab/imports/rules",rules:{"import/consistent-type-specifier-style":["error","prefer-top-level"],"import/default":"off","import/dynamic-import-chunkname":["off",{importFunctions:[],webpackChunknameFormat:"[0-9a-zA-Z-_/.]+"}],"import/export":"error","import/exports-last":"error","import/extensions":["error","ignorePackages",{checkTypeImports:a!==void 0,ignorePackages:!0,pattern:{...t.type==="module"?{cjs:"always",js:"always",json:"always",jsx:"always",mjs:"always"}:{cjs:"never",js:"never",json:"always",jsx:"never",mjs:"never"}}}],"import/first":"error","import/group-exports":"off","import/imports-first":"off","import/max-dependencies":["off",{max:10}],"import/named":"error","import/namespace":"off",...n?{"import/newline-after-import":["error",{count:1}]}:{},"import/no-absolute-path":"error","import/no-amd":"error","import/no-anonymous-default-export":["off",{allowAnonymousClass:!1,allowAnonymousFunction:!1,allowArray:!1,allowArrowFunction:!1,allowLiteral:!1,allowObject:!1}],"import/no-commonjs":t.type==="module"?["error",{allowPrimitiveModules:!0}]:"off","import/no-cycle":["error",{maxDepth:"∞"}],"import/no-default-export":"off","import/no-deprecated":"off","import/no-duplicates":"error","import/no-dynamic-require":"error","import/no-empty-named-blocks":"error","import/no-extraneous-dependencies":["error",{devDependencies:["test/**","tests/**","spec/**","**/fixture/**","**/__mocks__/**","test.{js,jsx}","test-*.{js,jsx}","**/*{.,_}{test,spec}.{js,jsx}","**/jest.config.cjs","**/jest.setup.js","**/vue.config.cjs","**/webpack.config.cjs","**/webpack.config.*.js","**/rollup.config.cjs","**/rollup.config.*.js","**/gulpfile.js","**/gulpfile.*.js","**/Gruntfile{,.js}","**/protractor.conf.js","**/protractor.conf.*.js","**/karma.conf.js","**/.eslintrc.js","**/.eslintrc.cjs","**/.eslintrc.mjs","**/eslint.config.js","**/eslint.config.mjs","**/eslint.config.cjs","**/vite.config.js","**/vite.config.ts","**/vitest.config.js","**/vitest.config.ts","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],optionalDependencies:!1}],"import/no-import-module-exports":[t.type==="module"?"off":"error",{exceptions:[]}],"import/no-internal-modules":["off",{allow:[]}],"import/no-mutable-exports":"error","import/no-named-as-default":"error","import/no-named-as-default-member":"error","import/no-named-default":"error","import/no-named-export":"off","import/no-namespace":"error","import/no-nodejs-modules":"off","import/no-relative-packages":"error","import/no-relative-parent-imports":"off","import/no-restricted-paths":"off","import/no-self-import":"error","import/no-unassigned-import":"off","import/no-unresolved":["error",{caseSensitive:!0,commonjs:!0}],"import/no-useless-path-segments":["error",{commonjs:!0,noUselessIndex:!1}],"import/no-webpack-loader-syntax":"error","import/order":"off","import/prefer-default-export":"error","import/unambiguous":"off",...s}},{files:f("d.mjs"),name:"anolilab/imports/d.ts-rules",rules:{"import/no-duplicates":"off"}}];return y(t,["react","react-dom"])&&p.push(l.flatConfigs.react),y(t,["typescript"])&&p.push({files:f("ts"),languageOptions:{ecmaVersion:"latest",parser:ye,sourceType:"module"},name:"anolilab/import/ts-rules",rules:{"import/default":"off","import/export":"off","import/extensions":"off","import/named":"off","import/no-unresolved":"off"},settings:{"import/extensions":[...f("js_and_ts"),...f("jsx_and_tsx")].map(h=>h.replace("**/*","")),"import/external-module-folders":["node_modules","node_modules/@types"],"import/parsers":{"@typescript-eslint/parser":f("ts").map(h=>h.replace("**/*",""))},...a?{"import/resolver":{node:!0,typescript:{alwaysTryTypes:!0,project:a}}}:{"import/resolver":{node:!0,typescript:!0}}}}),p}),Be=c("js",async e=>{const{packageJson:r}=e,o=await i(import("@eslint/js"));return[{languageOptions:{ecmaVersion:2022,globals:{...K.browser,...K.es2021,...K.node,document:"readonly",navigator:"readonly",window:"readonly",...r.type==="module"?{__dirname:"off",__filename:"off",exports:"off",require:"off"}:{__dirname:!0,__filename:!0,exports:!0,require:!0}},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},name:"anolilab/javascript/setup"},o.configs.recommended,{files:["**/*.cjs"],languageOptions:{globals:{__dirname:!0,__filename:!0,exports:!0,require:!0}}},{files:["**/*.mjs"],languageOptions:{globals:{__dirname:"off",__filename:"off",exports:"off",require:"off"}}}]}),We=c("js",async(e,r)=>{const{files:o=r,jsx:s=!1,overrides:t={},packageJson:n,silent:a,stylistic:l=!0,typescript:p}=e,h=await i(import("eslint-plugin-jsdoc")),x=y(n,["eslint-plugin-tsdoc"]);x&&!a&&console.info(`
2
- Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`);const k=["remarks","openapi"],q=["openapi"],v=[{name:"anolilab/jsdoc/setup",plugins:{jsdoc:h}},{files:o,name:"anolilab/jsdoc/js-rules",rules:{...h.configs["flat/recommended-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:q}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...l?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}];return p&&!x&&v.push({files:f("ts"),name:"anolilab/jsdoc/ts-rules",rules:{...h.configs["flat/contents-typescript-error"].rules,...h.configs["flat/logical-typescript-error"].rules,...h.configs["flat/stylistic-typescript-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:q}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...l?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}),v});var Xe=Object.defineProperty,Ge=j((e,r)=>Xe(e,"name",{value:r,configurable:!0}),"r$1");const Ke=Ge(async e=>{const{overrides:r,packageJson:o,prettier:s,silent:t,stylistic:n=!0}=e,{indent:a=4}=typeof n=="boolean"?{}:n,l=await i(import("eslint-plugin-jsonc")),p=y(o,["sort-package-json"]);return p&&!t&&console.info(`
1
+ var ce=Object.defineProperty;var j=(e,r)=>ce(e,"name",{value:r,configurable:!0});import{readFileSync as pe}from"node:fs";import{join as fe}from"node:path";import{hasPackageJsonAnyDependency as y,parsePackageJson as de,ensurePackages as ue}from"@visulima/package";import{FlatConfigComposer as me}from"eslint-flat-config-utils";import{parse as oe}from"semver";import{createConfig as c,getFilesGlobs as f}from"./packem_shared/getFilesGlobs-C_Ke827b.mjs";import ye from"@typescript-eslint/parser";import K from"globals";import{mergeProcessors as ge,processorPassThrough as he}from"eslint-merge-processors";import{fixupPluginRules as te}from"@eslint/compat";import{readTsConfig as be}from"@visulima/tsconfig";import{configs as xe}from"eslint-plugin-regexp";import je from"confusing-browser-globals";const U={"dot-notation":"off","no-empty-function":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-redeclare":"off","no-return-await":"off","no-throw-literal":"off","no-unused-expressions":"off",strict:"off"},we=c("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/best-practices/rules",rules:{"accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],complexity:["off",11],"consistent-return":"error",curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-location":["error","property"],"dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","max-classes-per-file":["error",1],"no-alert":"error","no-caller":"error","no-case-declarations":"error","no-constructor-return":"error","no-div-regex":"off","no-else-return":["error",{allowElseIf:!1}],"no-empty-function":["error",{allow:["arrowFunctions","functions","methods"]}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eq-null":"off","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-fallthrough":"error","no-floating-decimal":"error","no-global-assign":["error",{exceptions:[]}],"no-implicit-coercion":["off",{allow:[],boolean:!1,number:!0,string:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","no-magic-numbers":["off",{detectObjects:!1,enforceConst:!0,ignore:[],ignoreArrayIndexes:!0}],"no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-native-reassign":"off","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":["error",{ignorePropertyModificationsFor:["acc","accumulator","e","ctx","context","req","request","res","response","$scope","staticContext"],props:!0}],"no-proto":"error","no-redeclare":"error","no-restricted-properties":["error",{message:"arguments.callee is deprecated",object:"arguments",property:"callee"},{message:"Please use Number.isFinite instead",object:"global",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"self",property:"isFinite"},{message:"Please use Number.isFinite instead",object:"window",property:"isFinite"},{message:"Please use Number.isNaN instead",object:"global",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"self",property:"isNaN"},{message:"Please use Number.isNaN instead",object:"window",property:"isNaN"},{message:"Please use Object.defineProperty instead.",property:"__defineGetter__"},{message:"Please use Object.defineProperty instead.",property:"__defineSetter__"},{message:"Use the exponentiation operator (**) instead.",object:"Math",property:"pow"},{message:"Use `Number.isNaN` instead.",object:"globalThis",property:"isNaN"},{message:"Use `Number.isFinite` instead.",object:"globalThis",property:"isFinite"},{message:"Use `Number.parseFloat` instead.",object:"globalThis",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"globalThis",property:"parseInt"},{message:"Use `Number.parseFloat` instead.",object:"window",property:"parseFloat"},{message:"Use `Number.parseInt` instead.",object:"window",property:"parseInt"},{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-return-assign":["error","always"],"no-return-await":"error","no-script-url":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-throw-literal":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTaggedTemplates:!1,allowTernary:!1}],"no-unused-labels":"error","no-useless-call":"off","no-useless-catch":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":"error","no-warning-comments":["off",{location:"start",terms:["todo","fixme","xxx","@todo"]}],"no-with":"error","prefer-named-capture-group":"off","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-regex-literals":"off",radix:"error","require-await":"off","require-unicode-regexp":"off","vars-on-top":"error","wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error"}},{files:f("ts"),name:"anolilab/best-practices/ts-rules",rules:U}]}),ve={"for-direction":"error","getter-return":["error",{allowImplicit:!0}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":"warn","no-constant-condition":"warn","no-control-regex":"off","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":"error","no-empty-character-class":"error","no-ex-assign":"error","no-extra-boolean-cast":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"off","no-irregular-whitespace":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-negated-in-lhs":"off","no-new-native-nonconstructor":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-regex-spaces":"off","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-unexpected-multiline":"error","no-unreachable":"error","no-unreachable-loop":"off","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":"error","valid-jsdoc":"off","valid-typeof":["error",{requireStringLiterals:!0}]},ke=c("all",async(e,r)=>{const{files:o=r}=e;return[{files:o,name:"anolilab/errors/rules",rules:ve},{files:f("ts"),name:"anolilab/errors/ts-rules",rules:{"getter-return":"off","no-dupe-args":"off","no-dupe-keys":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-obj-calls":"off","no-unreachable":"off","no-unsafe-negation":"off","space-infix-ops":"off","valid-typeof":"off"}}]});var Oe=Object.defineProperty,Pe=j((e,r)=>Oe(e,"name",{value:r,configurable:!0}),"s$3");const ne=Pe(e=>({"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!0}],"arrow-parens":["error","always"],"arrow-spacing":["error",{after:!0,before:!0}],"constructor-super":"error","generator-star-spacing":["error",{after:!0,before:!1}],"no-class-assign":"error","no-confusing-arrow":["error",{allowParens:!0}],"no-const-assign":"error","no-dupe-class-members":"error","no-duplicate-imports":"off","no-new-symbol":"error","no-restricted-exports":["error",{restrictDefaultExports:{defaultFrom:!1,direct:!1,named:!0,namedFrom:!1,namespaceFrom:!0},restrictedNamedExports:["then"]}],"no-restricted-imports":["error",{paths:[{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.isequal"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.uniqueId"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.mergewith"},{message:"Lodash modularised (and lodash < 4.17.11) have CVE vulnerabilities. Please use tree-shakeable imports like lodash/xxx instead",name:"lodash.pick"},{name:"error"},{name:"domain"},{name:"freelist"},{name:"smalloc"},{name:"punycode"},{name:"sys"},{message:'Is legacy, npm version got deprecated, migrate to URLSearchParams as recommended or try "qs" as a package',name:"querystring"},{message:"Please use one of the following instead: chalk, kleur, ansi-colors, @colors/colors",name:"colors"},{message:"node v10.12 mkdir supports recursive option",name:"mkdirp"},{message:'Please use "@faker-js/faker" as a replacement',name:"faker"},{message:"Please use Object.assign or spread { ...obj }",name:"xtend"},{message:"Please use Object.assign or spread { ...obj }",name:"object-assign"},{message:"Please use Object.assign or spread { ...obj }",name:"extend-shallow"},{message:"node supports recursive option now",name:"rimraf"},{message:'just use "".padStart() and "".padEnd()',name:"pad-left"},{message:'just use "".padStart() and "".padEnd()',name:"pad-right"},{message:'just use "".padStart() and "".padEnd()',name:"left-pad"},{message:'just use "".padStart() and "".padEnd()',name:"right-pad"},{message:'just use "".padStart() and "".padEnd()',name:"pad"},{name:"safe-buffer"},{name:"safer-buffer"},{message:"just use [].flat() or some other polyfill",name:"array-flatten"},{message:"Been deprecated",name:"request"},{message:"use async/await instead",name:"co"},{message:"Please use TextDecoder instead",name:"windows-1252"},{message:"Please use TextDecoder instead",name:"string_decoder"},{message:"Please use array.prototype.flatMap instead",name:"concat-map"},{name:"buffer-alloc"}],patterns:["lodash.*"]}],"no-this-before-super":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreExport:!1,ignoreImport:!1}],"no-var":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":e?"off":["error",{destructuring:"any",ignoreReadBeforeAssign:!0}],"prefer-destructuring":["error",{AssignmentExpression:{array:!0,object:!1},VariableDeclarator:{array:!1,object:!0}},{enforceForRenamedProperties:!1}],"prefer-numeric-literals":"error","prefer-reflect":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","require-yield":"error","rest-spread-spacing":["error","never"],"sort-imports":["off",{ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","template-curly-spacing":"error","yield-star-spacing":["error","after"]}),"es6Rules"),Ce=c("all",async(e,r)=>{const{files:o=r,isInEditor:s=!1}=e;return[{files:o,languageOptions:{parserOptions:{ecmaFeatures:{generators:!1,objectLiteralDuplicateProperties:!1},ecmaVersion:6,sourceType:"module"}},name:"anolilab/es6/rules",rules:ne(s)},{files:f("ts"),name:"anolilab/es6/ts-rules",rules:{"constructor-super":"off","no-const-assign":"off","no-dupe-class-members":"off","no-new-symbol":"off","no-this-before-super":"off","no-useless-constructor":"off"}}]});var Se=Object.defineProperty,_e=j((e,r)=>Se(e,"name",{value:r,configurable:!0}),"t$2");const Ee=_e(async(e=[])=>[{ignores:["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/.npmignore","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts",...e],name:"anolilab/ignores"}],"ignores");var qe=Object.defineProperty,De=j((e,r)=>qe(e,"name",{value:r,configurable:!0}),"a$1");const i=De(async e=>{const r=await e;return r.default||r},"interopDefault"),Ie=c("all",async(e,r)=>{const{files:o=r,lessOpinionated:s=!1,overrides:t,packageJson:n}=e,a=await i(import("eslint-plugin-antfu"));return[{files:o,name:"anolilab/antfu",plugins:{antfu:a},rules:{"antfu/consistent-chaining":"error","antfu/consistent-list-newline":"error","antfu/if-newline":"error","antfu/import-dedupe":"error","antfu/no-import-dist":"error","antfu/no-import-node-modules-by-path":"error","antfu/no-ts-export-equal":y(n,["typescript"])?"error":"off","antfu/prefer-inline-type-import":"off","antfu/top-level-function":"off",...s?{curly:["error","all"]}:{"antfu/curly":"error","antfu/if-newline":"error"},...t}}]}),Fe=c("astro",async(e,r)=>{const{files:o=r,overrides:s={},stylistic:t=!0}=e,[n,a,l]=await Promise.all([i(import("eslint-plugin-astro")),i(import("astro-eslint-parser")),i(import("@typescript-eslint/parser"))]);return[{name:"anolilab/astro/setup",plugins:{astro:n}},{files:o,languageOptions:{globals:n.environments.astro.globals,parser:a,parserOptions:{extraFileExtensions:[".astro"],parser:l},sourceType:"module"},name:"anolilab/astro/rules",processor:"astro/client-side-ts",rules:{"antfu/no-top-level-await":"off","astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-set-html-directive":"off","astro/no-unused-define-vars-in-style":"error","astro/semi":"off","astro/valid-compile":"error",...t?{"@stylistic/indent":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/no-multiple-empty-lines":"off"}:{},...s}}]}),Ne=c("all",async(e,r)=>{const{files:o=r,overrides:s}=e,t=await i(import("@eslint-community/eslint-plugin-eslint-comments"));return[{files:o,name:"anolilab/eslint-comments/rules",plugins:{"eslint-comments":t},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-restricted-disable":"off","eslint-comments/no-unlimited-disable":"off","eslint-comments/no-unused-disable":"error","eslint-comments/no-unused-enable":"error","eslint-comments/no-use":"off","eslint-comments/require-description":"off",...s}}]}),Te=c("all",async(e,r)=>{const{files:o=r}=e,s=(await i(import("eslint-plugin-compat"))).configs["flat/recommended"];return s.files=o,[s]});var Ae=Object.defineProperty,$e=j((e,r)=>Ae(e,"name",{value:r,configurable:!0}),"r$2");const P={meta:{name:"parser-plain"},parseForESLint:$e(e=>({ast:{body:[],comments:[],loc:{end:e.length,start:0},range:[0,e.length],tokens:[],type:"Program"},scopeManager:void 0,services:{isPlain:!0},visitorKeys:{Program:[]}}),"parseForESLint")};var Le=Object.defineProperty,Ue=j((e,r)=>Le(e,"name",{value:r,configurable:!0}),"o$1");const w=0,Me=Ue(async e=>{const{indent:r,jsx:o,overrides:s={},prettier:t,quotes:n,semi:a}={...ae,...e},l=await i(import("@stylistic/eslint-plugin")),p=l.configs.customize({indent:r,jsx:o,pluginName:"@stylistic",quotes:t?void 0:n,semi:t?!1:a});return[{name:"anolilab/stylistic/rules",plugins:{"@stylistic":l},rules:{...p.rules,"@stylistic/arrow-parens":"off","@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",enums:"always-multiline",exports:"always-multiline",functions:"always-multiline",generics:"always-multiline",imports:"always-multiline",objects:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error",{after:!0,before:!1}],"@stylistic/func-call-spacing":["error","never"],"@stylistic/generator-star-spacing":["error",{after:!0,before:!1}],"@stylistic/indent":["error",r,{ArrayExpression:1,CallExpression:{arguments:1},flatTernaryExpressions:!1,FunctionDeclaration:{body:1,parameters:1},FunctionExpression:{body:1,parameters:1},ignoreComments:!1,ignoredNodes:["JSXElement","JSXElement > *","JSXAttribute","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXSpreadAttribute","JSXExpressionContainer","JSXOpeningElement","JSXClosingElement","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXText","JSXEmptyExpression","JSXSpreadChild"],ImportDeclaration:1,ObjectExpression:1,outerIIFEBody:1,SwitchCase:1,VariableDeclarator:1}],"@stylistic/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"@stylistic/keyword-spacing":["error",{after:!0,before:!0,overrides:{case:{after:!0},return:{after:!0},throw:{after:!0}}}],"@stylistic/lines-around-comment":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@stylistic/member-delimiter-style":"error","@stylistic/no-extra-parens":["error","all",{conditionalAssign:!0,enforceForArrowConditionals:!1,ignoreJSX:"all",nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":"error","@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:"directive"},{blankLine:"never",next:"directive",prev:"directive"},{blankLine:"always",next:"*",prev:["const","let","var"]},{blankLine:"any",next:["const","let","var"],prev:["const","let","var"]},{blankLine:"always",next:"return",prev:"*"},{blankLine:"always",next:["for","function","if","switch","try"],prev:"*"},{blankLine:"always",next:"*",prev:["for","function","if","switch","try"]}],"@stylistic/quote-props":["error","as-needed",{keywords:!1,numbers:!1,unnecessary:!0}],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",asyncArrow:"always",named:"never"}],"@stylistic/space-infix-ops":"error","@stylistic/type-annotation-spacing":"error","@stylistic/yield-star-spacing":["error",{after:!0,before:!1}],...s,...t?{"@stylistic/array-bracket-newline":"off","@stylistic/array-bracket-spacing":"off","@stylistic/array-element-newline":"off","@stylistic/arrow-parens":"off","@stylistic/arrow-spacing":"off","@stylistic/block-spacing":"off","@stylistic/brace-style":"off","@stylistic/comma-dangle":"off","@stylistic/comma-spacing":"off","@stylistic/comma-style":"off","@stylistic/computed-property-spacing":"off","@stylistic/dot-location":"off","@stylistic/eol-last":"off","@stylistic/func-call-spacing":"off","@stylistic/function-call-argument-newline":"off","@stylistic/function-call-spacing":"off","@stylistic/function-paren-newline":"off","@stylistic/generator-star-spacing":"off","@stylistic/implicit-arrow-linebreak":"off","@stylistic/indent":"off","@stylistic/indent-binary-ops":"off","@stylistic/js/array-bracket-newline":"off","@stylistic/js/array-bracket-spacing":"off","@stylistic/js/array-element-newline":"off","@stylistic/js/arrow-parens":"off","@stylistic/js/arrow-spacing":"off","@stylistic/js/block-spacing":"off","@stylistic/js/brace-style":"off","@stylistic/js/comma-dangle":"off","@stylistic/js/comma-spacing":"off","@stylistic/js/comma-style":"off","@stylistic/js/computed-property-spacing":"off","@stylistic/js/dot-location":"off","@stylistic/js/eol-last":"off","@stylistic/js/func-call-spacing":"off","@stylistic/js/function-call-argument-newline":"off","@stylistic/js/function-call-spacing":"off","@stylistic/js/function-paren-newline":"off","@stylistic/js/generator-star-spacing":"off","@stylistic/js/implicit-arrow-linebreak":"off","@stylistic/js/indent":"off","@stylistic/js/jsx-quotes":"off","@stylistic/js/key-spacing":"off","@stylistic/js/keyword-spacing":"off","@stylistic/js/linebreak-style":"off","@stylistic/js/lines-around-comment":w,"@stylistic/js/max-len":w,"@stylistic/js/max-statements-per-line":"off","@stylistic/js/multiline-ternary":"off","@stylistic/js/new-parens":"off","@stylistic/js/newline-per-chained-call":"off","@stylistic/js/no-confusing-arrow":w,"@stylistic/js/no-extra-parens":"off","@stylistic/js/no-extra-semi":"off","@stylistic/js/no-floating-decimal":"off","@stylistic/js/no-mixed-operators":w,"@stylistic/js/no-mixed-spaces-and-tabs":"off","@stylistic/js/no-multi-spaces":"off","@stylistic/js/no-multiple-empty-lines":"off","@stylistic/js/no-tabs":w,"@stylistic/js/no-trailing-spaces":"off","@stylistic/js/no-whitespace-before-property":"off","@stylistic/js/nonblock-statement-body-position":"off","@stylistic/js/object-curly-newline":"off","@stylistic/js/object-curly-spacing":"off","@stylistic/js/object-property-newline":"off","@stylistic/js/one-var-declaration-per-line":"off","@stylistic/js/operator-linebreak":"off","@stylistic/js/padded-blocks":"off","@stylistic/js/quote-props":"off","@stylistic/js/quotes":w,"@stylistic/js/rest-spread-spacing":"off","@stylistic/js/semi":"off","@stylistic/js/semi-spacing":"off","@stylistic/js/semi-style":"off","@stylistic/js/space-before-blocks":"off","@stylistic/js/space-before-function-paren":"off","@stylistic/js/space-in-parens":"off","@stylistic/js/space-infix-ops":"off","@stylistic/js/space-unary-ops":"off","@stylistic/js/switch-colon-spacing":"off","@stylistic/js/template-curly-spacing":"off","@stylistic/js/template-tag-spacing":"off","@stylistic/js/wrap-iife":"off","@stylistic/js/wrap-regex":"off","@stylistic/js/yield-star-spacing":"off","@stylistic/jsx-child-element-spacing":"off","@stylistic/jsx-closing-bracket-location":"off","@stylistic/jsx-closing-tag-location":"off","@stylistic/jsx-curly-newline":"off","@stylistic/jsx-curly-spacing":"off","@stylistic/jsx-equals-spacing":"off","@stylistic/jsx-first-prop-new-line":"off","@stylistic/jsx-indent":"off","@stylistic/jsx-indent-props":"off","@stylistic/jsx-max-props-per-line":"off","@stylistic/jsx-newline":"off","@stylistic/jsx-one-expression-per-line":"off","@stylistic/jsx-props-no-multi-spaces":"off","@stylistic/jsx-quotes":"off","@stylistic/jsx-tag-spacing":"off","@stylistic/jsx-wrap-multilines":"off","@stylistic/jsx/jsx-child-element-spacing":"off","@stylistic/jsx/jsx-closing-bracket-location":"off","@stylistic/jsx/jsx-closing-tag-location":"off","@stylistic/jsx/jsx-curly-newline":"off","@stylistic/jsx/jsx-curly-spacing":"off","@stylistic/jsx/jsx-equals-spacing":"off","@stylistic/jsx/jsx-first-prop-new-line":"off","@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-indent-props":"off","@stylistic/jsx/jsx-max-props-per-line":"off","@stylistic/key-spacing":"off","@stylistic/keyword-spacing":"off","@stylistic/linebreak-style":"off","@stylistic/lines-around-comment":w,"@stylistic/max-len":w,"@stylistic/max-statements-per-line":"off","@stylistic/member-delimiter-style":"off","@stylistic/multiline-ternary":"off","@stylistic/new-parens":"off","@stylistic/newline-per-chained-call":"off","@stylistic/no-confusing-arrow":w,"@stylistic/no-extra-parens":"off","@stylistic/no-extra-semi":"off","@stylistic/no-floating-decimal":"off","@stylistic/no-mixed-operators":w,"@stylistic/no-mixed-spaces-and-tabs":"off","@stylistic/no-multi-spaces":"off","@stylistic/no-multiple-empty-lines":"off","@stylistic/no-tabs":w,"@stylistic/no-trailing-spaces":"off","@stylistic/no-whitespace-before-property":"off","@stylistic/nonblock-statement-body-position":"off","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":"off","@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","@stylistic/operator-linebreak":"off","@stylistic/padded-blocks":"off","@stylistic/quote-props":"off","@stylistic/quotes":w,"@stylistic/rest-spread-spacing":"off","@stylistic/semi":"off","@stylistic/semi-spacing":"off","@stylistic/semi-style":"off","@stylistic/space-before-blocks":"off","@stylistic/space-before-function-paren":"off","@stylistic/space-in-parens":"off","@stylistic/space-infix-ops":"off","@stylistic/space-unary-ops":"off","@stylistic/switch-colon-spacing":"off","@stylistic/template-curly-spacing":"off","@stylistic/template-tag-spacing":"off","@stylistic/ts/block-spacing":"off","@stylistic/ts/brace-style":"off","@stylistic/ts/comma-dangle":"off","@stylistic/ts/comma-spacing":"off","@stylistic/ts/func-call-spacing":"off","@stylistic/ts/function-call-spacing":"off","@stylistic/ts/indent":"off","@stylistic/ts/key-spacing":"off","@stylistic/ts/keyword-spacing":"off","@stylistic/ts/lines-around-comment":w,"@stylistic/ts/member-delimiter-style":"off","@stylistic/ts/no-extra-parens":"off","@stylistic/ts/no-extra-semi":"off","@stylistic/ts/object-curly-spacing":"off","@stylistic/ts/quotes":w,"@stylistic/ts/semi":"off","@stylistic/ts/space-before-blocks":"off","@stylistic/ts/space-before-function-paren":"off","@stylistic/ts/space-infix-ops":"off","@stylistic/ts/type-annotation-spacing":"off","@stylistic/type-annotation-spacing":"off","@stylistic/type-generic-spacing":"off","@stylistic/type-named-tuple-spacing":"off","@stylistic/wrap-iife":"off","@stylistic/wrap-regex":"off","@stylistic/yield-star-spacing":"off"}:{}}}]},"stylistic"),ae={indent:4,jsx:!0,quotes:"double",semi:!0};var Re=Object.defineProperty,ie=j((e,r)=>Re(e,"name",{value:r,configurable:!0}),"p$2");const _=ie((e,r={})=>({...e,...r,plugins:[...r.plugins||[],...e.plugins||[]]}),"mergePrettierOptions"),Je=ie(async(e,r)=>{if(e.slidev&&e.markdown!==!0&&e.markdown!=="prettier")throw new Error("`slidev` option only works when `markdown` is enabled with `prettier`");const{indent:o,quotes:s,semi:t}={...ae,...r},n=Object.assign({endOfLine:"auto",printWidth:120,semi:t,singleQuote:s==="single",tabWidth:typeof o=="number"?o:2,trailingComma:"all",useTabs:o==="tab"},e.prettierOptions||{}),a={xmlQuoteAttributes:"double",xmlSelfClosingSpace:!0,xmlSortAttributesByKey:!1,xmlWhitespaceSensitivity:"ignore"},l={indentWidth:typeof o=="number"?o:2,quoteStyle:s==="single"?"preferSingle":"preferDouble",useTabs:o==="tab",...e.dprintOptions},p=[{name:"anolilab/formatter/setup",plugins:{format:await i(import("eslint-plugin-format"))}}];if(e.css&&p.push({files:[...f("css"),...f("postcss")],languageOptions:{parser:P},name:"anolilab/formatter/css",rules:{"format/prettier":["error",_(n,{parser:"css"})]}},{files:f("scss"),languageOptions:{parser:P},name:"anolilab/formatter/scss",rules:{"format/prettier":["error",_(n,{parser:"scss"})]}},{files:f("less"),languageOptions:{parser:P},name:"anolilab/formatter/less",rules:{"format/prettier":["error",_(n,{parser:"less"})]}}),e.html&&p.push({files:f("html"),languageOptions:{parser:P},name:"anolilab/formatter/html",rules:{"format/prettier":["error",_(n,{parser:"html"})]}}),e.xml&&p.push({files:f("xml"),languageOptions:{parser:P},name:"anolilab/formatter/xml",rules:{"format/prettier":["error",_({...a,...n},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.svg&&p.push({files:f("svg"),languageOptions:{parser:P},name:"anolilab/formatter/svg",rules:{"format/prettier":["error",_({...a,...n},{parser:"xml",plugins:["@prettier/plugin-xml"]})]}}),e.markdown){const h=e.markdown===!0?"prettier":e.markdown;let x=[];typeof e.slidev=="boolean"&&e.slidev===!0?x=["**/slides.md"]:typeof e.slidev=="object"&&e.slidev.files&&(x=e.slidev.files),p.push({files:f("markdown"),ignores:x,languageOptions:{parser:P},name:"anolilab/formatter/markdown",rules:{[`format/${h}`]:["error",h==="prettier"?_(n,{embeddedLanguageFormatting:"off",parser:"markdown"}):{...l,language:"markdown"}]}}),e.slidev&&p.push({files:x,languageOptions:{parser:P},name:"anolilab/formatter/slidev",rules:{"format/prettier":["error",_(n,{embeddedLanguageFormatting:"off",parser:"slidev",plugins:["prettier-plugin-slidev"]})]}})}return e.astro&&p.push({files:f("astro"),languageOptions:{parser:P},name:"anolilab/formatter/astro",rules:{"format/prettier":["error",_(n,{parser:"astro",plugins:["prettier-plugin-astro"]})]}},{files:[...f("astro"),...f("astro_ts")],name:"anolilab/formatter/astro/disables",rules:{"@stylistic/arrow-parens":"off","@stylistic/block-spacing":"off","@stylistic/comma-dangle":"off","@stylistic/indent":"off","@stylistic/no-multi-spaces":"off","@stylistic/quotes":"off","@stylistic/semi":"off"}}),e.graphql&&p.push({files:f("graphql"),languageOptions:{parser:P},name:"anolilab/formatter/graphql",rules:{"format/prettier":["error",_(n,{parser:"graphql"})]}}),p},"formatters"),ze=c("html",async(e,r)=>{const{files:o=r,overrides:s,prettier:t,stylistic:n=!0}=e,{indent:a=4}=typeof n=="boolean"?{}:n,l=await i(import("eslint-plugin-html"));return[{files:o,name:"anolilab/html/setup",plugins:{html:l},rules:{"@html-eslint/indent":["error",a],"capitalized-comments":"off","spaced-comment":"off",...t?{"@html-eslint/element-newline":"off","@html-eslint/indent":"off","@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/quotes":"off"}:{},...s},settings:{"html/indent":`+${a}`,"html/report-bad-indent":"error",...t?{"html/report-bad-indent":"off"}:{}}}]}),Ve=c("all",async(e,r)=>{const{files:o=r,overrides:s,packageJson:t,stylistic:n,tsconfigPath:a}=e,l=await i(import("eslint-plugin-import-x")),p=[{name:"anolilab/imports/setup",plugins:{import:l}},{files:o,name:"anolilab/imports/rules",rules:{"import/consistent-type-specifier-style":["error","prefer-top-level"],"import/default":"off","import/dynamic-import-chunkname":["off",{importFunctions:[],webpackChunknameFormat:"[0-9a-zA-Z-_/.]+"}],"import/export":"error","import/exports-last":"error","import/extensions":["error","ignorePackages",{checkTypeImports:a!==void 0,ignorePackages:!0,pattern:{...t.type==="module"?{cjs:"always",js:"always",json:"always",jsx:"always",mjs:"always"}:{cjs:"never",js:"never",json:"always",jsx:"never",mjs:"never"}}}],"import/first":"error","import/group-exports":"off","import/imports-first":"off","import/max-dependencies":["off",{max:10}],"import/named":"error","import/namespace":"off",...n?{"import/newline-after-import":["error",{count:1}]}:{},"import/no-absolute-path":"error","import/no-amd":"error","import/no-anonymous-default-export":["off",{allowAnonymousClass:!1,allowAnonymousFunction:!1,allowArray:!1,allowArrowFunction:!1,allowLiteral:!1,allowObject:!1}],"import/no-commonjs":t.type==="module"?["error",{allowPrimitiveModules:!0}]:"off","import/no-cycle":["error",{maxDepth:"∞"}],"import/no-default-export":"off","import/no-deprecated":"off","import/no-duplicates":"error","import/no-dynamic-require":"error","import/no-empty-named-blocks":"error","import/no-extraneous-dependencies":["error",{devDependencies:["test/**","tests/**","spec/**","**/fixture/**","**/__mocks__/**","test.{js,jsx}","test-*.{js,jsx}","**/*{.,_}{test,spec}.{js,jsx}","**/jest.config.cjs","**/jest.setup.js","**/vue.config.cjs","**/webpack.config.cjs","**/webpack.config.*.js","**/rollup.config.cjs","**/rollup.config.*.js","**/gulpfile.js","**/gulpfile.*.js","**/Gruntfile{,.js}","**/protractor.conf.js","**/protractor.conf.*.js","**/karma.conf.js","**/.eslintrc.js","**/.eslintrc.cjs","**/.eslintrc.mjs","**/eslint.config.js","**/eslint.config.mjs","**/eslint.config.cjs","**/vite.config.js","**/vite.config.ts","**/vitest.config.js","**/vitest.config.ts","**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],optionalDependencies:!1}],"import/no-import-module-exports":[t.type==="module"?"off":"error",{exceptions:[]}],"import/no-internal-modules":["off",{allow:[]}],"import/no-mutable-exports":"error","import/no-named-as-default":"error","import/no-named-as-default-member":"error","import/no-named-default":"error","import/no-named-export":"off","import/no-namespace":"error","import/no-nodejs-modules":"off","import/no-relative-packages":"error","import/no-relative-parent-imports":"off","import/no-restricted-paths":"off","import/no-self-import":"error","import/no-unassigned-import":"off","import/no-unresolved":["error",{caseSensitive:!0,commonjs:!0}],"import/no-useless-path-segments":["error",{commonjs:!0,noUselessIndex:!1}],"import/no-webpack-loader-syntax":"error","import/order":"off","import/prefer-default-export":"error","import/unambiguous":"off",...s}},{files:f("types"),name:"anolilab/imports/d.ts-rules",rules:{"import/no-duplicates":"off"}}];return y(t,["react","react-dom"])&&p.push(l.flatConfigs.react),y(t,["typescript"])&&p.push({files:f("ts"),languageOptions:{ecmaVersion:"latest",parser:ye,sourceType:"module"},name:"anolilab/import/ts-rules",rules:{"import/default":"off","import/export":"off","import/extensions":"off","import/named":"off","import/no-unresolved":"off"},settings:{"import/extensions":[...f("js_and_ts"),...f("jsx_and_tsx")].map(h=>h.replace("**/*","")),"import/external-module-folders":["node_modules","node_modules/@types"],"import/parsers":{"@typescript-eslint/parser":f("ts").map(h=>h.replace("**/*",""))},...a?{"import/resolver":{node:!0,typescript:{alwaysTryTypes:!0,project:a}}}:{"import/resolver":{node:!0,typescript:!0}}}}),p}),Be=c("js",async e=>{const{packageJson:r}=e,o=await i(import("@eslint/js"));return[{languageOptions:{ecmaVersion:2022,globals:{...K.browser,...K.es2021,...K.node,document:"readonly",navigator:"readonly",window:"readonly",...r.type==="module"?{__dirname:"off",__filename:"off",exports:"off",require:"off"}:{__dirname:!0,__filename:!0,exports:!0,require:!0}},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},name:"anolilab/javascript/setup"},o.configs.recommended,{files:["**/*.cjs"],languageOptions:{globals:{__dirname:!0,__filename:!0,exports:!0,require:!0}}},{files:["**/*.mjs"],languageOptions:{globals:{__dirname:"off",__filename:"off",exports:"off",require:"off"}}}]}),We=c("js",async(e,r)=>{const{files:o=r,jsx:s=!1,overrides:t={},packageJson:n,silent:a,stylistic:l=!0,typescript:p}=e,h=await i(import("eslint-plugin-jsdoc")),x=y(n,["eslint-plugin-tsdoc"]);x&&!a&&console.info(`
2
+ Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`);const k=["remarks","openapi","link"],q=["openapi"],v=[{name:"anolilab/jsdoc/setup",plugins:{jsdoc:h}},{files:o,name:"anolilab/jsdoc/js-rules",rules:{...h.configs["flat/recommended-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:q}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...l?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}];return p&&!x&&v.push({files:f("ts"),name:"anolilab/jsdoc/ts-rules",rules:{...h.configs["flat/contents-typescript-error"].rules,...h.configs["flat/logical-typescript-error"].rules,...h.configs["flat/stylistic-typescript-error"].rules,"jsdoc/check-indentation":["error",{excludeTags:q}],"jsdoc/check-tag-names":["error",{definedTags:k,jsxTags:s}],...t,...l?{"jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}:{}}}),v});var Xe=Object.defineProperty,Ge=j((e,r)=>Xe(e,"name",{value:r,configurable:!0}),"r$1");const Ke=Ge(async e=>{const{overrides:r,packageJson:o,prettier:s,silent:t,stylistic:n=!0}=e,{indent:a=4}=typeof n=="boolean"?{}:n,l=await i(import("eslint-plugin-jsonc")),p=y(o,["sort-package-json"]);return p&&!t&&console.info(`
3
3
  @anolilab/eslint-config found "sort-package-json" package.
4
4
 
5
5
  Following rules are disabled: jsonc/sort-keys for all package.json files.
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.defineProperty;var c=(s,e)=>l(s,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var d=Object.defineProperty,m=c((s,e)=>d(s,"name",{value:e,configurable:!0}),"e");const t=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],r=["**/*.ts","**/*.cts","**/*.mts"],n=["**/*.tsx","**/*.mtsx","**/*.ctsx"],a=["**/*.js","**/*.mjs","**/*.cjs"],o=["**/*.jsx","**/*.mjsx","**/*.cjsx"],u=m(s=>{switch(s){case"all":return[...a,...t,...r,...n,...o];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return a;case"js_and_ts":return[...a,...r];case"jsx_and_tsx":return[...o,...n];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...r,...t,...n];case"types":return t;case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},"getFilesGlobs"),i=m((s,e)=>async j=>await e(j,u(s)),"createConfig");exports.createConfig=i;exports.getFilesGlobs=u;
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var c=(s,t)=>u(s,"name",{value:t,configurable:!0});var d=Object.defineProperty,m=c((s,t)=>d(s,"name",{value:t,configurable:!0}),"e");const e=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],r=["**/*.ts","**/*.cts","**/*.mts"],n=["**/*.tsx","**/*.mtsx","**/*.ctsx"],a=["**/*.js","**/*.mjs","**/*.cjs"],o=["**/*.jsx","**/*.mjsx","**/*.cjsx"],l=m(s=>{switch(s){case"all":return[...a,...e,...r,...n,...o];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return a;case"js_and_ts":return[...a,...r];case"jsx_and_tsx":return[...o,...n];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...r,...e,...n];case"types":return e;case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},"getFilesGlobs"),w=m((s,t)=>async j=>await t(j,l(s)),"createConfig");export{w as createConfig,l as getFilesGlobs};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/eslint-config",
3
- "version": "16.1.1",
3
+ "version": "16.1.3",
4
4
  "description": "ESLint shareable config for the Anolilab JavaScript style guide.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -1 +0,0 @@
1
- var u=Object.defineProperty;var c=(s,t)=>u(s,"name",{value:t,configurable:!0});var d=Object.defineProperty,m=c((s,t)=>d(s,"name",{value:t,configurable:!0}),"e");const e=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],r=["**/*.ts","**/*.cts","**/*.mts"],n=["**/*.tsx","**/*.mtsx","**/*.ctsx"],a=["**/*.js","**/*.mjs","**/*.cjs"],o=["**/*.jsx","**/*.mjsx","**/*.cjsx"],l=m(s=>{switch(s){case"all":return[...a,...e,...r,...n,...o];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"d.ts":return e;case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return a;case"js_and_ts":return[...a,...r];case"jsx_and_tsx":return[...o,...n];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...r,...e,...n];case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},"getFilesGlobs"),w=m((s,t)=>async j=>await t(j,l(s)),"createConfig");export{w as createConfig,l as getFilesGlobs};
@@ -1 +0,0 @@
1
- "use strict";var d=Object.defineProperty;var c=(s,e)=>d(s,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var l=Object.defineProperty,m=c((s,e)=>l(s,"name",{value:e,configurable:!0}),"e");const t=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],r=["**/*.ts","**/*.cts","**/*.mts"],n=["**/*.tsx","**/*.mtsx","**/*.ctsx"],a=["**/*.js","**/*.mjs","**/*.cjs"],o=["**/*.jsx","**/*.mjsx","**/*.cjsx"],u=m(s=>{switch(s){case"all":return[...a,...t,...r,...n,...o];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"d.ts":return t;case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return a;case"js_and_ts":return[...a,...r];case"jsx_and_tsx":return[...o,...n];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...r,...t,...n];case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},"getFilesGlobs"),i=m((s,e)=>async j=>await e(j,u(s)),"createConfig");exports.createConfig=i;exports.getFilesGlobs=u;