@debbl/eslint-config 3.0.0 → 3.0.2
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +29 -29
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ae=Object.create;var v=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var le=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty;var ue=(e,o)=>{for(var t in o)v(e,t,{get:o[t],enumerable:!0})},ee=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of le(o))!me.call(e,i)&&i!==t&&v(e,i,{get:()=>o[i],enumerable:!(s=pe(o,i))||s.enumerable});return e};var n=(e,o,t)=>(t=e!=null?ae(ce(e)):{},ee(o||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e)),fe=e=>ee(v({},"__esModule",{value:!0}),e);var Oe={};ue(Oe,{GLOB_ALL_SRC:()=>ye,GLOB_CSS:()=>T,GLOB_EXCLUDE:()=>S,GLOB_HTML:()=>oe,GLOB_JS:()=>de,GLOB_JSON:()=>O,GLOB_JSON5:()=>h,GLOB_JSONC:()=>I,GLOB_JSX:()=>C,GLOB_LESS:()=>L,GLOB_MARKDOWN:()=>f,GLOB_MARKDOWN_CODE:()=>D,GLOB_MDX:()=>y,GLOB_POSTCSS:()=>_,GLOB_SCSS:()=>G,GLOB_SRC:()=>d,GLOB_SRC_EXT:()=>u,GLOB_STYLE:()=>re,GLOB_TESTS:()=>B,GLOB_TOML:()=>x,GLOB_TS:()=>ge,GLOB_TSX:()=>w,GLOB_VUE:()=>j,GLOB_YAML:()=>g,combine:()=>b,comments:()=>P,config:()=>Z,default:()=>we,ignores:()=>F,imports:()=>R,interopDefault:()=>r,javascript:()=>q,jsdoc:()=>M,jsonc:()=>A,markdown:()=>J,node:()=>U,perfectionist:()=>z,prettier:()=>Q,sortPackageJson:()=>N,sortTsconfig:()=>$,test:()=>K,toml:()=>H,typescript:()=>V,unicorn:()=>W,vue:()=>X,yml:()=>Y});module.exports=fe(Oe);async function P(){return[{name:"eslint:eslint-comments",plugins:{"eslint-comments":await r(import("eslint-plugin-eslint-comments"))},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-unlimited-disable":"error","eslint-comments/no-unused-enable":"error"}}]}var E=n(require("fs"),1),te=n(require("path"),1);var u="?([cm])[jt]s?(x)",d="**/*.?([cm])[jt]s?(x)",de="**/*.?([cm])js",C="**/*.?([cm])jsx",ge="**/*.?([cm])ts",w="**/*.?([cm])tsx",re="**/*.{c,le,sc}ss",T="**/*.css",_="**/*.{p,post}css",L="**/*.less",G="**/*.scss",O="**/*.json",h="**/*.json5",I="**/*.jsonc",f="**/*.md",y="**/*.mdx",D=`${f}/${d}`,j="**/*.vue",g="**/*.y?(a)ml",x="**/*.toml",oe="**/*.htm?(l)",B=[`**/__tests__/**/*.${u}`,`**/*.spec.${u}`,`**/*.test.${u}`,`**/*.bench.${u}`,`**/*.benchmark.${u}`],ye=[d,re,O,h,f,j,g,oe],S=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];var xe=/\r?\n/g,be=e=>e.split(xe),F=async e=>{let{enableGitignore:o=!0,files:t=[]}=e,s=[];if(o){let l=".gitignore";typeof o!="boolean"&&(l=o.ignorePath);let m=te.default.join(process.cwd(),l);E.default.existsSync(m)&&(s=be(E.default.readFileSync(m).toString()).filter(p=>!(p.startsWith("#")||p.length===0)).map(p=>p.startsWith("/")?p.slice(1):p))}let i=[...S,...s];return typeof t=="function"?i=t(i):i=[...i,...t],[{ignores:[...S,...i]}]};async function b(...e){return(await Promise.all(e)).flat()}async function r(e){let o=await e;return o.default||o}async function R(){return[{name:"eslint:imports",plugins:{import:await r(import("eslint-plugin-i"))},rules:{"import/first":"error","import/no-duplicates":"error","import/no-mutable-exports":"error","import/no-named-default":"error","import/no-self-import":"error","import/no-webpack-loader-syntax":"error","import/order":"error","import/newline-after-import":["error",{considerComments:!0,count:1}]}}]}var k=n(require("globals"),1);var q=async e=>{let{overrides:o={}}=e,t=await r(import("eslint-plugin-unused-imports"));return[{name:"eslint:javascript",languageOptions:{ecmaVersion:2022,globals:{...k.default.browser,...k.default.es2021,...k.default.node,document:"readonly",navigator:"readonly",window:"readonly"},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},plugins:{"unused-imports":t},rules:{"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":"error","block-scoped-var":"error","constructor-super":"error","default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-array-constructor":"error","no-async-promise-executor":"error","no-caller":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":["error",{allow:["warn","error"]}],"no-const-assign":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-empty-character-class":"error","no-empty-pattern":"error","no-eval":"error","no-ex-assign":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-implied-eval":"error","no-import-assign":"error","no-invalid-regexp":"error","no-invalid-this":"error","no-irregular-whitespace":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-symbol":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal":"error","no-octal-escape":"error","no-proto":"error","no-prototype-builtins":"error","no-redeclare":["error",{builtinGlobals:!1}],"no-regex-spaces":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement","TSEnumDeclaration[const=true]","TSExportAssignment"],"no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-throw-literal":"error","no-undef":"error","no-undef-init":"error","no-unexpected-multiline":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-vars":["error",{args:"none",caughtErrors:"none",ignoreRestSiblings:!0,vars:"all"}],"no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"no-useless-backreference":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-with":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-exponentiation-operator":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","sort-imports":["error",{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!0,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","unicode-bom":["error","never"],"unused-imports/no-unused-imports":"warn","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],"vars-on-top":"error",yoda:["error","never"],...o}},{name:"eslint:scripts-overrides",files:[`scripts/${d}`,`cli.${u}`],rules:{"no-console":"off"}}]};async function M(){return[{name:"eslint:jsdoc",plugins:{jsdoc:await r(import("eslint-plugin-jsdoc"))},rules:{"jsdoc/check-access":"warn","jsdoc/check-param-names":"warn","jsdoc/check-property-names":"warn","jsdoc/check-types":"warn","jsdoc/empty-tags":"warn","jsdoc/implements-on-classes":"warn","jsdoc/no-defaults":"warn","jsdoc/no-multi-asterisks":"warn","jsdoc/require-param-name":"warn","jsdoc/require-property":"warn","jsdoc/require-property-description":"warn","jsdoc/require-property-name":"warn","jsdoc/require-returns-check":"warn","jsdoc/require-returns-description":"warn","jsdoc/require-yields-check":"warn","jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}}]}var A=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-jsonc")),r(import("jsonc-eslint-parser"))]);return[{name:"eslint:jsonc:setup",plugins:{jsonc:t}},{name:"eslint:jsonc:rules",files:[O,h,I],languageOptions:{parser:s},rules:{"jsonc/no-bigint-literals":"error","jsonc/no-binary-expression":"error","jsonc/no-binary-numeric-literals":"error","jsonc/no-dupe-keys":"error","jsonc/no-escape-sequence-in-identifier":"error","jsonc/no-floating-decimal":"error","jsonc/no-hexadecimal-numeric-literals":"error","jsonc/no-infinity":"error","jsonc/no-multi-str":"error","jsonc/no-nan":"error","jsonc/no-number-props":"error","jsonc/no-numeric-separators":"error","jsonc/no-octal":"error","jsonc/no-octal-escape":"error","jsonc/no-octal-numeric-literals":"error","jsonc/no-parenthesized":"error","jsonc/no-plus-sign":"error","jsonc/no-regexp-literals":"error","jsonc/no-sparse-arrays":"error","jsonc/no-template-literals":"error","jsonc/no-undefined-value":"error","jsonc/no-unicode-codepoint-escapes":"error","jsonc/no-useless-escape":"error","jsonc/space-unary-ops":"error","jsonc/valid-json-number":"error","jsonc/vue-custom-block/no-parsing-error":"error","jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"jsonc/object-curly-newline":["error",{consistent:!0,multiline:!0}],"jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error",...o}}]};var J=async e=>{let{componentExts:o=[],overrides:t={}}=e,[s,i]=await Promise.all([r(import("eslint-plugin-mdx")),r(import("eslint-mdx"))]);return[{name:"eslint:markdown:setup",plugins:{mdx:s}},{name:"eslint:markdown:processor",files:[f,y],languageOptions:{ecmaVersion:"latest",parser:i,sourceType:"module"},processor:"mdx/remark",settings:{"mdx/code-blocks":!0}},{name:"eslint:markdown:rules",files:[D,...o.map(l=>`${f}/**/*.${l}`)],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{"no-alert":"off","no-console":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","node/prefer-global/process":"off","style/comma-dangle":"off","style/eol-last":"off","@typescript-eslint/consistent-type-imports":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":"off","@typescript-eslint/no-var-requires":"off","unicode-bom":"off","unused-imports/no-unused-imports":"off","unused-imports/no-unused-vars":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-for-in-array":"off","@typescript-eslint/no-implied-eval":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-throw-literal":"off","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/restrict-plus-operands":"off","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/unbound-method":"off",...t}}]};async function U(){return[{name:"eslint:node",plugins:{n:await r(import("eslint-plugin-n"))},rules:{"n/handle-callback-err":["error","^(err|error)$"],"n/no-deprecated-api":"error","n/no-exports-assign":"error","n/no-new-require":"error","n/no-path-concat":"error","n/prefer-global/buffer":["error","never"],"n/prefer-global/process":["error","never"],"n/process-exit-as-throw":"error"}}]}async function N(){return[{name:"eslint:sort-package-json",files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:{type:"asc"},pathPattern:"^(?:resolutions|overrides|pnpm.overrides)$"},{order:["types","import","require","default"],pathPattern:"^exports.*$"}]}}]}async function $(){return[{name:"eslint:sort-tsconfig",files:["**/tsconfig.json","**/tsconfig.*.json"],rules:{"jsonc/sort-keys":["error",{order:["extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","jsx","jsxFactory","jsxFragmentFactory","jsxImportSource","lib","moduleDetection","noLib","reactNamespace","useDefineForClassFields","emitDecoratorMetadata","experimentalDecorators","baseUrl","rootDir","rootDirs","customConditions","module","moduleResolution","moduleSuffixes","noResolve","paths","resolveJsonModule","resolvePackageJsonExports","resolvePackageJsonImports","typeRoots","types","allowArbitraryExtensions","allowImportingTsExtensions","allowUmdGlobalAccess","allowJs","checkJs","maxNodeModuleJsDepth","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","declaration","declarationDir","declarationMap","downlevelIteration","emitBOM","emitDeclarationOnly","importHelpers","importsNotUsedAsValues","inlineSourceMap","inlineSources","mapRoot","newLine","noEmit","noEmitHelpers","noEmitOnError","outDir","outFile","preserveConstEnums","preserveValueImports","removeComments","sourceMap","sourceRoot","stripInternal","allowSyntheticDefaultImports","esModuleInterop","forceConsistentCasingInFileNames","isolatedModules","preserveSymlinks","verbatimModuleSyntax","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]}var ne=n(require("process"),1);var ve={"dot-notation":"off","no-implied-eval":"off","no-throw-literal":"off","@typescript-eslint/await-thenable":"error","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-floating-promises":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":"error","@typescript-eslint/no-misused-promises":"error","@typescript-eslint/no-throw-literal":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/restrict-template-expressions":"error","@typescript-eslint/unbound-method":"error"},V=async e=>{let{overrides:o={},componentExts:t=[],parserOptions:s={},tsconfigPath:i}=e??{},[l,m]=await Promise.all([r(import("@typescript-eslint/eslint-plugin")),r(import("@typescript-eslint/parser"))]);return[{name:"eslint:typescript:setup",plugins:{"@typescript-eslint":l}},{name:"eslint:typescript:rules",files:[d,...t.map(p=>`**/*.${p}`)],languageOptions:{parser:m,parserOptions:{extraFileExtensions:t.map(p=>`.${p}`),sourceType:"module",...i?{project:[i],tsconfigRootDir:ne.default.cwd()}:{},...s}},rules:{...l.configs["eslint-recommended"].overrides[0].rules,...l.configs.strict.rules,"no-dupe-class-members":"off","no-invalid-this":"off","no-loss-of-precision":"off","no-redeclare":"off","no-use-before-define":"off","no-useless-constructor":"off","@typescript-eslint/ban-ts-comment":["error",{"ts-ignore":"allow-with-description"}],"@typescript-eslint/ban-types":["error",{types:{Function:!1}}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/consistent-type-imports":["error",{disallowTypeAnnotations:!1,prefer:"type-imports"}],"@typescript-eslint/no-dupe-class-members":"error","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-extraneous-class":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-this":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loss-of-precision":"error","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-redeclare":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"@typescript-eslint/no-useless-constructor":"off","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/triple-slash-reference":"off","@typescript-eslint/unified-signatures":"off",...i?ve:{},...o}},{name:"eslint:typescript:dts-overrides",files:["**/*.d.ts"],rules:{"eslint-comments/no-unlimited-disable":"off","import/no-duplicates":"off","no-restricted-syntax":"off","unused-imports/no-unused-vars":"off"}},{name:"eslint:typescript:tests-overrides",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"eslint:typescript:javascript-overrides",rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]};async function W(){return[{name:"eslint:unicorn",plugins:{unicorn:await r(import("eslint-plugin-unicorn"))},rules:{"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/no-instanceof-array":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/number-literal-case":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-includes":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-type-error":"error","unicorn/throw-new-error":"error"}}]}var X=async(e={})=>{let{overrides:o={},typescript:t}=e,[s,i]=await Promise.all([r(import("eslint-plugin-vue")),r(import("vue-eslint-parser"))]);return[{name:"eslint:vue:setup",plugins:{vue:s}},{name:"eslint:vue:rules",files:[j],languageOptions:{parser:i,parserOptions:{ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"],parser:t?await r(import("@typescript-eslint/parser")):null,sourceType:"module"}},processor:s.processors[".vue"],rules:{...s.configs.base.rules,...s.configs["vue3-essential"].rules,...s.configs["vue3-strongly-recommended"].rules,...s.configs["vue3-recommended"].rules,"node/prefer-global/process":"off","vue/block-order":["error",{order:["script","template","style"]}],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1}],"vue/component-options-name-casing":["error","PascalCase"],"vue/custom-event-name-casing":["error","camelCase"],"vue/define-macros-order":["error",{order:["defineOptions","defineProps","defineEmits","defineSlots"]}],"vue/dot-location":["error","property"],"vue/dot-notation":["error",{allowKeywords:!0}],"vue/eqeqeq":["error","smart"],"vue/html-indent":["error",2],"vue/html-quotes":["error","double"],"vue/max-attributes-per-line":"off","vue/multi-word-component-names":"off","vue/no-dupe-keys":"off","vue/no-empty-pattern":"error","vue/no-extra-parens":["error","functions"],"vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"error","vue/no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement"],"vue/no-restricted-v-bind":["error","/^v-/"],"vue/no-setup-props-reactivity-loss":"off","vue/no-sparse-arrays":"error","vue/no-unused-refs":"error","vue/no-useless-v-bind":"error","vue/no-v-html":"off","vue/object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"vue/prefer-separate-static-class":"error","vue/prefer-template":"error","vue/require-default-prop":"off","vue/require-prop-types":"off","vue/space-infix-ops":"error","vue/space-unary-ops":["error",{nonwords:!1,words:!0}],"vue/array-bracket-spacing":["error","never"],"vue/arrow-spacing":["error",{after:!0,before:!0}],"vue/block-spacing":["error","always"],"vue/block-tag-newline":["error",{multiline:"always",singleline:"always"}],"vue/brace-style":["error","stroustrup",{allowSingleLine:!0}],"vue/comma-dangle":["error","always-multiline"],"vue/comma-spacing":["error",{after:!0,before:!1}],"vue/comma-style":["error","last"],"vue/html-comment-content-spacing":["error","always",{exceptions:["-"]}],"vue/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"vue/keyword-spacing":["error",{after:!0,before:!0}],"vue/object-curly-newline":"off","vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"vue/operator-linebreak":["error","before"],"vue/padding-line-between-blocks":["error","always"],"vue/quote-props":["error","consistent-as-needed"],"vue/space-in-parens":["error","never"],"vue/template-curly-spacing":"error",...o}}]};var Y=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-yml")),r(import("yaml-eslint-parser"))]);return[{name:"eslint:yaml:setup",plugins:{yml:t}},{name:"eslint:yaml:rules",files:[g],languageOptions:{parser:s},rules:{...t.configs.standard.rules,...t.configs.prettier.rules,"yml/block-mapping":"error","yml/block-sequence":"error","yml/no-empty-key":"error","yml/no-empty-sequence-entry":"error","yml/no-irregular-whitespace":"error","yml/plain-scalar":"error","yml/vue-custom-block/no-parsing-error":"error","yml/spaced-comment":"error",...o}}]};var H=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-toml")),r(import("toml-eslint-parser"))]);return[{name:"eslint:toml:setup",plugins:{toml:t}},{name:"eslint:toml:rules",files:[x],languageOptions:{parser:s},rules:{"style/spaced-comment":"off","toml/comma-style":"error","toml/keys-order":"error","toml/no-space-dots":"error","toml/no-unreadable-number-separator":"error","toml/precision-of-fractional-seconds":"error","toml/precision-of-integer":"error","toml/tables-order":"error","toml/vue-custom-block/no-parsing-error":"error","toml/array-bracket-newline":"error","toml/array-bracket-spacing":"error","toml/array-element-newline":"error","toml/indent":["error",2],"toml/inline-table-curly-spacing":"error","toml/key-spacing":"error","toml/padding-line-between-pairs":"error","toml/padding-line-between-tables":"error","toml/quoted-keys":"error","toml/spaced-comment":"error","toml/table-bracket-spacing":"error",...o}}]};var K=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-vitest")),r(import("eslint-plugin-no-only-tests"))]);return[{name:"eslint:test:setup",plugins:{test:{...t,rules:{...t.rules,...s.rules}}}},{name:"eslint:test:rules",files:B,rules:{"test/consistent-test-it":["error",{fn:"it",withinDescribe:"it"}],"test/no-identical-title":"error","test/no-only-tests":"error","test/prefer-hooks-in-order":"error","test/prefer-lowercase-title":"error",...o}}]};async function z(){return[{name:"eslint:perfectionist",plugins:{perfectionist:await r(import("eslint-plugin-perfectionist"))}}]}var Q=async e=>{let[o,t,s]=await Promise.all([r(import("eslint-plugin-prettier")),r(import("eslint-config-prettier")),r(import("eslint-parser-plain"))]),i=[{name:"eslint:prettier:markdown",files:[f],parser:"markdown"},{name:"eslint:prettier:mdx",files:[y],parser:"mdx"},{name:"eslint:prettier:html",files:["**/*.html"],parser:"html"},{name:"eslint:prettier:css",files:[T,_],parser:"css"},{name:"eslint:prettier:scss",files:[G],parser:"scss"},{name:"eslint:prettier:less",files:[L],parser:"less"},{name:"eslint:prettier:yaml",files:[g],parser:"yaml"},{name:"eslint:prettier:graphql",files:["**/*.graphql"],parser:"graphql"}].map(l=>({name:l.name,files:l.files,languageOptions:{parser:s},rules:{"prettier/prettier":["warn",{quoteProps:"consistent",parser:l.parser,...e}]}}));return[{name:"eslint:prettier:setup",plugins:{prettier:o}},{name:"eslint:prettier:rules",ignores:[x],rules:{...t.rules,...o.configs.recommended.rules,"prettier/prettier":["warn",{quoteProps:"consistent",...e}]}},...i]};async function Ce(){let e=await r(import("@next/eslint-plugin-next"));return[{name:"eslint:next:setup",plugins:{"@next/next":e}},{name:"eslint:next:rules",files:[w,C],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...e.configs.recommended.rules,...e.configs["core-web-vitals"].rules}}]}var se=async e=>{let{next:o=!1,overrides:t={}}=e,[s,i]=await Promise.all([r(import("eslint-plugin-react")),r(import("eslint-plugin-react-hooks"))]),l=[{name:"eslint:react:setup",plugins:{react:s,"react-hooks":i}},{name:"eslint:react:rules",files:[w,C],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...s.configs.recommended.rules,...i.configs.recommended.rules,"jsx-quotes":["error","prefer-double"],"react/react-in-jsx-scope":"off","react/jsx-indent":[1,2],"react/jsx-indent-props":[1,2],"react/jsx-closing-bracket-location":[1,{selfClosing:"tag-aligned",nonEmpty:"tag-aligned"}],...t}}];return b(l,o?Ce():[])};async function ie(){let e=await r(import("eslint-plugin-tailwindcss"));return[{name:"eslint:tailwindcss",plugins:{tailwindcss:e},rules:{...e.configs.recommended.rules}}]}function c(e){return e?typeof e!="boolean"?e:{}:{}}function Z(e={}){let{ignores:o=!0,vue:t,react:s,typescript:i,tailwindcss:l,componentExts:m=[]}=e,p=[];return p.push(F(c(o)),q(e.javascript??{}),P(),U(),M(),R(),W(),z()),t&&m.push("vue"),i&&p.push(V({...typeof i!="boolean"?i:{},componentExts:m})),(e.test??!0)&&p.push(K(c(e.test))),t&&p.push(X({...c(e.vue),typescript:!!i})),s&&p.push(se(c(s))),(e.jsonc??!0)&&p.push(A(c(e.jsonc)),N(),$()),(e.yml??!0)&&p.push(Y(c(e.yml))),(e.toml??!0)&&p.push(H(c(e.toml))),(e.markdown??!0)&&p.push(J({...c(e.markdown),componentExts:m})),l&&p.push(ie()),(e.prettier??!0)&&p.push(Q(c(e.prettier))),b(...p,e.customConfig??[])}var we=Z;0&&(module.exports={GLOB_ALL_SRC,GLOB_CSS,GLOB_EXCLUDE,GLOB_HTML,GLOB_JS,GLOB_JSON,GLOB_JSON5,GLOB_JSONC,GLOB_JSX,GLOB_LESS,GLOB_MARKDOWN,GLOB_MARKDOWN_CODE,GLOB_MDX,GLOB_POSTCSS,GLOB_SCSS,GLOB_SRC,GLOB_SRC_EXT,GLOB_STYLE,GLOB_TESTS,GLOB_TOML,GLOB_TS,GLOB_TSX,GLOB_VUE,GLOB_YAML,combine,comments,config,ignores,imports,interopDefault,javascript,jsdoc,jsonc,markdown,node,perfectionist,prettier,sortPackageJson,sortTsconfig,test,toml,typescript,unicorn,vue,yml});
|
|
1
|
+
"use strict";var ae=Object.create;var v=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var le=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty;var ue=(e,o)=>{for(var t in o)v(e,t,{get:o[t],enumerable:!0})},ee=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of le(o))!me.call(e,i)&&i!==t&&v(e,i,{get:()=>o[i],enumerable:!(s=pe(o,i))||s.enumerable});return e};var n=(e,o,t)=>(t=e!=null?ae(ce(e)):{},ee(o||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e)),fe=e=>ee(v({},"__esModule",{value:!0}),e);var Oe={};ue(Oe,{GLOB_ALL_SRC:()=>ye,GLOB_CSS:()=>T,GLOB_EXCLUDE:()=>S,GLOB_HTML:()=>oe,GLOB_JS:()=>de,GLOB_JSON:()=>O,GLOB_JSON5:()=>h,GLOB_JSONC:()=>I,GLOB_JSX:()=>C,GLOB_LESS:()=>L,GLOB_MARKDOWN:()=>f,GLOB_MARKDOWN_CODE:()=>D,GLOB_MDX:()=>y,GLOB_POSTCSS:()=>_,GLOB_SCSS:()=>G,GLOB_SRC:()=>d,GLOB_SRC_EXT:()=>u,GLOB_STYLE:()=>re,GLOB_TESTS:()=>B,GLOB_TOML:()=>x,GLOB_TS:()=>ge,GLOB_TSX:()=>w,GLOB_VUE:()=>j,GLOB_YAML:()=>g,combine:()=>b,comments:()=>P,config:()=>Z,default:()=>we,ignores:()=>F,imports:()=>R,interopDefault:()=>r,javascript:()=>q,jsdoc:()=>M,jsonc:()=>A,markdown:()=>J,node:()=>U,perfectionist:()=>z,prettier:()=>Q,sortPackageJson:()=>N,sortTsconfig:()=>$,test:()=>K,toml:()=>H,typescript:()=>V,unicorn:()=>W,vue:()=>X,yml:()=>Y});module.exports=fe(Oe);async function P(){return[{name:"eslint:eslint-comments",plugins:{"eslint-comments":await r(import("eslint-plugin-eslint-comments"))},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-unlimited-disable":"error","eslint-comments/no-unused-enable":"error"}}]}var E=n(require("fs"),1),te=n(require("path"),1);var u="?([cm])[jt]s?(x)",d="**/*.?([cm])[jt]s?(x)",de="**/*.?([cm])js",C="**/*.?([cm])jsx",ge="**/*.?([cm])ts",w="**/*.?([cm])tsx",re="**/*.{c,le,sc}ss",T="**/*.css",_="**/*.{p,post}css",L="**/*.less",G="**/*.scss",O="**/*.json",h="**/*.json5",I="**/*.jsonc",f="**/*.md",y="**/*.mdx",D=`${f}/${d}`,j="**/*.vue",g="**/*.y?(a)ml",x="**/*.toml",oe="**/*.htm?(l)",B=[`**/__tests__/**/*.${u}`,`**/*.spec.${u}`,`**/*.test.${u}`,`**/*.bench.${u}`,`**/*.benchmark.${u}`],ye=[d,re,O,h,f,j,g,oe],S=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];var xe=/\r?\n/g,be=e=>e.split(xe),F=async e=>{let{enableGitignore:o=!0,files:t=[]}=e,s=[];if(o){let l=".gitignore";typeof o!="boolean"&&(l=o.ignorePath);let m=te.default.join(process.cwd(),l);E.default.existsSync(m)&&(s=be(E.default.readFileSync(m).toString()).filter(p=>!(p.startsWith("#")||p.length===0)).map(p=>p.startsWith("/")?p.slice(1):p))}let i=[...S,...s];return typeof t=="function"?i=t(i):i=[...i,...t],[{ignores:[...S,...i]}]};async function b(...e){return(await Promise.all(e)).flat()}async function r(e){let o=await e;return o.default||o}async function R(){return[{name:"eslint:imports",plugins:{import:await r(import("eslint-plugin-i"))},rules:{"import/first":"error","import/no-duplicates":"error","import/no-mutable-exports":"error","import/no-named-default":"error","import/no-self-import":"error","import/no-webpack-loader-syntax":"error","import/order":"error","import/newline-after-import":["error",{considerComments:!0,count:1}]}}]}var k=n(require("globals"),1);var q=async e=>{let{overrides:o={}}=e,t=await r(import("eslint-plugin-unused-imports"));return[{name:"eslint:javascript",languageOptions:{ecmaVersion:2022,globals:{...k.default.browser,...k.default.es2021,...k.default.node,document:"readonly",navigator:"readonly",window:"readonly"},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},plugins:{"unused-imports":t},rules:{"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":"error","block-scoped-var":"error","constructor-super":"error","default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-array-constructor":"error","no-async-promise-executor":"error","no-caller":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":["error",{allow:["warn","error"]}],"no-const-assign":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-empty-character-class":"error","no-empty-pattern":"error","no-eval":"error","no-ex-assign":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-implied-eval":"error","no-import-assign":"error","no-invalid-regexp":"error","no-invalid-this":"error","no-irregular-whitespace":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-symbol":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal":"error","no-octal-escape":"error","no-proto":"error","no-prototype-builtins":"error","no-redeclare":["error",{builtinGlobals:!1}],"no-regex-spaces":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement","TSEnumDeclaration[const=true]","TSExportAssignment"],"no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-throw-literal":"error","no-undef":"error","no-undef-init":"error","no-unexpected-multiline":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-vars":["error",{args:"none",caughtErrors:"none",ignoreRestSiblings:!0,vars:"all"}],"no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"no-useless-backreference":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-with":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-exponentiation-operator":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","sort-imports":["error",{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!0,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","unicode-bom":["error","never"],"unused-imports/no-unused-imports":"warn","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],"vars-on-top":"error",yoda:["error","never"],...o}},{name:"eslint:scripts-overrides",files:[`scripts/${d}`,`cli.${u}`],rules:{"no-console":"off"}}]};async function M(){return[{name:"eslint:jsdoc",plugins:{jsdoc:await r(import("eslint-plugin-jsdoc"))},rules:{"jsdoc/check-access":"warn","jsdoc/check-param-names":"warn","jsdoc/check-property-names":"warn","jsdoc/check-types":"warn","jsdoc/empty-tags":"warn","jsdoc/implements-on-classes":"warn","jsdoc/no-defaults":"warn","jsdoc/no-multi-asterisks":"warn","jsdoc/require-param-name":"warn","jsdoc/require-property":"warn","jsdoc/require-property-description":"warn","jsdoc/require-property-name":"warn","jsdoc/require-returns-check":"warn","jsdoc/require-returns-description":"warn","jsdoc/require-yields-check":"warn","jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}}]}var A=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-jsonc")),r(import("jsonc-eslint-parser"))]);return[{name:"eslint:jsonc:setup",plugins:{jsonc:t}},{name:"eslint:jsonc:rules",files:[O,h,I],languageOptions:{parser:s},rules:{"jsonc/no-bigint-literals":"error","jsonc/no-binary-expression":"error","jsonc/no-binary-numeric-literals":"error","jsonc/no-dupe-keys":"error","jsonc/no-escape-sequence-in-identifier":"error","jsonc/no-floating-decimal":"error","jsonc/no-hexadecimal-numeric-literals":"error","jsonc/no-infinity":"error","jsonc/no-multi-str":"error","jsonc/no-nan":"error","jsonc/no-number-props":"error","jsonc/no-numeric-separators":"error","jsonc/no-octal":"error","jsonc/no-octal-escape":"error","jsonc/no-octal-numeric-literals":"error","jsonc/no-parenthesized":"error","jsonc/no-plus-sign":"error","jsonc/no-regexp-literals":"error","jsonc/no-sparse-arrays":"error","jsonc/no-template-literals":"error","jsonc/no-undefined-value":"error","jsonc/no-unicode-codepoint-escapes":"error","jsonc/no-useless-escape":"error","jsonc/space-unary-ops":"error","jsonc/valid-json-number":"error","jsonc/vue-custom-block/no-parsing-error":"error","jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","always-multiline"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"jsonc/object-curly-newline":["error",{consistent:!0,multiline:!0}],"jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error",...o}}]};var J=async e=>{let{componentExts:o=[],overrides:t={}}=e,[s,i]=await Promise.all([r(import("eslint-plugin-mdx")),r(import("eslint-mdx"))]);return[{name:"eslint:markdown:setup",plugins:{mdx:s}},{name:"eslint:markdown:processor",files:[f,y],languageOptions:{ecmaVersion:"latest",parser:i,sourceType:"module"},processor:"mdx/remark",settings:{"mdx/code-blocks":!0}},{name:"eslint:markdown:rules",files:[D,...o.map(l=>`${f}/**/*.${l}`)],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{"no-alert":"off","no-console":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","node/prefer-global/process":"off","@typescript-eslint/consistent-type-imports":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":"off","@typescript-eslint/no-var-requires":"off","unicode-bom":"off","unused-imports/no-unused-imports":"off","unused-imports/no-unused-vars":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-for-in-array":"off","@typescript-eslint/no-implied-eval":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-throw-literal":"off","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/restrict-plus-operands":"off","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/unbound-method":"off",...t}}]};async function U(){return[{name:"eslint:node",plugins:{n:await r(import("eslint-plugin-n"))},rules:{"n/handle-callback-err":["error","^(err|error)$"],"n/no-deprecated-api":"error","n/no-exports-assign":"error","n/no-new-require":"error","n/no-path-concat":"error","n/prefer-global/buffer":["error","never"],"n/prefer-global/process":["error","never"],"n/process-exit-as-throw":"error"}}]}async function N(){return[{name:"eslint:sort-package-json",files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:{type:"asc"},pathPattern:"^(?:resolutions|overrides|pnpm.overrides)$"},{order:["types","import","require","default"],pathPattern:"^exports.*$"}]}}]}async function $(){return[{name:"eslint:sort-tsconfig",files:["**/tsconfig.json","**/tsconfig.*.json"],rules:{"jsonc/sort-keys":["error",{order:["extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","jsx","jsxFactory","jsxFragmentFactory","jsxImportSource","lib","moduleDetection","noLib","reactNamespace","useDefineForClassFields","emitDecoratorMetadata","experimentalDecorators","baseUrl","rootDir","rootDirs","customConditions","module","moduleResolution","moduleSuffixes","noResolve","paths","resolveJsonModule","resolvePackageJsonExports","resolvePackageJsonImports","typeRoots","types","allowArbitraryExtensions","allowImportingTsExtensions","allowUmdGlobalAccess","allowJs","checkJs","maxNodeModuleJsDepth","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","declaration","declarationDir","declarationMap","downlevelIteration","emitBOM","emitDeclarationOnly","importHelpers","importsNotUsedAsValues","inlineSourceMap","inlineSources","mapRoot","newLine","noEmit","noEmitHelpers","noEmitOnError","outDir","outFile","preserveConstEnums","preserveValueImports","removeComments","sourceMap","sourceRoot","stripInternal","allowSyntheticDefaultImports","esModuleInterop","forceConsistentCasingInFileNames","isolatedModules","preserveSymlinks","verbatimModuleSyntax","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]}var ne=n(require("process"),1);var ve={"dot-notation":"off","no-implied-eval":"off","no-throw-literal":"off","@typescript-eslint/await-thenable":"error","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-floating-promises":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":"error","@typescript-eslint/no-misused-promises":"error","@typescript-eslint/no-throw-literal":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/restrict-template-expressions":"error","@typescript-eslint/unbound-method":"error"},V=async e=>{let{overrides:o={},componentExts:t=[],parserOptions:s={},tsconfigPath:i}=e??{},[l,m]=await Promise.all([r(import("@typescript-eslint/eslint-plugin")),r(import("@typescript-eslint/parser"))]);return[{name:"eslint:typescript:setup",plugins:{"@typescript-eslint":l}},{name:"eslint:typescript:rules",files:[d,...t.map(p=>`**/*.${p}`)],languageOptions:{parser:m,parserOptions:{extraFileExtensions:t.map(p=>`.${p}`),sourceType:"module",...i?{project:[i],tsconfigRootDir:ne.default.cwd()}:{},...s}},rules:{...l.configs["eslint-recommended"].overrides[0].rules,...l.configs.strict.rules,"no-dupe-class-members":"off","no-invalid-this":"off","no-loss-of-precision":"off","no-redeclare":"off","no-use-before-define":"off","no-useless-constructor":"off","@typescript-eslint/ban-ts-comment":["error",{"ts-ignore":"allow-with-description"}],"@typescript-eslint/ban-types":["error",{types:{Function:!1}}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/consistent-type-imports":["error",{disallowTypeAnnotations:!1,prefer:"type-imports"}],"@typescript-eslint/no-dupe-class-members":"error","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-extraneous-class":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-this":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loss-of-precision":"error","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-redeclare":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"@typescript-eslint/no-useless-constructor":"off","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/triple-slash-reference":"off","@typescript-eslint/unified-signatures":"off",...i?ve:{},...o}},{name:"eslint:typescript:dts-overrides",files:["**/*.d.ts"],rules:{"eslint-comments/no-unlimited-disable":"off","import/no-duplicates":"off","no-restricted-syntax":"off","unused-imports/no-unused-vars":"off"}},{name:"eslint:typescript:tests-overrides",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"eslint:typescript:javascript-overrides",rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]};async function W(){return[{name:"eslint:unicorn",plugins:{unicorn:await r(import("eslint-plugin-unicorn"))},rules:{"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/no-instanceof-array":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/number-literal-case":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-includes":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-type-error":"error","unicorn/throw-new-error":"error"}}]}var X=async(e={})=>{let{overrides:o={},typescript:t}=e,[s,i]=await Promise.all([r(import("eslint-plugin-vue")),r(import("vue-eslint-parser"))]);return[{name:"eslint:vue:setup",plugins:{vue:s}},{name:"eslint:vue:rules",files:[j],languageOptions:{parser:i,parserOptions:{ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"],parser:t?await r(import("@typescript-eslint/parser")):null,sourceType:"module"}},processor:s.processors[".vue"],rules:{...s.configs.base.rules,...s.configs["vue3-essential"].rules,...s.configs["vue3-strongly-recommended"].rules,...s.configs["vue3-recommended"].rules,"node/prefer-global/process":"off","vue/block-order":["error",{order:["script","template","style"]}],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1}],"vue/component-options-name-casing":["error","PascalCase"],"vue/custom-event-name-casing":["error","camelCase"],"vue/define-macros-order":["error",{order:["defineOptions","defineProps","defineEmits","defineSlots"]}],"vue/dot-location":["error","property"],"vue/dot-notation":["error",{allowKeywords:!0}],"vue/eqeqeq":["error","smart"],"vue/html-indent":["error",2],"vue/html-quotes":["error","double"],"vue/max-attributes-per-line":"off","vue/multi-word-component-names":"off","vue/no-dupe-keys":"off","vue/no-empty-pattern":"error","vue/no-extra-parens":["error","functions"],"vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"error","vue/no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement"],"vue/no-restricted-v-bind":["error","/^v-/"],"vue/no-setup-props-reactivity-loss":"off","vue/no-sparse-arrays":"error","vue/no-unused-refs":"error","vue/no-useless-v-bind":"error","vue/no-v-html":"off","vue/object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"vue/prefer-separate-static-class":"error","vue/prefer-template":"error","vue/require-default-prop":"off","vue/require-prop-types":"off","vue/space-infix-ops":"error","vue/space-unary-ops":["error",{nonwords:!1,words:!0}],"vue/array-bracket-spacing":["error","never"],"vue/arrow-spacing":["error",{after:!0,before:!0}],"vue/block-spacing":["error","always"],"vue/block-tag-newline":["error",{multiline:"always",singleline:"always"}],"vue/brace-style":["error","stroustrup",{allowSingleLine:!0}],"vue/comma-dangle":["error","always-multiline"],"vue/comma-spacing":["error",{after:!0,before:!1}],"vue/comma-style":["error","last"],"vue/html-comment-content-spacing":["error","always",{exceptions:["-"]}],"vue/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"vue/keyword-spacing":["error",{after:!0,before:!0}],"vue/object-curly-newline":"off","vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"vue/operator-linebreak":["error","before"],"vue/padding-line-between-blocks":["error","always"],"vue/quote-props":["error","consistent-as-needed"],"vue/space-in-parens":["error","never"],"vue/template-curly-spacing":"error",...o}}]};var Y=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-yml")),r(import("yaml-eslint-parser"))]);return[{name:"eslint:yaml:setup",plugins:{yml:t}},{name:"eslint:yaml:rules",files:[g],languageOptions:{parser:s},rules:{...t.configs.standard.rules,...t.configs.prettier.rules,"yml/block-mapping":"error","yml/block-sequence":"error","yml/no-empty-key":"error","yml/no-empty-sequence-entry":"error","yml/no-irregular-whitespace":"error","yml/plain-scalar":"error","yml/vue-custom-block/no-parsing-error":"error","yml/spaced-comment":"error",...o}}]};var H=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-toml")),r(import("toml-eslint-parser"))]);return[{name:"eslint:toml:setup",plugins:{toml:t}},{name:"eslint:toml:rules",files:[x],languageOptions:{parser:s},rules:{"style/spaced-comment":"off","toml/comma-style":"error","toml/keys-order":"error","toml/no-space-dots":"error","toml/no-unreadable-number-separator":"error","toml/precision-of-fractional-seconds":"error","toml/precision-of-integer":"error","toml/tables-order":"error","toml/vue-custom-block/no-parsing-error":"error","toml/array-bracket-newline":"error","toml/array-bracket-spacing":"error","toml/array-element-newline":"error","toml/indent":["error",2],"toml/inline-table-curly-spacing":"error","toml/key-spacing":"error","toml/padding-line-between-pairs":"error","toml/padding-line-between-tables":"error","toml/quoted-keys":"error","toml/spaced-comment":"error","toml/table-bracket-spacing":"error",...o}}]};var K=async e=>{let{overrides:o={}}=e,[t,s]=await Promise.all([r(import("eslint-plugin-vitest")),r(import("eslint-plugin-no-only-tests"))]);return[{name:"eslint:test:setup",plugins:{test:{...t,rules:{...t.rules,...s.rules}}}},{name:"eslint:test:rules",files:B,rules:{"test/consistent-test-it":["error",{fn:"it",withinDescribe:"it"}],"test/no-identical-title":"error","test/no-only-tests":"error","test/prefer-hooks-in-order":"error","test/prefer-lowercase-title":"error",...o}}]};async function z(){return[{name:"eslint:perfectionist",plugins:{perfectionist:await r(import("eslint-plugin-perfectionist"))}}]}var Q=async e=>{let[o,t,s]=await Promise.all([r(import("eslint-plugin-prettier")),r(import("eslint-config-prettier")),r(import("eslint-parser-plain"))]),i=[{name:"eslint:prettier:markdown",files:[f],parser:"markdown"},{name:"eslint:prettier:mdx",files:[y],parser:"mdx"},{name:"eslint:prettier:html",files:["**/*.html"],parser:"html"},{name:"eslint:prettier:css",files:[T,_],parser:"css"},{name:"eslint:prettier:scss",files:[G],parser:"scss"},{name:"eslint:prettier:less",files:[L],parser:"less"},{name:"eslint:prettier:yaml",files:[g],parser:"yaml"},{name:"eslint:prettier:graphql",files:["**/*.graphql"],parser:"graphql"}].map(l=>({name:l.name,files:l.files,languageOptions:{parser:s},rules:{"prettier/prettier":["warn",{quoteProps:"consistent",parser:l.parser,...e}]}}));return[{name:"eslint:prettier:setup",plugins:{prettier:o}},{name:"eslint:prettier:rules",ignores:[x],rules:{...t.rules,...o.configs.recommended.rules,"prettier/prettier":["warn",{quoteProps:"consistent",...e}]}},...i]};async function Ce(){let e=await r(import("@next/eslint-plugin-next"));return[{name:"eslint:next:setup",plugins:{"@next/next":e}},{name:"eslint:next:rules",files:[w,C],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...e.configs.recommended.rules,...e.configs["core-web-vitals"].rules}}]}var se=async e=>{let{next:o=!1,overrides:t={}}=e,[s,i]=await Promise.all([r(import("eslint-plugin-react")),r(import("eslint-plugin-react-hooks"))]),l=[{name:"eslint:react:setup",plugins:{react:s,"react-hooks":i}},{name:"eslint:react:rules",files:[w,C],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...s.configs.recommended.rules,...i.configs.recommended.rules,"jsx-quotes":["error","prefer-double"],"react/react-in-jsx-scope":"off","react/jsx-indent":[1,2],"react/jsx-indent-props":[1,2],"react/jsx-closing-bracket-location":[1,{selfClosing:"tag-aligned",nonEmpty:"tag-aligned"}],...t}}];return b(l,o?Ce():[])};async function ie(){let e=await r(import("eslint-plugin-tailwindcss"));return[{name:"eslint:tailwindcss",plugins:{tailwindcss:e},rules:{...e.configs.recommended.rules}}]}function c(e){return e?typeof e!="boolean"?e:{}:{}}function Z(e={}){let{ignores:o=!0,vue:t,react:s,typescript:i,tailwindcss:l,componentExts:m=[]}=e,p=[];return p.push(F(c(o)),q(e.javascript??{}),P(),U(),M(),R(),W(),z()),t&&m.push("vue"),i&&p.push(V({...typeof i!="boolean"?i:{},componentExts:m})),(e.test??!0)&&p.push(K(c(e.test))),t&&p.push(X({...c(e.vue),typescript:!!i})),s&&p.push(se(c(s))),(e.jsonc??!0)&&p.push(A(c(e.jsonc)),N(),$()),(e.yml??!0)&&p.push(Y(c(e.yml))),(e.toml??!0)&&p.push(H(c(e.toml))),(e.markdown??!0)&&p.push(J({...c(e.markdown),componentExts:m})),l&&p.push(ie()),(e.prettier??!0)&&p.push(Q(c(e.prettier))),b(...p,e.customConfig??[])}var we=Z;0&&(module.exports={GLOB_ALL_SRC,GLOB_CSS,GLOB_EXCLUDE,GLOB_HTML,GLOB_JS,GLOB_JSON,GLOB_JSON5,GLOB_JSONC,GLOB_JSX,GLOB_LESS,GLOB_MARKDOWN,GLOB_MARKDOWN_CODE,GLOB_MDX,GLOB_POSTCSS,GLOB_SCSS,GLOB_SRC,GLOB_SRC_EXT,GLOB_STYLE,GLOB_TESTS,GLOB_TOML,GLOB_TS,GLOB_TSX,GLOB_VUE,GLOB_YAML,combine,comments,config,ignores,imports,interopDefault,javascript,jsdoc,jsonc,markdown,node,perfectionist,prettier,sortPackageJson,sortTsconfig,test,toml,typescript,unicorn,vue,yml});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
async function k(){return[{name:"eslint:eslint-comments",plugins:{"eslint-comments":await r(import("eslint-plugin-eslint-comments"))},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-unlimited-disable":"error","eslint-comments/no-unused-enable":"error"}}]}import B from"fs";import te from"path";var u="?([cm])[jt]s?(x)",d="**/*.?([cm])[jt]s?(x)",fe="**/*.?([cm])js",v="**/*.?([cm])jsx",de="**/*.?([cm])ts",C="**/*.?([cm])tsx",re="**/*.{c,le,sc}ss",P="**/*.css",T="**/*.{p,post}css",_="**/*.less",L="**/*.scss",w="**/*.json",O="**/*.json5",G="**/*.jsonc",f="**/*.md",y="**/*.mdx",I=`${f}/${d}`,h="**/*.vue",g="**/*.y?(a)ml",x="**/*.toml",oe="**/*.htm?(l)",D=[`**/__tests__/**/*.${u}`,`**/*.spec.${u}`,`**/*.test.${u}`,`**/*.bench.${u}`,`**/*.benchmark.${u}`],ge=[d,re,w,O,f,h,g,oe],j=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];var ne=/\r?\n/g,se=e=>e.split(ne),E=async e=>{let{enableGitignore:o=!0,files:t=[]}=e,n=[];if(o){let l=".gitignore";typeof o!="boolean"&&(l=o.ignorePath);let m=te.join(process.cwd(),l);B.existsSync(m)&&(n=se(B.readFileSync(m).toString()).filter(p=>!(p.startsWith("#")||p.length===0)).map(p=>p.startsWith("/")?p.slice(1):p))}let a=[...j,...n];return typeof t=="function"?a=t(a):a=[...a,...t],[{ignores:[...j,...a]}]};async function b(...e){return(await Promise.all(e)).flat()}async function r(e){let o=await e;return o.default||o}async function F(){return[{name:"eslint:imports",plugins:{import:await r(import("eslint-plugin-i"))},rules:{"import/first":"error","import/no-duplicates":"error","import/no-mutable-exports":"error","import/no-named-default":"error","import/no-self-import":"error","import/no-webpack-loader-syntax":"error","import/order":"error","import/newline-after-import":["error",{considerComments:!0,count:1}]}}]}import S from"globals";var R=async e=>{let{overrides:o={}}=e,t=await r(import("eslint-plugin-unused-imports"));return[{name:"eslint:javascript",languageOptions:{ecmaVersion:2022,globals:{...S.browser,...S.es2021,...S.node,document:"readonly",navigator:"readonly",window:"readonly"},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},plugins:{"unused-imports":t},rules:{"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":"error","block-scoped-var":"error","constructor-super":"error","default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-array-constructor":"error","no-async-promise-executor":"error","no-caller":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":["error",{allow:["warn","error"]}],"no-const-assign":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-empty-character-class":"error","no-empty-pattern":"error","no-eval":"error","no-ex-assign":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-implied-eval":"error","no-import-assign":"error","no-invalid-regexp":"error","no-invalid-this":"error","no-irregular-whitespace":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-symbol":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal":"error","no-octal-escape":"error","no-proto":"error","no-prototype-builtins":"error","no-redeclare":["error",{builtinGlobals:!1}],"no-regex-spaces":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement","TSEnumDeclaration[const=true]","TSExportAssignment"],"no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-throw-literal":"error","no-undef":"error","no-undef-init":"error","no-unexpected-multiline":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-vars":["error",{args:"none",caughtErrors:"none",ignoreRestSiblings:!0,vars:"all"}],"no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"no-useless-backreference":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-with":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-exponentiation-operator":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","sort-imports":["error",{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!0,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","unicode-bom":["error","never"],"unused-imports/no-unused-imports":"warn","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],"vars-on-top":"error",yoda:["error","never"],...o}},{name:"eslint:scripts-overrides",files:[`scripts/${d}`,`cli.${u}`],rules:{"no-console":"off"}}]};async function q(){return[{name:"eslint:jsdoc",plugins:{jsdoc:await r(import("eslint-plugin-jsdoc"))},rules:{"jsdoc/check-access":"warn","jsdoc/check-param-names":"warn","jsdoc/check-property-names":"warn","jsdoc/check-types":"warn","jsdoc/empty-tags":"warn","jsdoc/implements-on-classes":"warn","jsdoc/no-defaults":"warn","jsdoc/no-multi-asterisks":"warn","jsdoc/require-param-name":"warn","jsdoc/require-property":"warn","jsdoc/require-property-description":"warn","jsdoc/require-property-name":"warn","jsdoc/require-returns-check":"warn","jsdoc/require-returns-description":"warn","jsdoc/require-yields-check":"warn","jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}}]}var M=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-jsonc")),r(import("jsonc-eslint-parser"))]);return[{name:"eslint:jsonc:setup",plugins:{jsonc:t}},{name:"eslint:jsonc:rules",files:[w,O,G],languageOptions:{parser:n},rules:{"jsonc/no-bigint-literals":"error","jsonc/no-binary-expression":"error","jsonc/no-binary-numeric-literals":"error","jsonc/no-dupe-keys":"error","jsonc/no-escape-sequence-in-identifier":"error","jsonc/no-floating-decimal":"error","jsonc/no-hexadecimal-numeric-literals":"error","jsonc/no-infinity":"error","jsonc/no-multi-str":"error","jsonc/no-nan":"error","jsonc/no-number-props":"error","jsonc/no-numeric-separators":"error","jsonc/no-octal":"error","jsonc/no-octal-escape":"error","jsonc/no-octal-numeric-literals":"error","jsonc/no-parenthesized":"error","jsonc/no-plus-sign":"error","jsonc/no-regexp-literals":"error","jsonc/no-sparse-arrays":"error","jsonc/no-template-literals":"error","jsonc/no-undefined-value":"error","jsonc/no-unicode-codepoint-escapes":"error","jsonc/no-useless-escape":"error","jsonc/space-unary-ops":"error","jsonc/valid-json-number":"error","jsonc/vue-custom-block/no-parsing-error":"error","jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"jsonc/object-curly-newline":["error",{consistent:!0,multiline:!0}],"jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error",...o}}]};var A=async e=>{let{componentExts:o=[],overrides:t={}}=e,[n,a]=await Promise.all([r(import("eslint-plugin-mdx")),r(import("eslint-mdx"))]);return[{name:"eslint:markdown:setup",plugins:{mdx:n}},{name:"eslint:markdown:processor",files:[f,y],languageOptions:{ecmaVersion:"latest",parser:a,sourceType:"module"},processor:"mdx/remark",settings:{"mdx/code-blocks":!0}},{name:"eslint:markdown:rules",files:[I,...o.map(l=>`${f}/**/*.${l}`)],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{"no-alert":"off","no-console":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","node/prefer-global/process":"off","style/comma-dangle":"off","style/eol-last":"off","@typescript-eslint/consistent-type-imports":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":"off","@typescript-eslint/no-var-requires":"off","unicode-bom":"off","unused-imports/no-unused-imports":"off","unused-imports/no-unused-vars":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-for-in-array":"off","@typescript-eslint/no-implied-eval":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-throw-literal":"off","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/restrict-plus-operands":"off","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/unbound-method":"off",...t}}]};async function J(){return[{name:"eslint:node",plugins:{n:await r(import("eslint-plugin-n"))},rules:{"n/handle-callback-err":["error","^(err|error)$"],"n/no-deprecated-api":"error","n/no-exports-assign":"error","n/no-new-require":"error","n/no-path-concat":"error","n/prefer-global/buffer":["error","never"],"n/prefer-global/process":["error","never"],"n/process-exit-as-throw":"error"}}]}async function U(){return[{name:"eslint:sort-package-json",files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:{type:"asc"},pathPattern:"^(?:resolutions|overrides|pnpm.overrides)$"},{order:["types","import","require","default"],pathPattern:"^exports.*$"}]}}]}async function N(){return[{name:"eslint:sort-tsconfig",files:["**/tsconfig.json","**/tsconfig.*.json"],rules:{"jsonc/sort-keys":["error",{order:["extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","jsx","jsxFactory","jsxFragmentFactory","jsxImportSource","lib","moduleDetection","noLib","reactNamespace","useDefineForClassFields","emitDecoratorMetadata","experimentalDecorators","baseUrl","rootDir","rootDirs","customConditions","module","moduleResolution","moduleSuffixes","noResolve","paths","resolveJsonModule","resolvePackageJsonExports","resolvePackageJsonImports","typeRoots","types","allowArbitraryExtensions","allowImportingTsExtensions","allowUmdGlobalAccess","allowJs","checkJs","maxNodeModuleJsDepth","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","declaration","declarationDir","declarationMap","downlevelIteration","emitBOM","emitDeclarationOnly","importHelpers","importsNotUsedAsValues","inlineSourceMap","inlineSources","mapRoot","newLine","noEmit","noEmitHelpers","noEmitOnError","outDir","outFile","preserveConstEnums","preserveValueImports","removeComments","sourceMap","sourceRoot","stripInternal","allowSyntheticDefaultImports","esModuleInterop","forceConsistentCasingInFileNames","isolatedModules","preserveSymlinks","verbatimModuleSyntax","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]}import ie from"process";var ae={"dot-notation":"off","no-implied-eval":"off","no-throw-literal":"off","@typescript-eslint/await-thenable":"error","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-floating-promises":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":"error","@typescript-eslint/no-misused-promises":"error","@typescript-eslint/no-throw-literal":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/restrict-template-expressions":"error","@typescript-eslint/unbound-method":"error"},$=async e=>{let{overrides:o={},componentExts:t=[],parserOptions:n={},tsconfigPath:a}=e??{},[l,m]=await Promise.all([r(import("@typescript-eslint/eslint-plugin")),r(import("@typescript-eslint/parser"))]);return[{name:"eslint:typescript:setup",plugins:{"@typescript-eslint":l}},{name:"eslint:typescript:rules",files:[d,...t.map(p=>`**/*.${p}`)],languageOptions:{parser:m,parserOptions:{extraFileExtensions:t.map(p=>`.${p}`),sourceType:"module",...a?{project:[a],tsconfigRootDir:ie.cwd()}:{},...n}},rules:{...l.configs["eslint-recommended"].overrides[0].rules,...l.configs.strict.rules,"no-dupe-class-members":"off","no-invalid-this":"off","no-loss-of-precision":"off","no-redeclare":"off","no-use-before-define":"off","no-useless-constructor":"off","@typescript-eslint/ban-ts-comment":["error",{"ts-ignore":"allow-with-description"}],"@typescript-eslint/ban-types":["error",{types:{Function:!1}}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/consistent-type-imports":["error",{disallowTypeAnnotations:!1,prefer:"type-imports"}],"@typescript-eslint/no-dupe-class-members":"error","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-extraneous-class":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-this":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loss-of-precision":"error","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-redeclare":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"@typescript-eslint/no-useless-constructor":"off","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/triple-slash-reference":"off","@typescript-eslint/unified-signatures":"off",...a?ae:{},...o}},{name:"eslint:typescript:dts-overrides",files:["**/*.d.ts"],rules:{"eslint-comments/no-unlimited-disable":"off","import/no-duplicates":"off","no-restricted-syntax":"off","unused-imports/no-unused-vars":"off"}},{name:"eslint:typescript:tests-overrides",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"eslint:typescript:javascript-overrides",rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]};async function V(){return[{name:"eslint:unicorn",plugins:{unicorn:await r(import("eslint-plugin-unicorn"))},rules:{"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/no-instanceof-array":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/number-literal-case":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-includes":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-type-error":"error","unicorn/throw-new-error":"error"}}]}var W=async(e={})=>{let{overrides:o={},typescript:t}=e,[n,a]=await Promise.all([r(import("eslint-plugin-vue")),r(import("vue-eslint-parser"))]);return[{name:"eslint:vue:setup",plugins:{vue:n}},{name:"eslint:vue:rules",files:[h],languageOptions:{parser:a,parserOptions:{ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"],parser:t?await r(import("@typescript-eslint/parser")):null,sourceType:"module"}},processor:n.processors[".vue"],rules:{...n.configs.base.rules,...n.configs["vue3-essential"].rules,...n.configs["vue3-strongly-recommended"].rules,...n.configs["vue3-recommended"].rules,"node/prefer-global/process":"off","vue/block-order":["error",{order:["script","template","style"]}],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1}],"vue/component-options-name-casing":["error","PascalCase"],"vue/custom-event-name-casing":["error","camelCase"],"vue/define-macros-order":["error",{order:["defineOptions","defineProps","defineEmits","defineSlots"]}],"vue/dot-location":["error","property"],"vue/dot-notation":["error",{allowKeywords:!0}],"vue/eqeqeq":["error","smart"],"vue/html-indent":["error",2],"vue/html-quotes":["error","double"],"vue/max-attributes-per-line":"off","vue/multi-word-component-names":"off","vue/no-dupe-keys":"off","vue/no-empty-pattern":"error","vue/no-extra-parens":["error","functions"],"vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"error","vue/no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement"],"vue/no-restricted-v-bind":["error","/^v-/"],"vue/no-setup-props-reactivity-loss":"off","vue/no-sparse-arrays":"error","vue/no-unused-refs":"error","vue/no-useless-v-bind":"error","vue/no-v-html":"off","vue/object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"vue/prefer-separate-static-class":"error","vue/prefer-template":"error","vue/require-default-prop":"off","vue/require-prop-types":"off","vue/space-infix-ops":"error","vue/space-unary-ops":["error",{nonwords:!1,words:!0}],"vue/array-bracket-spacing":["error","never"],"vue/arrow-spacing":["error",{after:!0,before:!0}],"vue/block-spacing":["error","always"],"vue/block-tag-newline":["error",{multiline:"always",singleline:"always"}],"vue/brace-style":["error","stroustrup",{allowSingleLine:!0}],"vue/comma-dangle":["error","always-multiline"],"vue/comma-spacing":["error",{after:!0,before:!1}],"vue/comma-style":["error","last"],"vue/html-comment-content-spacing":["error","always",{exceptions:["-"]}],"vue/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"vue/keyword-spacing":["error",{after:!0,before:!0}],"vue/object-curly-newline":"off","vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"vue/operator-linebreak":["error","before"],"vue/padding-line-between-blocks":["error","always"],"vue/quote-props":["error","consistent-as-needed"],"vue/space-in-parens":["error","never"],"vue/template-curly-spacing":"error",...o}}]};var X=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-yml")),r(import("yaml-eslint-parser"))]);return[{name:"eslint:yaml:setup",plugins:{yml:t}},{name:"eslint:yaml:rules",files:[g],languageOptions:{parser:n},rules:{...t.configs.standard.rules,...t.configs.prettier.rules,"yml/block-mapping":"error","yml/block-sequence":"error","yml/no-empty-key":"error","yml/no-empty-sequence-entry":"error","yml/no-irregular-whitespace":"error","yml/plain-scalar":"error","yml/vue-custom-block/no-parsing-error":"error","yml/spaced-comment":"error",...o}}]};var Y=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-toml")),r(import("toml-eslint-parser"))]);return[{name:"eslint:toml:setup",plugins:{toml:t}},{name:"eslint:toml:rules",files:[x],languageOptions:{parser:n},rules:{"style/spaced-comment":"off","toml/comma-style":"error","toml/keys-order":"error","toml/no-space-dots":"error","toml/no-unreadable-number-separator":"error","toml/precision-of-fractional-seconds":"error","toml/precision-of-integer":"error","toml/tables-order":"error","toml/vue-custom-block/no-parsing-error":"error","toml/array-bracket-newline":"error","toml/array-bracket-spacing":"error","toml/array-element-newline":"error","toml/indent":["error",2],"toml/inline-table-curly-spacing":"error","toml/key-spacing":"error","toml/padding-line-between-pairs":"error","toml/padding-line-between-tables":"error","toml/quoted-keys":"error","toml/spaced-comment":"error","toml/table-bracket-spacing":"error",...o}}]};var H=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-vitest")),r(import("eslint-plugin-no-only-tests"))]);return[{name:"eslint:test:setup",plugins:{test:{...t,rules:{...t.rules,...n.rules}}}},{name:"eslint:test:rules",files:D,rules:{"test/consistent-test-it":["error",{fn:"it",withinDescribe:"it"}],"test/no-identical-title":"error","test/no-only-tests":"error","test/prefer-hooks-in-order":"error","test/prefer-lowercase-title":"error",...o}}]};async function K(){return[{name:"eslint:perfectionist",plugins:{perfectionist:await r(import("eslint-plugin-perfectionist"))}}]}var z=async e=>{let[o,t,n]=await Promise.all([r(import("eslint-plugin-prettier")),r(import("eslint-config-prettier")),r(import("eslint-parser-plain"))]),a=[{name:"eslint:prettier:markdown",files:[f],parser:"markdown"},{name:"eslint:prettier:mdx",files:[y],parser:"mdx"},{name:"eslint:prettier:html",files:["**/*.html"],parser:"html"},{name:"eslint:prettier:css",files:[P,T],parser:"css"},{name:"eslint:prettier:scss",files:[L],parser:"scss"},{name:"eslint:prettier:less",files:[_],parser:"less"},{name:"eslint:prettier:yaml",files:[g],parser:"yaml"},{name:"eslint:prettier:graphql",files:["**/*.graphql"],parser:"graphql"}].map(l=>({name:l.name,files:l.files,languageOptions:{parser:n},rules:{"prettier/prettier":["warn",{quoteProps:"consistent",parser:l.parser,...e}]}}));return[{name:"eslint:prettier:setup",plugins:{prettier:o}},{name:"eslint:prettier:rules",ignores:[x],rules:{...t.rules,...o.configs.recommended.rules,"prettier/prettier":["warn",{quoteProps:"consistent",...e}]}},...a]};async function pe(){let e=await r(import("@next/eslint-plugin-next"));return[{name:"eslint:next:setup",plugins:{"@next/next":e}},{name:"eslint:next:rules",files:[C,v],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...e.configs.recommended.rules,...e.configs["core-web-vitals"].rules}}]}var Q=async e=>{let{next:o=!1,overrides:t={}}=e,[n,a]=await Promise.all([r(import("eslint-plugin-react")),r(import("eslint-plugin-react-hooks"))]),l=[{name:"eslint:react:setup",plugins:{react:n,"react-hooks":a}},{name:"eslint:react:rules",files:[C,v],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...n.configs.recommended.rules,...a.configs.recommended.rules,"jsx-quotes":["error","prefer-double"],"react/react-in-jsx-scope":"off","react/jsx-indent":[1,2],"react/jsx-indent-props":[1,2],"react/jsx-closing-bracket-location":[1,{selfClosing:"tag-aligned",nonEmpty:"tag-aligned"}],...t}}];return b(l,o?pe():[])};async function Z(){let e=await r(import("eslint-plugin-tailwindcss"));return[{name:"eslint:tailwindcss",plugins:{tailwindcss:e},rules:{...e.configs.recommended.rules}}]}function c(e){return e?typeof e!="boolean"?e:{}:{}}function ee(e={}){let{ignores:o=!0,vue:t,react:n,typescript:a,tailwindcss:l,componentExts:m=[]}=e,p=[];return p.push(E(c(o)),R(e.javascript??{}),k(),J(),q(),F(),V(),K()),t&&m.push("vue"),a&&p.push($({...typeof a!="boolean"?a:{},componentExts:m})),(e.test??!0)&&p.push(H(c(e.test))),t&&p.push(W({...c(e.vue),typescript:!!a})),n&&p.push(Q(c(n))),(e.jsonc??!0)&&p.push(M(c(e.jsonc)),U(),N()),(e.yml??!0)&&p.push(X(c(e.yml))),(e.toml??!0)&&p.push(Y(c(e.toml))),(e.markdown??!0)&&p.push(A({...c(e.markdown),componentExts:m})),l&&p.push(Z()),(e.prettier??!0)&&p.push(z(c(e.prettier))),b(...p,e.customConfig??[])}var io=ee;export{ge as GLOB_ALL_SRC,P as GLOB_CSS,j as GLOB_EXCLUDE,oe as GLOB_HTML,fe as GLOB_JS,w as GLOB_JSON,O as GLOB_JSON5,G as GLOB_JSONC,v as GLOB_JSX,_ as GLOB_LESS,f as GLOB_MARKDOWN,I as GLOB_MARKDOWN_CODE,y as GLOB_MDX,T as GLOB_POSTCSS,L as GLOB_SCSS,d as GLOB_SRC,u as GLOB_SRC_EXT,re as GLOB_STYLE,D as GLOB_TESTS,x as GLOB_TOML,de as GLOB_TS,C as GLOB_TSX,h as GLOB_VUE,g as GLOB_YAML,b as combine,k as comments,ee as config,io as default,E as ignores,F as imports,r as interopDefault,R as javascript,q as jsdoc,M as jsonc,A as markdown,J as node,K as perfectionist,z as prettier,U as sortPackageJson,N as sortTsconfig,H as test,Y as toml,$ as typescript,V as unicorn,W as vue,X as yml};
|
|
1
|
+
async function k(){return[{name:"eslint:eslint-comments",plugins:{"eslint-comments":await r(import("eslint-plugin-eslint-comments"))},rules:{"eslint-comments/no-aggregating-enable":"error","eslint-comments/no-duplicate-disable":"error","eslint-comments/no-unlimited-disable":"error","eslint-comments/no-unused-enable":"error"}}]}import B from"fs";import te from"path";var u="?([cm])[jt]s?(x)",d="**/*.?([cm])[jt]s?(x)",fe="**/*.?([cm])js",v="**/*.?([cm])jsx",de="**/*.?([cm])ts",C="**/*.?([cm])tsx",re="**/*.{c,le,sc}ss",P="**/*.css",T="**/*.{p,post}css",_="**/*.less",L="**/*.scss",w="**/*.json",O="**/*.json5",G="**/*.jsonc",f="**/*.md",y="**/*.mdx",I=`${f}/${d}`,h="**/*.vue",g="**/*.y?(a)ml",x="**/*.toml",oe="**/*.htm?(l)",D=[`**/__tests__/**/*.${u}`,`**/*.spec.${u}`,`**/*.test.${u}`,`**/*.bench.${u}`,`**/*.benchmark.${u}`],ge=[d,re,w,O,f,h,g,oe],j=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];var ne=/\r?\n/g,se=e=>e.split(ne),E=async e=>{let{enableGitignore:o=!0,files:t=[]}=e,n=[];if(o){let l=".gitignore";typeof o!="boolean"&&(l=o.ignorePath);let m=te.join(process.cwd(),l);B.existsSync(m)&&(n=se(B.readFileSync(m).toString()).filter(p=>!(p.startsWith("#")||p.length===0)).map(p=>p.startsWith("/")?p.slice(1):p))}let a=[...j,...n];return typeof t=="function"?a=t(a):a=[...a,...t],[{ignores:[...j,...a]}]};async function b(...e){return(await Promise.all(e)).flat()}async function r(e){let o=await e;return o.default||o}async function F(){return[{name:"eslint:imports",plugins:{import:await r(import("eslint-plugin-i"))},rules:{"import/first":"error","import/no-duplicates":"error","import/no-mutable-exports":"error","import/no-named-default":"error","import/no-self-import":"error","import/no-webpack-loader-syntax":"error","import/order":"error","import/newline-after-import":["error",{considerComments:!0,count:1}]}}]}import S from"globals";var R=async e=>{let{overrides:o={}}=e,t=await r(import("eslint-plugin-unused-imports"));return[{name:"eslint:javascript",languageOptions:{ecmaVersion:2022,globals:{...S.browser,...S.es2021,...S.node,document:"readonly",navigator:"readonly",window:"readonly"},parserOptions:{ecmaFeatures:{jsx:!0},ecmaVersion:2022,sourceType:"module"},sourceType:"module"},linterOptions:{reportUnusedDisableDirectives:!0},plugins:{"unused-imports":t},rules:{"accessor-pairs":["error",{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":"error","block-scoped-var":"error","constructor-super":"error","default-case-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"new-cap":["error",{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":"error","no-array-constructor":"error","no-async-promise-executor":"error","no-caller":"error","no-case-declarations":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":["error","always"],"no-console":["error",{allow:["warn","error"]}],"no-const-assign":"error","no-control-regex":"error","no-debugger":"error","no-delete-var":"error","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-empty-character-class":"error","no-empty-pattern":"error","no-eval":"error","no-ex-assign":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":"error","no-fallthrough":"error","no-func-assign":"error","no-global-assign":"error","no-implied-eval":"error","no-import-assign":"error","no-invalid-regexp":"error","no-invalid-this":"error","no-irregular-whitespace":"error","no-iterator":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loss-of-precision":"error","no-misleading-character-class":"error","no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-symbol":"error","no-new-wrappers":"error","no-obj-calls":"error","no-octal":"error","no-octal-escape":"error","no-proto":"error","no-prototype-builtins":"error","no-redeclare":["error",{builtinGlobals:!1}],"no-regex-spaces":"error","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-properties":["error",{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:"__proto__"},{message:"Use `Object.defineProperty` instead.",property:"__defineGetter__"},{message:"Use `Object.defineProperty` instead.",property:"__defineSetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupGetter__"},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:"__lookupSetter__"}],"no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement","TSEnumDeclaration[const=true]","TSExportAssignment"],"no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-sequences":"error","no-shadow-restricted-names":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-throw-literal":"error","no-undef":"error","no-undef-init":"error","no-unexpected-multiline":"error","no-unmodified-loop-condition":"error","no-unneeded-ternary":["error",{defaultAssignment:!1}],"no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-vars":["error",{args:"none",caughtErrors:"none",ignoreRestSiblings:!0,vars:"all"}],"no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"no-useless-backreference":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-with":"error","object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":["error",{initialized:"never"}],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!0}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!0}],"prefer-exponentiation-operator":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],"prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","sort-imports":["error",{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!0,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],"symbol-description":"error","unicode-bom":["error","never"],"unused-imports/no-unused-imports":"warn","unused-imports/no-unused-vars":["error",{args:"after-used",argsIgnorePattern:"^_",vars:"all",varsIgnorePattern:"^_"}],"use-isnan":["error",{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],"vars-on-top":"error",yoda:["error","never"],...o}},{name:"eslint:scripts-overrides",files:[`scripts/${d}`,`cli.${u}`],rules:{"no-console":"off"}}]};async function q(){return[{name:"eslint:jsdoc",plugins:{jsdoc:await r(import("eslint-plugin-jsdoc"))},rules:{"jsdoc/check-access":"warn","jsdoc/check-param-names":"warn","jsdoc/check-property-names":"warn","jsdoc/check-types":"warn","jsdoc/empty-tags":"warn","jsdoc/implements-on-classes":"warn","jsdoc/no-defaults":"warn","jsdoc/no-multi-asterisks":"warn","jsdoc/require-param-name":"warn","jsdoc/require-property":"warn","jsdoc/require-property-description":"warn","jsdoc/require-property-name":"warn","jsdoc/require-returns-check":"warn","jsdoc/require-returns-description":"warn","jsdoc/require-yields-check":"warn","jsdoc/check-alignment":"warn","jsdoc/multiline-blocks":"warn"}}]}var M=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-jsonc")),r(import("jsonc-eslint-parser"))]);return[{name:"eslint:jsonc:setup",plugins:{jsonc:t}},{name:"eslint:jsonc:rules",files:[w,O,G],languageOptions:{parser:n},rules:{"jsonc/no-bigint-literals":"error","jsonc/no-binary-expression":"error","jsonc/no-binary-numeric-literals":"error","jsonc/no-dupe-keys":"error","jsonc/no-escape-sequence-in-identifier":"error","jsonc/no-floating-decimal":"error","jsonc/no-hexadecimal-numeric-literals":"error","jsonc/no-infinity":"error","jsonc/no-multi-str":"error","jsonc/no-nan":"error","jsonc/no-number-props":"error","jsonc/no-numeric-separators":"error","jsonc/no-octal":"error","jsonc/no-octal-escape":"error","jsonc/no-octal-numeric-literals":"error","jsonc/no-parenthesized":"error","jsonc/no-plus-sign":"error","jsonc/no-regexp-literals":"error","jsonc/no-sparse-arrays":"error","jsonc/no-template-literals":"error","jsonc/no-undefined-value":"error","jsonc/no-unicode-codepoint-escapes":"error","jsonc/no-useless-escape":"error","jsonc/space-unary-ops":"error","jsonc/valid-json-number":"error","jsonc/vue-custom-block/no-parsing-error":"error","jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","always-multiline"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"jsonc/object-curly-newline":["error",{consistent:!0,multiline:!0}],"jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error",...o}}]};var A=async e=>{let{componentExts:o=[],overrides:t={}}=e,[n,a]=await Promise.all([r(import("eslint-plugin-mdx")),r(import("eslint-mdx"))]);return[{name:"eslint:markdown:setup",plugins:{mdx:n}},{name:"eslint:markdown:processor",files:[f,y],languageOptions:{ecmaVersion:"latest",parser:a,sourceType:"module"},processor:"mdx/remark",settings:{"mdx/code-blocks":!0}},{name:"eslint:markdown:rules",files:[I,...o.map(l=>`${f}/**/*.${l}`)],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{"no-alert":"off","no-console":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","node/prefer-global/process":"off","@typescript-eslint/consistent-type-imports":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":"off","@typescript-eslint/no-var-requires":"off","unicode-bom":"off","unused-imports/no-unused-imports":"off","unused-imports/no-unused-vars":"off","@typescript-eslint/await-thenable":"off","@typescript-eslint/dot-notation":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-for-in-array":"off","@typescript-eslint/no-implied-eval":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-throw-literal":"off","@typescript-eslint/no-unnecessary-type-assertion":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/restrict-plus-operands":"off","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/unbound-method":"off",...t}}]};async function J(){return[{name:"eslint:node",plugins:{n:await r(import("eslint-plugin-n"))},rules:{"n/handle-callback-err":["error","^(err|error)$"],"n/no-deprecated-api":"error","n/no-exports-assign":"error","n/no-new-require":"error","n/no-path-concat":"error","n/prefer-global/buffer":["error","never"],"n/prefer-global/process":["error","never"],"n/process-exit-as-throw":"error"}}]}async function U(){return[{name:"eslint:sort-package-json",files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:{type:"asc"},pathPattern:"^(?:resolutions|overrides|pnpm.overrides)$"},{order:["types","import","require","default"],pathPattern:"^exports.*$"}]}}]}async function N(){return[{name:"eslint:sort-tsconfig",files:["**/tsconfig.json","**/tsconfig.*.json"],rules:{"jsonc/sort-keys":["error",{order:["extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","jsx","jsxFactory","jsxFragmentFactory","jsxImportSource","lib","moduleDetection","noLib","reactNamespace","useDefineForClassFields","emitDecoratorMetadata","experimentalDecorators","baseUrl","rootDir","rootDirs","customConditions","module","moduleResolution","moduleSuffixes","noResolve","paths","resolveJsonModule","resolvePackageJsonExports","resolvePackageJsonImports","typeRoots","types","allowArbitraryExtensions","allowImportingTsExtensions","allowUmdGlobalAccess","allowJs","checkJs","maxNodeModuleJsDepth","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","declaration","declarationDir","declarationMap","downlevelIteration","emitBOM","emitDeclarationOnly","importHelpers","importsNotUsedAsValues","inlineSourceMap","inlineSources","mapRoot","newLine","noEmit","noEmitHelpers","noEmitOnError","outDir","outFile","preserveConstEnums","preserveValueImports","removeComments","sourceMap","sourceRoot","stripInternal","allowSyntheticDefaultImports","esModuleInterop","forceConsistentCasingInFileNames","isolatedModules","preserveSymlinks","verbatimModuleSyntax","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]}import ie from"process";var ae={"dot-notation":"off","no-implied-eval":"off","no-throw-literal":"off","@typescript-eslint/await-thenable":"error","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"@typescript-eslint/no-floating-promises":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-implied-eval":"error","@typescript-eslint/no-misused-promises":"error","@typescript-eslint/no-throw-literal":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/restrict-plus-operands":"error","@typescript-eslint/restrict-template-expressions":"error","@typescript-eslint/unbound-method":"error"},$=async e=>{let{overrides:o={},componentExts:t=[],parserOptions:n={},tsconfigPath:a}=e??{},[l,m]=await Promise.all([r(import("@typescript-eslint/eslint-plugin")),r(import("@typescript-eslint/parser"))]);return[{name:"eslint:typescript:setup",plugins:{"@typescript-eslint":l}},{name:"eslint:typescript:rules",files:[d,...t.map(p=>`**/*.${p}`)],languageOptions:{parser:m,parserOptions:{extraFileExtensions:t.map(p=>`.${p}`),sourceType:"module",...a?{project:[a],tsconfigRootDir:ie.cwd()}:{},...n}},rules:{...l.configs["eslint-recommended"].overrides[0].rules,...l.configs.strict.rules,"no-dupe-class-members":"off","no-invalid-this":"off","no-loss-of-precision":"off","no-redeclare":"off","no-use-before-define":"off","no-useless-constructor":"off","@typescript-eslint/ban-ts-comment":["error",{"ts-ignore":"allow-with-description"}],"@typescript-eslint/ban-types":["error",{types:{Function:!1}}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/consistent-type-imports":["error",{disallowTypeAnnotations:!1,prefer:"type-imports"}],"@typescript-eslint/no-dupe-class-members":"error","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-extraneous-class":"off","@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-this":"error","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loss-of-precision":"error","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-redeclare":"error","@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-use-before-define":["error",{classes:!1,functions:!1,variables:!0}],"@typescript-eslint/no-useless-constructor":"off","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/triple-slash-reference":"off","@typescript-eslint/unified-signatures":"off",...a?ae:{},...o}},{name:"eslint:typescript:dts-overrides",files:["**/*.d.ts"],rules:{"eslint-comments/no-unlimited-disable":"off","import/no-duplicates":"off","no-restricted-syntax":"off","unused-imports/no-unused-vars":"off"}},{name:"eslint:typescript:tests-overrides",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"eslint:typescript:javascript-overrides",rules:{"@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-var-requires":"off"}}]};async function V(){return[{name:"eslint:unicorn",plugins:{unicorn:await r(import("eslint-plugin-unicorn"))},rules:{"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/no-instanceof-array":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/number-literal-case":"error","unicorn/prefer-dom-node-text-content":"error","unicorn/prefer-includes":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-type-error":"error","unicorn/throw-new-error":"error"}}]}var W=async(e={})=>{let{overrides:o={},typescript:t}=e,[n,a]=await Promise.all([r(import("eslint-plugin-vue")),r(import("vue-eslint-parser"))]);return[{name:"eslint:vue:setup",plugins:{vue:n}},{name:"eslint:vue:rules",files:[h],languageOptions:{parser:a,parserOptions:{ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"],parser:t?await r(import("@typescript-eslint/parser")):null,sourceType:"module"}},processor:n.processors[".vue"],rules:{...n.configs.base.rules,...n.configs["vue3-essential"].rules,...n.configs["vue3-strongly-recommended"].rules,...n.configs["vue3-recommended"].rules,"node/prefer-global/process":"off","vue/block-order":["error",{order:["script","template","style"]}],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1}],"vue/component-options-name-casing":["error","PascalCase"],"vue/custom-event-name-casing":["error","camelCase"],"vue/define-macros-order":["error",{order:["defineOptions","defineProps","defineEmits","defineSlots"]}],"vue/dot-location":["error","property"],"vue/dot-notation":["error",{allowKeywords:!0}],"vue/eqeqeq":["error","smart"],"vue/html-indent":["error",2],"vue/html-quotes":["error","double"],"vue/max-attributes-per-line":"off","vue/multi-word-component-names":"off","vue/no-dupe-keys":"off","vue/no-empty-pattern":"error","vue/no-extra-parens":["error","functions"],"vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"error","vue/no-restricted-syntax":["error","DebuggerStatement","LabeledStatement","WithStatement"],"vue/no-restricted-v-bind":["error","/^v-/"],"vue/no-setup-props-reactivity-loss":"off","vue/no-sparse-arrays":"error","vue/no-unused-refs":"error","vue/no-useless-v-bind":"error","vue/no-v-html":"off","vue/object-shorthand":["error","always",{avoidQuotes:!0,ignoreConstructors:!1}],"vue/prefer-separate-static-class":"error","vue/prefer-template":"error","vue/require-default-prop":"off","vue/require-prop-types":"off","vue/space-infix-ops":"error","vue/space-unary-ops":["error",{nonwords:!1,words:!0}],"vue/array-bracket-spacing":["error","never"],"vue/arrow-spacing":["error",{after:!0,before:!0}],"vue/block-spacing":["error","always"],"vue/block-tag-newline":["error",{multiline:"always",singleline:"always"}],"vue/brace-style":["error","stroustrup",{allowSingleLine:!0}],"vue/comma-dangle":["error","always-multiline"],"vue/comma-spacing":["error",{after:!0,before:!1}],"vue/comma-style":["error","last"],"vue/html-comment-content-spacing":["error","always",{exceptions:["-"]}],"vue/key-spacing":["error",{afterColon:!0,beforeColon:!1}],"vue/keyword-spacing":["error",{after:!0,before:!0}],"vue/object-curly-newline":"off","vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"vue/operator-linebreak":["error","before"],"vue/padding-line-between-blocks":["error","always"],"vue/quote-props":["error","consistent-as-needed"],"vue/space-in-parens":["error","never"],"vue/template-curly-spacing":"error",...o}}]};var X=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-yml")),r(import("yaml-eslint-parser"))]);return[{name:"eslint:yaml:setup",plugins:{yml:t}},{name:"eslint:yaml:rules",files:[g],languageOptions:{parser:n},rules:{...t.configs.standard.rules,...t.configs.prettier.rules,"yml/block-mapping":"error","yml/block-sequence":"error","yml/no-empty-key":"error","yml/no-empty-sequence-entry":"error","yml/no-irregular-whitespace":"error","yml/plain-scalar":"error","yml/vue-custom-block/no-parsing-error":"error","yml/spaced-comment":"error",...o}}]};var Y=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-toml")),r(import("toml-eslint-parser"))]);return[{name:"eslint:toml:setup",plugins:{toml:t}},{name:"eslint:toml:rules",files:[x],languageOptions:{parser:n},rules:{"style/spaced-comment":"off","toml/comma-style":"error","toml/keys-order":"error","toml/no-space-dots":"error","toml/no-unreadable-number-separator":"error","toml/precision-of-fractional-seconds":"error","toml/precision-of-integer":"error","toml/tables-order":"error","toml/vue-custom-block/no-parsing-error":"error","toml/array-bracket-newline":"error","toml/array-bracket-spacing":"error","toml/array-element-newline":"error","toml/indent":["error",2],"toml/inline-table-curly-spacing":"error","toml/key-spacing":"error","toml/padding-line-between-pairs":"error","toml/padding-line-between-tables":"error","toml/quoted-keys":"error","toml/spaced-comment":"error","toml/table-bracket-spacing":"error",...o}}]};var H=async e=>{let{overrides:o={}}=e,[t,n]=await Promise.all([r(import("eslint-plugin-vitest")),r(import("eslint-plugin-no-only-tests"))]);return[{name:"eslint:test:setup",plugins:{test:{...t,rules:{...t.rules,...n.rules}}}},{name:"eslint:test:rules",files:D,rules:{"test/consistent-test-it":["error",{fn:"it",withinDescribe:"it"}],"test/no-identical-title":"error","test/no-only-tests":"error","test/prefer-hooks-in-order":"error","test/prefer-lowercase-title":"error",...o}}]};async function K(){return[{name:"eslint:perfectionist",plugins:{perfectionist:await r(import("eslint-plugin-perfectionist"))}}]}var z=async e=>{let[o,t,n]=await Promise.all([r(import("eslint-plugin-prettier")),r(import("eslint-config-prettier")),r(import("eslint-parser-plain"))]),a=[{name:"eslint:prettier:markdown",files:[f],parser:"markdown"},{name:"eslint:prettier:mdx",files:[y],parser:"mdx"},{name:"eslint:prettier:html",files:["**/*.html"],parser:"html"},{name:"eslint:prettier:css",files:[P,T],parser:"css"},{name:"eslint:prettier:scss",files:[L],parser:"scss"},{name:"eslint:prettier:less",files:[_],parser:"less"},{name:"eslint:prettier:yaml",files:[g],parser:"yaml"},{name:"eslint:prettier:graphql",files:["**/*.graphql"],parser:"graphql"}].map(l=>({name:l.name,files:l.files,languageOptions:{parser:n},rules:{"prettier/prettier":["warn",{quoteProps:"consistent",parser:l.parser,...e}]}}));return[{name:"eslint:prettier:setup",plugins:{prettier:o}},{name:"eslint:prettier:rules",ignores:[x],rules:{...t.rules,...o.configs.recommended.rules,"prettier/prettier":["warn",{quoteProps:"consistent",...e}]}},...a]};async function pe(){let e=await r(import("@next/eslint-plugin-next"));return[{name:"eslint:next:setup",plugins:{"@next/next":e}},{name:"eslint:next:rules",files:[C,v],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...e.configs.recommended.rules,...e.configs["core-web-vitals"].rules}}]}var Q=async e=>{let{next:o=!1,overrides:t={}}=e,[n,a]=await Promise.all([r(import("eslint-plugin-react")),r(import("eslint-plugin-react-hooks"))]),l=[{name:"eslint:react:setup",plugins:{react:n,"react-hooks":a}},{name:"eslint:react:rules",files:[C,v],languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0}}},settings:{react:{version:"detect"}},rules:{...n.configs.recommended.rules,...a.configs.recommended.rules,"jsx-quotes":["error","prefer-double"],"react/react-in-jsx-scope":"off","react/jsx-indent":[1,2],"react/jsx-indent-props":[1,2],"react/jsx-closing-bracket-location":[1,{selfClosing:"tag-aligned",nonEmpty:"tag-aligned"}],...t}}];return b(l,o?pe():[])};async function Z(){let e=await r(import("eslint-plugin-tailwindcss"));return[{name:"eslint:tailwindcss",plugins:{tailwindcss:e},rules:{...e.configs.recommended.rules}}]}function c(e){return e?typeof e!="boolean"?e:{}:{}}function ee(e={}){let{ignores:o=!0,vue:t,react:n,typescript:a,tailwindcss:l,componentExts:m=[]}=e,p=[];return p.push(E(c(o)),R(e.javascript??{}),k(),J(),q(),F(),V(),K()),t&&m.push("vue"),a&&p.push($({...typeof a!="boolean"?a:{},componentExts:m})),(e.test??!0)&&p.push(H(c(e.test))),t&&p.push(W({...c(e.vue),typescript:!!a})),n&&p.push(Q(c(n))),(e.jsonc??!0)&&p.push(M(c(e.jsonc)),U(),N()),(e.yml??!0)&&p.push(X(c(e.yml))),(e.toml??!0)&&p.push(Y(c(e.toml))),(e.markdown??!0)&&p.push(A({...c(e.markdown),componentExts:m})),l&&p.push(Z()),(e.prettier??!0)&&p.push(z(c(e.prettier))),b(...p,e.customConfig??[])}var io=ee;export{ge as GLOB_ALL_SRC,P as GLOB_CSS,j as GLOB_EXCLUDE,oe as GLOB_HTML,fe as GLOB_JS,w as GLOB_JSON,O as GLOB_JSON5,G as GLOB_JSONC,v as GLOB_JSX,_ as GLOB_LESS,f as GLOB_MARKDOWN,I as GLOB_MARKDOWN_CODE,y as GLOB_MDX,T as GLOB_POSTCSS,L as GLOB_SCSS,d as GLOB_SRC,u as GLOB_SRC_EXT,re as GLOB_STYLE,D as GLOB_TESTS,x as GLOB_TOML,de as GLOB_TS,C as GLOB_TSX,h as GLOB_VUE,g as GLOB_YAML,b as combine,k as comments,ee as config,io as default,E as ignores,F as imports,r as interopDefault,R as javascript,q as jsdoc,M as jsonc,A as markdown,J as node,K as perfectionist,z as prettier,U as sortPackageJson,N as sortTsconfig,H as test,Y as toml,$ as typescript,V as unicorn,W as vue,X as yml};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "3.0.2",
|
|
5
|
+
"packageManager": "pnpm@8.14.1",
|
|
6
6
|
"description": "Brendan Dash's ESLint config",
|
|
7
7
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
8
8
|
"license": "MIT",
|
|
@@ -27,54 +27,54 @@
|
|
|
27
27
|
"eslint": ">=8.40.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@next/eslint-plugin-next": "^14.0
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
32
|
-
"@typescript-eslint/parser": "^6.
|
|
30
|
+
"@next/eslint-plugin-next": "^14.1.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
32
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
33
33
|
"eslint-config-prettier": "^9.1.0",
|
|
34
|
-
"eslint-define-config": "^2.
|
|
35
|
-
"eslint-mdx": "^3.
|
|
34
|
+
"eslint-define-config": "^2.1.0",
|
|
35
|
+
"eslint-mdx": "^3.1.5",
|
|
36
36
|
"eslint-parser-plain": "^0.1.0",
|
|
37
37
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
38
|
-
"eslint-plugin-i": "^2.29.
|
|
39
|
-
"eslint-plugin-jsdoc": "^
|
|
40
|
-
"eslint-plugin-jsonc": "^2.
|
|
38
|
+
"eslint-plugin-i": "^2.29.1",
|
|
39
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
40
|
+
"eslint-plugin-jsonc": "^2.12.2",
|
|
41
41
|
"eslint-plugin-markdown": "^3.0.1",
|
|
42
|
-
"eslint-plugin-mdx": "^3.
|
|
43
|
-
"eslint-plugin-n": "^16.
|
|
42
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
43
|
+
"eslint-plugin-n": "^16.6.2",
|
|
44
44
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
45
45
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
46
|
-
"eslint-plugin-prettier": "^5.
|
|
46
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
47
47
|
"eslint-plugin-react": "^7.33.2",
|
|
48
48
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
49
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
50
|
-
"eslint-plugin-toml": "^0.
|
|
51
|
-
"eslint-plugin-unicorn": "^
|
|
49
|
+
"eslint-plugin-tailwindcss": "^3.14.0",
|
|
50
|
+
"eslint-plugin-toml": "^0.9.2",
|
|
51
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
52
52
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
53
|
-
"eslint-plugin-vitest": "^0.3.
|
|
54
|
-
"eslint-plugin-vue": "^9.
|
|
55
|
-
"eslint-plugin-yml": "^1.
|
|
53
|
+
"eslint-plugin-vitest": "^0.3.20",
|
|
54
|
+
"eslint-plugin-vue": "^9.20.1",
|
|
55
|
+
"eslint-plugin-yml": "^1.12.2",
|
|
56
56
|
"globals": "^13.24.0",
|
|
57
57
|
"jsonc-eslint-parser": "^2.4.0",
|
|
58
|
-
"prettier": "^3.
|
|
58
|
+
"prettier": "^3.2.4",
|
|
59
59
|
"toml-eslint-parser": "^0.9.3",
|
|
60
|
-
"vue-eslint-parser": "^9.
|
|
60
|
+
"vue-eslint-parser": "^9.4.0",
|
|
61
61
|
"yaml-eslint-parser": "^1.2.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@types/eslint": "^8.
|
|
65
|
-
"@types/node": "^20.
|
|
66
|
-
"@types/react": "^18.2.
|
|
67
|
-
"bumpp": "^9.
|
|
68
|
-
"eslint": "^8.
|
|
69
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
64
|
+
"@types/eslint": "^8.56.2",
|
|
65
|
+
"@types/node": "^20.11.5",
|
|
66
|
+
"@types/react": "^18.2.48",
|
|
67
|
+
"bumpp": "^9.3.0",
|
|
68
|
+
"eslint": "^8.56.0",
|
|
69
|
+
"eslint-flat-config-viewer": "^0.1.11",
|
|
70
70
|
"execa": "^8.0.1",
|
|
71
71
|
"fast-glob": "^3.3.2",
|
|
72
72
|
"fs-extra": "^11.2.0",
|
|
73
73
|
"react": "^18.2.0",
|
|
74
|
-
"sucrase": "^3.
|
|
74
|
+
"sucrase": "^3.35.0",
|
|
75
75
|
"tsup": "^8.0.1",
|
|
76
76
|
"typescript": "^5.3.3",
|
|
77
|
-
"vitest": "^1.
|
|
77
|
+
"vitest": "^1.2.1"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "tsup --format esm,cjs --clean --dts",
|