@jimmy.codes/eslint-config 3.10.0 → 3.11.0
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.d.cts +31 -26
- package/dist/index.d.mts +31 -26
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.create;var y=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var t=(e,r)=>y(e,"name",{value:r,configurable:!0});var Q=(e,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of N(r))!J.call(e,n)&&n!==s&&y(e,n,{get:()=>r[n],enumerable:!(o=$(r,n))||o.enumerable});return e};var i=(e,r,s)=>(s=e!=null?I(F(e)):{},Q(r||!e||!e.__esModule?y(s,"default",{value:e,enumerable:!0}):s,e));var g=require("globals"),l=require("typescript-eslint"),h=require("@eslint-community/eslint-plugin-eslint-comments/configs"),f=require("eslint-plugin-import-x"),k=require("eslint-plugin-n"),V=require("@eslint/js"),v=require("eslint-plugin-perfectionist"),X=require("eslint-config-prettier"),u=require("eslint-plugin-jest"),c=require("local-pkg"),w=require("eslint-plugin-jest-dom"),q=require("eslint-plugin-testing-library"),C=require("eslint-plugin-unicorn");const a="?([cm])[jt]s?(x)",U=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/storybook-static","**/.eslint-config-inspector","**/playwright-report","**/.astro","**/.vinxi","**/app.config.timestamp_*.js","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts","**/vite.config.ts.*.mjs","**/*.gen.*","!.storybook"],z="**/*.?([cm])js",j="**/*.?([cm])jsx",E="**/*.?([cm])tsx",m=[`**/__tests__/**/*.${a}`,`**/*.spec.${a}`,`**/*.test.${a}`,`**/*.bench.${a}`,`**/*.benchmark.${a}`],O=[`**/e2e/**/*.spec.${a}`,`**/e2e/**/*.test.${a}`,`**/cypress/**/*.spec.${a}`,`**/cypress/**/*.test.${a}`],H="**/*.cjs",M="**/*.astro",W=["vi.mock","describe","expect","it"],Y=["@testing-library/react"],D=t(e=>typeof e=="object"?e:{project:"./tsconfig.json"},"typescriptOptions"),K=t(e=>typeof e=="object"?e:{framework:"vitest"},"testingOptions"),p=t(async e=>{const r=await e;return r.default??r},"interopDefault"),Z=t(async()=>{const e=[M],[r,s,o]=await Promise.all([import("eslint-plugin-astro"),import("astro-eslint-parser"),p(import("eslint-plugin-jsx-a11y"))]);return[{files:e,languageOptions:{globals:{...g.node,Astro:!1,Fragment:!1},parser:s,parserOptions:{extraFileExtensions:[".astro"],parser:l.parser},sourceType:"module"},name:"jimmy.codes/astro",plugins:{astro:r,"jsx-a11y":o},processor:"astro/client-side-ts",rules:{...o.configs.recommended.rules,"astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"off","astro/no-unused-define-vars-in-style":"error","astro/valid-compile":"error"}},{files:e,languageOptions:{parserOptions:l.configs.disableTypeChecked.languageOptions?.parserOptions},name:"jimmy.codes/astro/disable-type-checked",rules:l.configs.disableTypeChecked.rules},{name:"jimmy.codes/astro/imports",settings:{"import-x/core-modules":["astro:content"]}}]},"astroConfig"),ee=t(()=>[{files:[H],languageOptions:{globals:g.commonjs},name:"jimmy.codes/commonjs"}],"commonjsConfig"),re={...h.recommended.rules,"@eslint-community/eslint-comments/no-unused-disable":"off","@eslint-community/eslint-comments/require-description":"error"},te=t(()=>[{...h.recommended,name:"jimmy.codes/eslint-comments",rules:re}],"eslintCommentsConfig"),se=t(e=>[{ignores:[...U,...e],name:"jimmy.codes/ignores"}],"ignoresConfig"),oe={...f.configs.recommended.rules,"import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/extensions":["error","never",{checkTypedImports:!0,svg:"always"}],"import-x/first":"error","import-x/namespace":"off","import-x/newline-after-import":"error","import-x/no-absolute-path":"error","import-x/no-duplicates":"error","import-x/no-empty-named-blocks":"error","import-x/no-named-as-default":"error","import-x/no-named-as-default-member":"error","import-x/no-self-import":"error","import-x/no-unresolved":["error",{ignore:[String.raw`\.svg$`]}],"import-x/no-useless-path-segments":"error"},ne={name:"jimmy.codes/imports/typescript",rules:f.configs.typescript.rules,settings:{...f.configs.typescript.settings,"import-x/resolver":{...f.configs.typescript.settings["import-x/resolver"],typescript:!0}}},ie=t(({typescript:e=!1}={})=>[{name:"jimmy.codes/imports",plugins:{"import-x":f,n:k},rules:oe},...e?[ne]:[]],"importsConfig"),ae={...V.configs.recommended.rules,"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","always"],curly:["error","all"],"no-console":"warn","no-self-compare":"error","no-template-curly-in-string":"error","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"no-useless-rename":"error","object-shorthand":"error","prefer-arrow-callback":"error"},ce=t(()=>[{linterOptions:{reportUnusedDisableDirectives:!0},name:"jimmy.codes/javascript",rules:ae}],"javascriptConfig"),le={"n/no-process-exit":"off","n/prefer-node-protocol":"error"},pe=t(()=>[{name:"jimmy.codes/node",plugins:{n:k},rules:le}],"nodeConfig"),fe={...v.configs["recommended-natural"].rules,"perfectionist/sort-imports":["error",{customGroups:{type:{},value:{}},environment:"node",groups:["builtin","type","external","internal-type","internal",["parent-type","sibling-type","index-type"],["parent","sibling","index"],"object","unknown"],internalPattern:["~/**","@/**"],order:"asc",type:"natural"}]},ue=t(()=>[{name:"jimmy.codes/perfectionist",plugins:{perfectionist:v},rules:fe}],"perfectionistConfig"),me=t(()=>[{name:"jimmy.codes/prettier",...X}],"prettierConfig"),de=t(e=>e===2?"error":e===1?"warn":"off","toStringSeverity"),P=t((e={})=>Object.fromEntries(Object.entries(e).map(([r,s])=>[r,typeof s=="number"?de(s):s])),"normalizeRuleEntries"),ye=t(async()=>{const[e,r]=await Promise.all([p(import("eslint-plugin-react")),p(import("eslint-plugin-jsx-a11y"))]);return{...r.configs.recommended.rules,...P(e.configs.flat?.recommended?.rules),...P(e.configs.flat?.["jsx-runtime"]?.rules),"react/boolean-prop-naming":"off","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/default-props-match-prop-types":"error","react/destructuring-assignment":"off","react/forbid-component-props":"off","react/forbid-dom-props":"off","react/forbid-elements":"off","react/forbid-foreign-prop-types":"off","react/forbid-prop-types":"off","react/forward-ref-uses-ref":"error","react/function-component-definition":"off","react/hook-use-state":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":["error","never"],"react/jsx-curly-brace-presence":"error","react/jsx-filename-extension":"off","react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":"off","react/jsx-max-depth":"off","react/jsx-no-bind":"off","react/jsx-no-constructed-context-values":"error","react/jsx-no-leaked-render":"error","react/jsx-no-literals":"off","react/jsx-no-script-url":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":"off","react/jsx-pascal-case":["error",{allowNamespace:!0}],"react/jsx-props-no-spread-multi":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-default-props":"off","react/jsx-sort-props":"off","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"off","react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"error","react/no-danger":"off","react/no-did-mount-set-state":"error","react/no-did-update-set-state":"error","react/no-invalid-html-attribute":"error","react/no-multi-comp":"off","react/no-namespace":"error","react/no-object-type-as-default-prop":"error","react/no-redundant-should-component-update":"error","react/no-set-state":"off","react/no-this-in-sfc":"error","react/no-typos":"error","react/no-unstable-nested-components":"error","react/no-unused-class-component-methods":"error","react/no-unused-prop-types":"error","react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":"off","react/prefer-exact-props":"off","react/prefer-read-only-props":"off","react/prefer-stateless-function":"off","react/require-default-props":"off","react/require-optimization":"off","react/self-closing-comp":"error","react/sort-comp":"off","react/sort-default-props":"off","react/sort-prop-types":"off","react/state-in-constructor":"off","react/static-property-placement":"off","react/style-prop-object":"error","react/void-dom-elements-no-children":"error","react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error","react-refresh/only-export-components":["warn",{allowConstantExport:!0}]}},"reactRules"),ge=t(async()=>{const[e,r,s,o]=await Promise.all([p(import("eslint-plugin-react")),p(import("eslint-plugin-jsx-a11y")),import("eslint-plugin-react-hooks"),import("eslint-plugin-react-refresh")]);return[{files:[j,E],languageOptions:{globals:{...g.browser},parserOptions:{ecmaFeatures:{jsx:!0},jsxPragma:null}},name:"jimmy.codes/react",plugins:{"jsx-a11y":r,react:e,"react-hooks":s,"react-refresh":o},rules:await ye(),settings:{react:{version:"detect"}}}]},"reactConfig"),je=t(async()=>{const e=await p(import("@tanstack/eslint-plugin-query"));return[{files:[j,E],name:"jimmy.codes/react/query",plugins:{"@tanstack/query":e},rules:{"@tanstack/query/exhaustive-deps":"error","@tanstack/query/no-rest-destructuring":"warn","@tanstack/query/stable-query-client":"error"}}]},"tanstackQuery"),xe=t(()=>c.isPackageExists("typescript"),"hasTypescript"),be=t(()=>c.isPackageExists("react"),"hasReact"),T=t(()=>c.isPackageExists("vitest"),"hasVitest"),_=t(()=>c.isPackageExists("jest"),"hasJest"),he=t(()=>T()||_(),"hasTesting"),ke=t(()=>Y.some(e=>c.isPackageExists(e)),"hasTestingLibrary"),ve=t(()=>c.isPackageExists("@tanstack/react-query"),"hasReactQuery"),we=t(()=>c.isPackageExists("astro"),"hasAstro"),R={...u.configs["flat/recommended"].rules,...u.configs["flat/style"].rules,"jest/consistent-test-it":["error",{fn:"test",withinDescribe:"it"}],"jest/no-alias-methods":"error","jest/no-commented-out-tests":"error","jest/no-conditional-in-test":"error","jest/no-confusing-set-timeout":"error","jest/no-duplicate-hooks":"error","jest/no-hooks":"off","jest/no-large-snapshots":"off","jest/no-restricted-jest-methods":"off","jest/no-restricted-matchers":"off","jest/no-test-return-statement":"error","jest/no-untyped-mock-factory":"off","jest/prefer-called-with":"error","jest/prefer-comparison-matcher":"error","jest/prefer-each":"error","jest/prefer-equality-matcher":"error","jest/prefer-expect-assertions":"off","jest/prefer-expect-resolves":"error","jest/prefer-hooks-in-order":"error","jest/prefer-hooks-on-top":"error","jest/prefer-lowercase-title":"off","jest/prefer-mock-promise-shorthand":"error","jest/prefer-snapshot-hint":"error","jest/prefer-spy-on":"off","jest/prefer-strict-equal":"error","jest/prefer-todo":"warn","jest/require-hook":"error","jest/require-to-throw-message":"error","jest/require-top-level-describe":"off","jest/unbound-method":"off"},qe=t(()=>[{files:m,name:"jimmy.codes/testing/testing-library",plugins:{"jest-dom":w,"testing-library":q},rules:{...q.configs.react.rules,...w.configs["flat/recommended"].rules}},{files:O,name:"jimmy.codes/testing/testing-library/disabled",rules:{"testing-library/prefer-screen-queries":"off"}}],"testingLibraryConfig"),Ce=t(({framework:e="vitest",utilities:r}={},s=!0)=>{const o=s?T():e==="vitest",n=e==="jest"||s&&_(),d=!!r?.includes("testing-library")||s&&ke();return[{files:m,name:"jimmy.codes/testing",...u.configs["flat/recommended"]},...o?[{files:m,name:"jimmy.codes/testing/vitest",...u.configs["flat/recommended"],rules:{...R,"jest/no-deprecated-functions":"off","jest/require-hook":["error",{allowedFunctionCalls:W}]}}]:[],...n?[{files:m,name:"jimmy.codes/testing/jest",...u.configs["flat/recommended"],rules:R}]:[],{files:O,name:"jimmy.codes/testing/disabled",rules:{"jest/expect-expect":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off"}},...d?qe():[]]},"testingConfig"),Ee=t(e=>[...l.configs.strictTypeChecked,...l.configs.stylisticTypeChecked.filter(r=>r.name==="typescript-eslint/stylistic-type-checked"),{languageOptions:{parserOptions:{project:e.project,tsconfigRootDir:process.cwd()}},name:"jimmy.codes/typescript",rules:{"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"separate-type-imports"}],"@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{attributes:!1}}],"@typescript-eslint/no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0}],"no-use-before-define":"off"}},{files:[z,j],...l.configs.disableTypeChecked},{files:m,name:"jimmy.codes/typescript/testing",rules:{"@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off"}}],"typescriptConfig"),Oe={...C.configs["flat/recommended"].rules,"unicorn/filename-case":"off","unicorn/import-style":"off","unicorn/no-abusive-eslint-disable":"off","unicorn/no-anonymous-default-export":"off","unicorn/no-array-callback-reference":"off","unicorn/no-array-reduce":"off","unicorn/no-null":"off","unicorn/no-process-exit":"off","unicorn/no-useless-undefined":["error",{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/prefer-node-protocol":"off","unicorn/prevent-abbreviations":"off"},Pe=t(()=>[{...C.configs["flat/recommended"],name:"jimmy.codes/unicorn",rules:Oe}],"unicornConfig"),Te=t(async({astro:e=!1,autoDetect:r=!0,configs:s=[],ignores:o=[],react:n=!1,testing:d=!1,typescript:x=!1}={},...L)=>{const b=x||r&&xe(),S=n||r&&be(),G=d||r&&he(),A=e||r&&we(),B=typeof n=="object"&&!!n.utilities?.includes("@tanstack/query")||r&&ve();return[ce(),ue(),pe(),Pe(),te(),ie({typescript:b}),b?Ee(D(x)):[],S?await ge():[],B?await je():[],A?await Z():[],G?Ce(K(d),r):[],me(),ee(),se(o),s,L].flat()},"jimmyDotCodes");module.exports=Te;
|
|
1
|
+
"use strict";var N=Object.create;var m=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var t=(e,r)=>m(e,"name",{value:r,configurable:!0});var X=(e,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of J(r))!V.call(e,i)&&i!==s&&m(e,i,{get:()=>r[i],enumerable:!(n=F(r,i))||n.enumerable});return e};var o=(e,r,s)=>(s=e!=null?N(Q(e)):{},X(r||!e||!e.__esModule?m(s,"default",{value:e,enumerable:!0}):s,e));var d=require("globals"),p=require("typescript-eslint"),h=require("@eslint-community/eslint-plugin-eslint-comments/configs"),f=require("eslint-plugin-import-x"),k=require("eslint-plugin-n"),U=require("@eslint/js"),v=require("eslint-plugin-perfectionist"),z=require("eslint-config-prettier"),l=require("local-pkg"),w=require("eslint-plugin-jest"),O=require("eslint-plugin-unicorn");const a="?([cm])[jt]s?(x)",H=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/storybook-static","**/.eslint-config-inspector","**/playwright-report","**/.astro","**/.vinxi","**/app.config.timestamp_*.js","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts","**/vite.config.ts.*.mjs","**/*.gen.*","!.storybook"],M="**/*.?([cm])js",y="**/*.?([cm])jsx",q="**/*.?([cm])tsx",u=[`**/__tests__/**/*.${a}`,`**/*.spec.${a}`,`**/*.test.${a}`,`**/*.bench.${a}`,`**/*.benchmark.${a}`],E=[`**/e2e/**/*.spec.${a}`,`**/e2e/**/*.test.${a}`,`**/cypress/**/*.spec.${a}`,`**/cypress/**/*.test.${a}`],W="**/*.cjs",Y="**/*.astro",D=["vi.mock","describe","expect","it"],K=["@testing-library/react"],Z=t(e=>typeof e=="object"?e:{project:"./tsconfig.json"},"getTypescriptOptions"),ee=t(e=>typeof e=="object"?e:{framework:"vitest"},"getTestingOptions"),re=t(e=>typeof e=="object"?e:{utilities:[]},"getReactOptions"),te=t(e=>!!e.utilities?.includes("@tanstack/query"),"addTanstackQuery"),se=t(e=>!!e.utilities?.includes("testing-library"),"addTestingLibrary"),c=t(async e=>{const r=await e;return r.default??r},"interopDefault"),oe=t(async()=>{const e=[Y],[r,s,n]=await Promise.all([import("eslint-plugin-astro"),import("astro-eslint-parser"),c(import("eslint-plugin-jsx-a11y"))]);return[{files:e,languageOptions:{globals:{...d.node,Astro:!1,Fragment:!1},parser:s,parserOptions:{extraFileExtensions:[".astro"],parser:p.parser},sourceType:"module"},name:"jimmy.codes/astro",plugins:{astro:r,"jsx-a11y":n},processor:"astro/client-side-ts",rules:{...n.configs.recommended.rules,"astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"off","astro/no-unused-define-vars-in-style":"error","astro/valid-compile":"error"}},{files:e,languageOptions:{parserOptions:p.configs.disableTypeChecked.languageOptions?.parserOptions},name:"jimmy.codes/astro/disable-type-checked",rules:p.configs.disableTypeChecked.rules},{name:"jimmy.codes/astro/imports",settings:{"import-x/core-modules":["astro:content"]}}]},"astroConfig"),ne=t(()=>[{files:[W],languageOptions:{globals:d.commonjs},name:"jimmy.codes/commonjs"}],"commonjsConfig"),ie={...h.recommended.rules,"@eslint-community/eslint-comments/no-unused-disable":"off","@eslint-community/eslint-comments/require-description":"error"},ae=t(()=>[{...h.recommended,name:"jimmy.codes/eslint-comments",rules:ie}],"eslintCommentsConfig"),ce=t(e=>[{ignores:[...H,...e],name:"jimmy.codes/ignores"}],"ignoresConfig"),le={...f.configs.recommended.rules,"import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/extensions":["error","never",{checkTypedImports:!0,svg:"always"}],"import-x/first":"error","import-x/namespace":"off","import-x/newline-after-import":"error","import-x/no-absolute-path":"error","import-x/no-duplicates":"error","import-x/no-empty-named-blocks":"error","import-x/no-named-as-default":"error","import-x/no-named-as-default-member":"error","import-x/no-self-import":"error","import-x/no-unresolved":["error",{ignore:[String.raw`\.svg$`]}],"import-x/no-useless-path-segments":"error"},pe={name:"jimmy.codes/imports/typescript",rules:f.configs.typescript.rules,settings:{...f.configs.typescript.settings,"import-x/resolver":{...f.configs.typescript.settings["import-x/resolver"],typescript:!0}}},fe=t(({typescript:e=!1}={})=>[{name:"jimmy.codes/imports",plugins:{"import-x":f,n:k},rules:le},...e?[pe]:[]],"importsConfig"),ue={...U.configs.recommended.rules,"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","always"],curly:["error","all"],"no-console":"warn","no-self-compare":"error","no-template-curly-in-string":"error","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"no-useless-rename":"error","object-shorthand":"error","prefer-arrow-callback":"error"},me=t(()=>[{linterOptions:{reportUnusedDisableDirectives:!0},name:"jimmy.codes/javascript",rules:ue}],"javascriptConfig"),de={"n/no-process-exit":"off","n/prefer-node-protocol":"error"},ye=t(()=>[{name:"jimmy.codes/node",plugins:{n:k},rules:de}],"nodeConfig"),ge={...v.configs["recommended-natural"].rules,"perfectionist/sort-imports":["error",{customGroups:{type:{},value:{}},environment:"node",groups:["builtin","type","external","internal-type","internal",["parent-type","sibling-type","index-type"],["parent","sibling","index"],"object","unknown"],internalPattern:["~/**","@/**"],order:"asc",type:"natural"}]},je=t(()=>[{name:"jimmy.codes/perfectionist",plugins:{perfectionist:v},rules:ge}],"perfectionistConfig"),xe=t(()=>[{name:"jimmy.codes/prettier",...z}],"prettierConfig"),be=t(e=>e===2?"error":e===1?"warn":"off","toStringSeverity"),C=t((e={})=>Object.fromEntries(Object.entries(e).map(([r,s])=>[r,typeof s=="number"?be(s):s])),"normalizeRuleEntries"),he=t(async()=>{const[e,r]=await Promise.all([c(import("eslint-plugin-react")),c(import("eslint-plugin-jsx-a11y"))]);return{...r.configs.recommended.rules,...C(e.configs.flat?.recommended?.rules),...C(e.configs.flat?.["jsx-runtime"]?.rules),"react/boolean-prop-naming":"off","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/default-props-match-prop-types":"error","react/destructuring-assignment":"off","react/forbid-component-props":"off","react/forbid-dom-props":"off","react/forbid-elements":"off","react/forbid-foreign-prop-types":"off","react/forbid-prop-types":"off","react/forward-ref-uses-ref":"error","react/function-component-definition":"off","react/hook-use-state":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":["error","never"],"react/jsx-curly-brace-presence":"error","react/jsx-filename-extension":"off","react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":"off","react/jsx-max-depth":"off","react/jsx-no-bind":"off","react/jsx-no-constructed-context-values":"error","react/jsx-no-leaked-render":"error","react/jsx-no-literals":"off","react/jsx-no-script-url":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":"off","react/jsx-pascal-case":["error",{allowNamespace:!0}],"react/jsx-props-no-spread-multi":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-default-props":"off","react/jsx-sort-props":"off","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"off","react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"error","react/no-danger":"off","react/no-did-mount-set-state":"error","react/no-did-update-set-state":"error","react/no-invalid-html-attribute":"error","react/no-multi-comp":"off","react/no-namespace":"error","react/no-object-type-as-default-prop":"error","react/no-redundant-should-component-update":"error","react/no-set-state":"off","react/no-this-in-sfc":"error","react/no-typos":"error","react/no-unstable-nested-components":"error","react/no-unused-class-component-methods":"error","react/no-unused-prop-types":"error","react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":"off","react/prefer-exact-props":"off","react/prefer-read-only-props":"off","react/prefer-stateless-function":"off","react/require-default-props":"off","react/require-optimization":"off","react/self-closing-comp":"error","react/sort-comp":"off","react/sort-default-props":"off","react/sort-prop-types":"off","react/state-in-constructor":"off","react/static-property-placement":"off","react/style-prop-object":"error","react/void-dom-elements-no-children":"error","react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error","react-refresh/only-export-components":["warn",{allowConstantExport:!0}]}},"reactRules"),ke=t(async()=>{const[e,r,s,n]=await Promise.all([c(import("eslint-plugin-react")),c(import("eslint-plugin-jsx-a11y")),import("eslint-plugin-react-hooks"),import("eslint-plugin-react-refresh")]);return[{files:[y,q],languageOptions:{globals:{...d.browser},parserOptions:{ecmaFeatures:{jsx:!0},jsxPragma:null}},name:"jimmy.codes/react",plugins:{"jsx-a11y":r,react:e,"react-hooks":s,"react-refresh":n},rules:await he(),settings:{react:{version:"detect"}}}]},"reactConfig"),ve=t(async()=>{const e=await c(import("@tanstack/eslint-plugin-query"));return[{files:[y,q],name:"jimmy.codes/react/query",plugins:{"@tanstack/query":e},rules:{"@tanstack/query/exhaustive-deps":"error","@tanstack/query/no-rest-destructuring":"warn","@tanstack/query/stable-query-client":"error"}}]},"tanstackQuery"),we=t(()=>l.isPackageExists("typescript"),"hasTypescript"),Oe=t(()=>l.isPackageExists("react"),"hasReact"),P=t(()=>l.isPackageExists("vitest"),"hasVitest"),T=t(()=>l.isPackageExists("jest"),"hasJest"),qe=t(()=>P()||T(),"hasTesting"),Ee=t(()=>K.some(e=>l.isPackageExists(e)),"hasTestingLibrary"),Ce=t(()=>l.isPackageExists("@tanstack/react-query"),"hasReactQuery"),Pe=t(()=>l.isPackageExists("astro"),"hasAstro"),_={...w.configs["flat/recommended"].rules,...w.configs["flat/style"].rules,"jest/consistent-test-it":["error",{fn:"test",withinDescribe:"it"}],"jest/no-alias-methods":"error","jest/no-commented-out-tests":"error","jest/no-conditional-in-test":"error","jest/no-confusing-set-timeout":"error","jest/no-duplicate-hooks":"error","jest/no-hooks":"off","jest/no-large-snapshots":"off","jest/no-restricted-jest-methods":"off","jest/no-restricted-matchers":"off","jest/no-test-return-statement":"error","jest/no-untyped-mock-factory":"off","jest/prefer-called-with":"error","jest/prefer-comparison-matcher":"error","jest/prefer-each":"error","jest/prefer-equality-matcher":"error","jest/prefer-expect-assertions":"off","jest/prefer-expect-resolves":"error","jest/prefer-hooks-in-order":"error","jest/prefer-hooks-on-top":"error","jest/prefer-lowercase-title":"off","jest/prefer-mock-promise-shorthand":"error","jest/prefer-snapshot-hint":"error","jest/prefer-spy-on":"off","jest/prefer-strict-equal":"error","jest/prefer-todo":"warn","jest/require-hook":"error","jest/require-to-throw-message":"error","jest/require-top-level-describe":"off","jest/unbound-method":"off"},Te=t(async({framework:e="vitest"}={},r=!0)=>{const s=await c(import("eslint-plugin-jest")),n=r?P():e==="vitest",i=e==="jest"||r&&T();return[{files:u,name:"jimmy.codes/testing",...s.configs["flat/recommended"]},...n?[{files:u,name:"jimmy.codes/testing/vitest",...s.configs["flat/recommended"],rules:{..._,"jest/no-deprecated-functions":"off","jest/require-hook":["error",{allowedFunctionCalls:D}]}}]:[],...i?[{files:u,name:"jimmy.codes/testing/jest",...s.configs["flat/recommended"],rules:_}]:[],{files:E,name:"jimmy.codes/testing/disabled",rules:{"jest/expect-expect":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off"}}]},"testingConfig"),_e=t(async()=>{const[e,r]=await Promise.all([import("eslint-plugin-jest-dom"),c(import("eslint-plugin-testing-library"))]);return[{files:u,name:"jimmy.codes/testing/testing-library",plugins:{"jest-dom":e,"testing-library":r},rules:{...r.configs.react.rules,...e.configs["flat/recommended"].rules}},{files:E,name:"jimmy.codes/testing/testing-library/disabled",rules:{"testing-library/prefer-screen-queries":"off"}}]},"testingLibrary"),Re=t(e=>[...p.configs.strictTypeChecked,...p.configs.stylisticTypeChecked.filter(r=>r.name==="typescript-eslint/stylistic-type-checked"),{languageOptions:{parserOptions:{project:e.project,tsconfigRootDir:process.cwd()}},name:"jimmy.codes/typescript",rules:{"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"separate-type-imports"}],"@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{attributes:!1}}],"@typescript-eslint/no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0}],"no-use-before-define":"off"}},{files:[M,y],...p.configs.disableTypeChecked},{files:u,name:"jimmy.codes/typescript/testing",rules:{"@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off"}}],"typescriptConfig"),Le={...O.configs["flat/recommended"].rules,"unicorn/filename-case":"off","unicorn/import-style":"off","unicorn/no-abusive-eslint-disable":"off","unicorn/no-anonymous-default-export":"off","unicorn/no-array-callback-reference":"off","unicorn/no-array-reduce":"off","unicorn/no-null":"off","unicorn/no-process-exit":"off","unicorn/no-useless-undefined":["error",{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/prefer-node-protocol":"off","unicorn/prevent-abbreviations":"off"},Se=t(()=>[{...O.configs["flat/recommended"],name:"jimmy.codes/unicorn",rules:Le}],"unicornConfig"),Ge=t(async({astro:e=!1,autoDetect:r=!0,configs:s=[],ignores:n=[],react:i=!1,testing:g=!1,typescript:j=!1}={},...R)=>{const L=re(i),x=ee(g),S=Z(j),b=j||r&&we(),G=i||r&&Oe(),A=g||r&&qe(),B=e||r&&Pe(),I=te(L)||r&&Ce(),$=se(x)||r&&Ee();return[me(),je(),ye(),Se(),ae(),fe({typescript:b}),b?Re(S):[],G?await ke():[],I?await ve():[],B?await oe():[],A?await Te(x,r):[],$?await _e():[],xe(),ne(),ce(n),s,R].flat()},"jimmyDotCodes");module.exports=Ge;
|
package/dist/index.d.cts
CHANGED
|
@@ -12174,32 +12174,6 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
12174
12174
|
"@tanstack/query/no-rest-destructuring": "warn";
|
|
12175
12175
|
"@tanstack/query/stable-query-client": "error";
|
|
12176
12176
|
};
|
|
12177
|
-
} | {
|
|
12178
|
-
files: string[];
|
|
12179
|
-
name: string;
|
|
12180
|
-
plugins: {
|
|
12181
|
-
"jest-dom": {
|
|
12182
|
-
configs: {
|
|
12183
|
-
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12184
|
-
};
|
|
12185
|
-
};
|
|
12186
|
-
"testing-library": {
|
|
12187
|
-
configs: {
|
|
12188
|
-
react: Linter.Config<Linter.RulesRecord>;
|
|
12189
|
-
};
|
|
12190
|
-
};
|
|
12191
|
-
};
|
|
12192
|
-
rules: {
|
|
12193
|
-
[x: string]: Linter.RuleEntry<any[]> | undefined;
|
|
12194
|
-
"testing-library/prefer-screen-queries"?: undefined;
|
|
12195
|
-
};
|
|
12196
|
-
} | {
|
|
12197
|
-
files: string[];
|
|
12198
|
-
name: string;
|
|
12199
|
-
rules: {
|
|
12200
|
-
"testing-library/prefer-screen-queries": "off";
|
|
12201
|
-
};
|
|
12202
|
-
plugins?: undefined;
|
|
12203
12177
|
} | {
|
|
12204
12178
|
name: string;
|
|
12205
12179
|
files: Array<string | string[]>;
|
|
@@ -12256,6 +12230,37 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
12256
12230
|
processor?: string | Linter.Processor;
|
|
12257
12231
|
plugins?: Record<string, eslint.ESLint.Plugin>;
|
|
12258
12232
|
settings?: Record<string, unknown>;
|
|
12233
|
+
} | {
|
|
12234
|
+
files: string[];
|
|
12235
|
+
name: string;
|
|
12236
|
+
plugins: {
|
|
12237
|
+
"jest-dom": {
|
|
12238
|
+
default: {
|
|
12239
|
+
configs: {
|
|
12240
|
+
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12241
|
+
};
|
|
12242
|
+
};
|
|
12243
|
+
configs: {
|
|
12244
|
+
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12245
|
+
};
|
|
12246
|
+
};
|
|
12247
|
+
"testing-library": {
|
|
12248
|
+
configs: {
|
|
12249
|
+
react: Linter.Config<Linter.RulesRecord>;
|
|
12250
|
+
};
|
|
12251
|
+
};
|
|
12252
|
+
};
|
|
12253
|
+
rules: {
|
|
12254
|
+
[x: string]: Linter.RuleEntry<any[]> | undefined;
|
|
12255
|
+
"testing-library/prefer-screen-queries"?: undefined;
|
|
12256
|
+
};
|
|
12257
|
+
} | {
|
|
12258
|
+
files: string[];
|
|
12259
|
+
name: string;
|
|
12260
|
+
rules: {
|
|
12261
|
+
"testing-library/prefer-screen-queries": "off";
|
|
12262
|
+
};
|
|
12263
|
+
plugins?: undefined;
|
|
12259
12264
|
} | {
|
|
12260
12265
|
languageOptions: {
|
|
12261
12266
|
parserOptions: {
|
package/dist/index.d.mts
CHANGED
|
@@ -12174,32 +12174,6 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
12174
12174
|
"@tanstack/query/no-rest-destructuring": "warn";
|
|
12175
12175
|
"@tanstack/query/stable-query-client": "error";
|
|
12176
12176
|
};
|
|
12177
|
-
} | {
|
|
12178
|
-
files: string[];
|
|
12179
|
-
name: string;
|
|
12180
|
-
plugins: {
|
|
12181
|
-
"jest-dom": {
|
|
12182
|
-
configs: {
|
|
12183
|
-
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12184
|
-
};
|
|
12185
|
-
};
|
|
12186
|
-
"testing-library": {
|
|
12187
|
-
configs: {
|
|
12188
|
-
react: Linter.Config<Linter.RulesRecord>;
|
|
12189
|
-
};
|
|
12190
|
-
};
|
|
12191
|
-
};
|
|
12192
|
-
rules: {
|
|
12193
|
-
[x: string]: Linter.RuleEntry<any[]> | undefined;
|
|
12194
|
-
"testing-library/prefer-screen-queries"?: undefined;
|
|
12195
|
-
};
|
|
12196
|
-
} | {
|
|
12197
|
-
files: string[];
|
|
12198
|
-
name: string;
|
|
12199
|
-
rules: {
|
|
12200
|
-
"testing-library/prefer-screen-queries": "off";
|
|
12201
|
-
};
|
|
12202
|
-
plugins?: undefined;
|
|
12203
12177
|
} | {
|
|
12204
12178
|
name: string;
|
|
12205
12179
|
files: Array<string | string[]>;
|
|
@@ -12256,6 +12230,37 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
12256
12230
|
processor?: string | Linter.Processor;
|
|
12257
12231
|
plugins?: Record<string, eslint.ESLint.Plugin>;
|
|
12258
12232
|
settings?: Record<string, unknown>;
|
|
12233
|
+
} | {
|
|
12234
|
+
files: string[];
|
|
12235
|
+
name: string;
|
|
12236
|
+
plugins: {
|
|
12237
|
+
"jest-dom": {
|
|
12238
|
+
default: {
|
|
12239
|
+
configs: {
|
|
12240
|
+
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12241
|
+
};
|
|
12242
|
+
};
|
|
12243
|
+
configs: {
|
|
12244
|
+
"flat/recommended": Linter.Config<Linter.RulesRecord>;
|
|
12245
|
+
};
|
|
12246
|
+
};
|
|
12247
|
+
"testing-library": {
|
|
12248
|
+
configs: {
|
|
12249
|
+
react: Linter.Config<Linter.RulesRecord>;
|
|
12250
|
+
};
|
|
12251
|
+
};
|
|
12252
|
+
};
|
|
12253
|
+
rules: {
|
|
12254
|
+
[x: string]: Linter.RuleEntry<any[]> | undefined;
|
|
12255
|
+
"testing-library/prefer-screen-queries"?: undefined;
|
|
12256
|
+
};
|
|
12257
|
+
} | {
|
|
12258
|
+
files: string[];
|
|
12259
|
+
name: string;
|
|
12260
|
+
rules: {
|
|
12261
|
+
"testing-library/prefer-screen-queries": "off";
|
|
12262
|
+
};
|
|
12263
|
+
plugins?: undefined;
|
|
12259
12264
|
} | {
|
|
12260
12265
|
languageOptions: {
|
|
12261
12266
|
parserOptions: {
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var A=Object.defineProperty;var r=(e,t)=>A(e,"name",{value:t,configurable:!0});import d from"globals";import{parser as B,configs as p}from"typescript-eslint";import x from"@eslint-community/eslint-plugin-eslint-comments/configs";import l from"eslint-plugin-import-x";import b from"eslint-plugin-n";import I from"@eslint/js";import h from"eslint-plugin-perfectionist";import $ from"eslint-config-prettier";import f from"eslint-plugin-jest";import{isPackageExists as i}from"local-pkg";import k from"eslint-plugin-jest-dom";import v from"eslint-plugin-testing-library";import w from"eslint-plugin-unicorn";const s="?([cm])[jt]s?(x)",N=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/storybook-static","**/.eslint-config-inspector","**/playwright-report","**/.astro","**/.vinxi","**/app.config.timestamp_*.js","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts","**/vite.config.ts.*.mjs","**/*.gen.*","!.storybook"],F="**/*.?([cm])js",y="**/*.?([cm])jsx",C="**/*.?([cm])tsx",m=[`**/__tests__/**/*.${s}`,`**/*.spec.${s}`,`**/*.test.${s}`,`**/*.bench.${s}`,`**/*.benchmark.${s}`],O=[`**/e2e/**/*.spec.${s}`,`**/e2e/**/*.test.${s}`,`**/cypress/**/*.spec.${s}`,`**/cypress/**/*.test.${s}`],J="**/*.cjs",Q="**/*.astro",V=["vi.mock","describe","expect","it"],X=["@testing-library/react"],U=r(e=>typeof e=="object"?e:{project:"./tsconfig.json"},"typescriptOptions"),z=r(e=>typeof e=="object"?e:{framework:"vitest"},"testingOptions"),a=r(async e=>{const t=await e;return t.default??t},"interopDefault"),H=r(async()=>{const e=[Q],[t,o,n]=await Promise.all([import("eslint-plugin-astro"),import("astro-eslint-parser"),a(import("eslint-plugin-jsx-a11y"))]);return[{files:e,languageOptions:{globals:{...d.node,Astro:!1,Fragment:!1},parser:o,parserOptions:{extraFileExtensions:[".astro"],parser:B},sourceType:"module"},name:"jimmy.codes/astro",plugins:{astro:t,"jsx-a11y":n},processor:"astro/client-side-ts",rules:{...n.configs.recommended.rules,"astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"off","astro/no-unused-define-vars-in-style":"error","astro/valid-compile":"error"}},{files:e,languageOptions:{parserOptions:p.disableTypeChecked.languageOptions?.parserOptions},name:"jimmy.codes/astro/disable-type-checked",rules:p.disableTypeChecked.rules},{name:"jimmy.codes/astro/imports",settings:{"import-x/core-modules":["astro:content"]}}]},"astroConfig"),M=r(()=>[{files:[J],languageOptions:{globals:d.commonjs},name:"jimmy.codes/commonjs"}],"commonjsConfig"),W={...x.recommended.rules,"@eslint-community/eslint-comments/no-unused-disable":"off","@eslint-community/eslint-comments/require-description":"error"},Y=r(()=>[{...x.recommended,name:"jimmy.codes/eslint-comments",rules:W}],"eslintCommentsConfig"),D=r(e=>[{ignores:[...N,...e],name:"jimmy.codes/ignores"}],"ignoresConfig"),K={...l.configs.recommended.rules,"import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/extensions":["error","never",{checkTypedImports:!0,svg:"always"}],"import-x/first":"error","import-x/namespace":"off","import-x/newline-after-import":"error","import-x/no-absolute-path":"error","import-x/no-duplicates":"error","import-x/no-empty-named-blocks":"error","import-x/no-named-as-default":"error","import-x/no-named-as-default-member":"error","import-x/no-self-import":"error","import-x/no-unresolved":["error",{ignore:[String.raw`\.svg$`]}],"import-x/no-useless-path-segments":"error"},Z={name:"jimmy.codes/imports/typescript",rules:l.configs.typescript.rules,settings:{...l.configs.typescript.settings,"import-x/resolver":{...l.configs.typescript.settings["import-x/resolver"],typescript:!0}}},ee=r(({typescript:e=!1}={})=>[{name:"jimmy.codes/imports",plugins:{"import-x":l,n:b},rules:K},...e?[Z]:[]],"importsConfig"),re={...I.configs.recommended.rules,"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","always"],curly:["error","all"],"no-console":"warn","no-self-compare":"error","no-template-curly-in-string":"error","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"no-useless-rename":"error","object-shorthand":"error","prefer-arrow-callback":"error"},te=r(()=>[{linterOptions:{reportUnusedDisableDirectives:!0},name:"jimmy.codes/javascript",rules:re}],"javascriptConfig"),oe={"n/no-process-exit":"off","n/prefer-node-protocol":"error"},se=r(()=>[{name:"jimmy.codes/node",plugins:{n:b},rules:oe}],"nodeConfig"),ne={...h.configs["recommended-natural"].rules,"perfectionist/sort-imports":["error",{customGroups:{type:{},value:{}},environment:"node",groups:["builtin","type","external","internal-type","internal",["parent-type","sibling-type","index-type"],["parent","sibling","index"],"object","unknown"],internalPattern:["~/**","@/**"],order:"asc",type:"natural"}]},ie=r(()=>[{name:"jimmy.codes/perfectionist",plugins:{perfectionist:h},rules:ne}],"perfectionistConfig"),ae=r(()=>[{name:"jimmy.codes/prettier",...$}],"prettierConfig"),ce=r(e=>e===2?"error":e===1?"warn":"off","toStringSeverity"),T=r((e={})=>Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="number"?ce(o):o])),"normalizeRuleEntries"),pe=r(async()=>{const[e,t]=await Promise.all([a(import("eslint-plugin-react")),a(import("eslint-plugin-jsx-a11y"))]);return{...t.configs.recommended.rules,...T(e.configs.flat?.recommended?.rules),...T(e.configs.flat?.["jsx-runtime"]?.rules),"react/boolean-prop-naming":"off","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/default-props-match-prop-types":"error","react/destructuring-assignment":"off","react/forbid-component-props":"off","react/forbid-dom-props":"off","react/forbid-elements":"off","react/forbid-foreign-prop-types":"off","react/forbid-prop-types":"off","react/forward-ref-uses-ref":"error","react/function-component-definition":"off","react/hook-use-state":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":["error","never"],"react/jsx-curly-brace-presence":"error","react/jsx-filename-extension":"off","react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":"off","react/jsx-max-depth":"off","react/jsx-no-bind":"off","react/jsx-no-constructed-context-values":"error","react/jsx-no-leaked-render":"error","react/jsx-no-literals":"off","react/jsx-no-script-url":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":"off","react/jsx-pascal-case":["error",{allowNamespace:!0}],"react/jsx-props-no-spread-multi":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-default-props":"off","react/jsx-sort-props":"off","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"off","react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"error","react/no-danger":"off","react/no-did-mount-set-state":"error","react/no-did-update-set-state":"error","react/no-invalid-html-attribute":"error","react/no-multi-comp":"off","react/no-namespace":"error","react/no-object-type-as-default-prop":"error","react/no-redundant-should-component-update":"error","react/no-set-state":"off","react/no-this-in-sfc":"error","react/no-typos":"error","react/no-unstable-nested-components":"error","react/no-unused-class-component-methods":"error","react/no-unused-prop-types":"error","react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":"off","react/prefer-exact-props":"off","react/prefer-read-only-props":"off","react/prefer-stateless-function":"off","react/require-default-props":"off","react/require-optimization":"off","react/self-closing-comp":"error","react/sort-comp":"off","react/sort-default-props":"off","react/sort-prop-types":"off","react/state-in-constructor":"off","react/static-property-placement":"off","react/style-prop-object":"error","react/void-dom-elements-no-children":"error","react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error","react-refresh/only-export-components":["warn",{allowConstantExport:!0}]}},"reactRules"),le=r(async()=>{const[e,t,o,n]=await Promise.all([a(import("eslint-plugin-react")),a(import("eslint-plugin-jsx-a11y")),import("eslint-plugin-react-hooks"),import("eslint-plugin-react-refresh")]);return[{files:[y,C],languageOptions:{globals:{...d.browser},parserOptions:{ecmaFeatures:{jsx:!0},jsxPragma:null}},name:"jimmy.codes/react",plugins:{"jsx-a11y":t,react:e,"react-hooks":o,"react-refresh":n},rules:await pe(),settings:{react:{version:"detect"}}}]},"reactConfig"),fe=r(async()=>{const e=await a(import("@tanstack/eslint-plugin-query"));return[{files:[y,C],name:"jimmy.codes/react/query",plugins:{"@tanstack/query":e},rules:{"@tanstack/query/exhaustive-deps":"error","@tanstack/query/no-rest-destructuring":"warn","@tanstack/query/stable-query-client":"error"}}]},"tanstackQuery"),me=r(()=>i("typescript"),"hasTypescript"),ue=r(()=>i("react"),"hasReact"),_=r(()=>i("vitest"),"hasVitest"),q=r(()=>i("jest"),"hasJest"),de=r(()=>_()||q(),"hasTesting"),ye=r(()=>X.some(e=>i(e)),"hasTestingLibrary"),ge=r(()=>i("@tanstack/react-query"),"hasReactQuery"),je=r(()=>i("astro"),"hasAstro"),E={...f.configs["flat/recommended"].rules,...f.configs["flat/style"].rules,"jest/consistent-test-it":["error",{fn:"test",withinDescribe:"it"}],"jest/no-alias-methods":"error","jest/no-commented-out-tests":"error","jest/no-conditional-in-test":"error","jest/no-confusing-set-timeout":"error","jest/no-duplicate-hooks":"error","jest/no-hooks":"off","jest/no-large-snapshots":"off","jest/no-restricted-jest-methods":"off","jest/no-restricted-matchers":"off","jest/no-test-return-statement":"error","jest/no-untyped-mock-factory":"off","jest/prefer-called-with":"error","jest/prefer-comparison-matcher":"error","jest/prefer-each":"error","jest/prefer-equality-matcher":"error","jest/prefer-expect-assertions":"off","jest/prefer-expect-resolves":"error","jest/prefer-hooks-in-order":"error","jest/prefer-hooks-on-top":"error","jest/prefer-lowercase-title":"off","jest/prefer-mock-promise-shorthand":"error","jest/prefer-snapshot-hint":"error","jest/prefer-spy-on":"off","jest/prefer-strict-equal":"error","jest/prefer-todo":"warn","jest/require-hook":"error","jest/require-to-throw-message":"error","jest/require-top-level-describe":"off","jest/unbound-method":"off"},xe=r(()=>[{files:m,name:"jimmy.codes/testing/testing-library",plugins:{"jest-dom":k,"testing-library":v},rules:{...v.configs.react.rules,...k.configs["flat/recommended"].rules}},{files:O,name:"jimmy.codes/testing/testing-library/disabled",rules:{"testing-library/prefer-screen-queries":"off"}}],"testingLibraryConfig"),be=r(({framework:e="vitest",utilities:t}={},o=!0)=>{const n=o?_():e==="vitest",c=e==="jest"||o&&q(),u=!!t?.includes("testing-library")||o&&ye();return[{files:m,name:"jimmy.codes/testing",...f.configs["flat/recommended"]},...n?[{files:m,name:"jimmy.codes/testing/vitest",...f.configs["flat/recommended"],rules:{...E,"jest/no-deprecated-functions":"off","jest/require-hook":["error",{allowedFunctionCalls:V}]}}]:[],...c?[{files:m,name:"jimmy.codes/testing/jest",...f.configs["flat/recommended"],rules:E}]:[],{files:O,name:"jimmy.codes/testing/disabled",rules:{"jest/expect-expect":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off"}},...u?xe():[]]},"testingConfig"),he=r(e=>[...p.strictTypeChecked,...p.stylisticTypeChecked.filter(t=>t.name==="typescript-eslint/stylistic-type-checked"),{languageOptions:{parserOptions:{project:e.project,tsconfigRootDir:process.cwd()}},name:"jimmy.codes/typescript",rules:{"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"separate-type-imports"}],"@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{attributes:!1}}],"@typescript-eslint/no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0}],"no-use-before-define":"off"}},{files:[F,y],...p.disableTypeChecked},{files:m,name:"jimmy.codes/typescript/testing",rules:{"@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off"}}],"typescriptConfig"),ke={...w.configs["flat/recommended"].rules,"unicorn/filename-case":"off","unicorn/import-style":"off","unicorn/no-abusive-eslint-disable":"off","unicorn/no-anonymous-default-export":"off","unicorn/no-array-callback-reference":"off","unicorn/no-array-reduce":"off","unicorn/no-null":"off","unicorn/no-process-exit":"off","unicorn/no-useless-undefined":["error",{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/prefer-node-protocol":"off","unicorn/prevent-abbreviations":"off"},ve=r(()=>[{...w.configs["flat/recommended"],name:"jimmy.codes/unicorn",rules:ke}],"unicornConfig"),we=r(async({astro:e=!1,autoDetect:t=!0,configs:o=[],ignores:n=[],react:c=!1,testing:u=!1,typescript:g=!1}={},...R)=>{const j=g||t&&me(),L=c||t&&ue(),P=u||t&&de(),S=e||t&&je(),G=typeof c=="object"&&!!c.utilities?.includes("@tanstack/query")||t&&ge();return[te(),ie(),se(),ve(),Y(),ee({typescript:j}),j?he(U(g)):[],L?await le():[],G?await fe():[],S?await H():[],P?be(z(u),t):[],ae(),M(),D(n),o,R].flat()},"jimmyDotCodes");export{we as default};
|
|
1
|
+
var I=Object.defineProperty;var r=(e,t)=>I(e,"name",{value:t,configurable:!0});import m from"globals";import{parser as $,configs as c}from"typescript-eslint";import b from"@eslint-community/eslint-plugin-eslint-comments/configs";import p from"eslint-plugin-import-x";import x from"eslint-plugin-n";import N from"@eslint/js";import h from"eslint-plugin-perfectionist";import F from"eslint-config-prettier";import{isPackageExists as a}from"local-pkg";import k from"eslint-plugin-jest";import v from"eslint-plugin-unicorn";const s="?([cm])[jt]s?(x)",J=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/storybook-static","**/.eslint-config-inspector","**/playwright-report","**/.astro","**/.vinxi","**/app.config.timestamp_*.js","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts","**/vite.config.ts.*.mjs","**/*.gen.*","!.storybook"],Q="**/*.?([cm])js",u="**/*.?([cm])jsx",w="**/*.?([cm])tsx",l=[`**/__tests__/**/*.${s}`,`**/*.spec.${s}`,`**/*.test.${s}`,`**/*.bench.${s}`,`**/*.benchmark.${s}`],O=[`**/e2e/**/*.spec.${s}`,`**/e2e/**/*.test.${s}`,`**/cypress/**/*.spec.${s}`,`**/cypress/**/*.test.${s}`],V="**/*.cjs",X="**/*.astro",U=["vi.mock","describe","expect","it"],z=["@testing-library/react"],H=r(e=>typeof e=="object"?e:{project:"./tsconfig.json"},"getTypescriptOptions"),M=r(e=>typeof e=="object"?e:{framework:"vitest"},"getTestingOptions"),W=r(e=>typeof e=="object"?e:{utilities:[]},"getReactOptions"),Y=r(e=>!!e.utilities?.includes("@tanstack/query"),"addTanstackQuery"),D=r(e=>!!e.utilities?.includes("testing-library"),"addTestingLibrary"),i=r(async e=>{const t=await e;return t.default??t},"interopDefault"),K=r(async()=>{const e=[X],[t,o,n]=await Promise.all([import("eslint-plugin-astro"),import("astro-eslint-parser"),i(import("eslint-plugin-jsx-a11y"))]);return[{files:e,languageOptions:{globals:{...m.node,Astro:!1,Fragment:!1},parser:o,parserOptions:{extraFileExtensions:[".astro"],parser:$},sourceType:"module"},name:"jimmy.codes/astro",plugins:{astro:t,"jsx-a11y":n},processor:"astro/client-side-ts",rules:{...n.configs.recommended.rules,"astro/missing-client-only-directive-value":"error","astro/no-conflict-set-directives":"error","astro/no-deprecated-astro-canonicalurl":"error","astro/no-deprecated-astro-fetchcontent":"error","astro/no-deprecated-astro-resolve":"error","astro/no-deprecated-getentrybyslug":"error","astro/no-exports-from-components":"off","astro/no-unused-define-vars-in-style":"error","astro/valid-compile":"error"}},{files:e,languageOptions:{parserOptions:c.disableTypeChecked.languageOptions?.parserOptions},name:"jimmy.codes/astro/disable-type-checked",rules:c.disableTypeChecked.rules},{name:"jimmy.codes/astro/imports",settings:{"import-x/core-modules":["astro:content"]}}]},"astroConfig"),Z=r(()=>[{files:[V],languageOptions:{globals:m.commonjs},name:"jimmy.codes/commonjs"}],"commonjsConfig"),ee={...b.recommended.rules,"@eslint-community/eslint-comments/no-unused-disable":"off","@eslint-community/eslint-comments/require-description":"error"},re=r(()=>[{...b.recommended,name:"jimmy.codes/eslint-comments",rules:ee}],"eslintCommentsConfig"),te=r(e=>[{ignores:[...J,...e],name:"jimmy.codes/ignores"}],"ignoresConfig"),oe={...p.configs.recommended.rules,"import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/extensions":["error","never",{checkTypedImports:!0,svg:"always"}],"import-x/first":"error","import-x/namespace":"off","import-x/newline-after-import":"error","import-x/no-absolute-path":"error","import-x/no-duplicates":"error","import-x/no-empty-named-blocks":"error","import-x/no-named-as-default":"error","import-x/no-named-as-default-member":"error","import-x/no-self-import":"error","import-x/no-unresolved":["error",{ignore:[String.raw`\.svg$`]}],"import-x/no-useless-path-segments":"error"},se={name:"jimmy.codes/imports/typescript",rules:p.configs.typescript.rules,settings:{...p.configs.typescript.settings,"import-x/resolver":{...p.configs.typescript.settings["import-x/resolver"],typescript:!0}}},ne=r(({typescript:e=!1}={})=>[{name:"jimmy.codes/imports",plugins:{"import-x":p,n:x},rules:oe},...e?[se]:[]],"importsConfig"),ie={...N.configs.recommended.rules,"array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","always"],curly:["error","all"],"no-console":"warn","no-self-compare":"error","no-template-curly-in-string":"error","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"no-useless-rename":"error","object-shorthand":"error","prefer-arrow-callback":"error"},ae=r(()=>[{linterOptions:{reportUnusedDisableDirectives:!0},name:"jimmy.codes/javascript",rules:ie}],"javascriptConfig"),ce={"n/no-process-exit":"off","n/prefer-node-protocol":"error"},pe=r(()=>[{name:"jimmy.codes/node",plugins:{n:x},rules:ce}],"nodeConfig"),le={...h.configs["recommended-natural"].rules,"perfectionist/sort-imports":["error",{customGroups:{type:{},value:{}},environment:"node",groups:["builtin","type","external","internal-type","internal",["parent-type","sibling-type","index-type"],["parent","sibling","index"],"object","unknown"],internalPattern:["~/**","@/**"],order:"asc",type:"natural"}]},fe=r(()=>[{name:"jimmy.codes/perfectionist",plugins:{perfectionist:h},rules:le}],"perfectionistConfig"),me=r(()=>[{name:"jimmy.codes/prettier",...F}],"prettierConfig"),ue=r(e=>e===2?"error":e===1?"warn":"off","toStringSeverity"),C=r((e={})=>Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="number"?ue(o):o])),"normalizeRuleEntries"),de=r(async()=>{const[e,t]=await Promise.all([i(import("eslint-plugin-react")),i(import("eslint-plugin-jsx-a11y"))]);return{...t.configs.recommended.rules,...C(e.configs.flat?.recommended?.rules),...C(e.configs.flat?.["jsx-runtime"]?.rules),"react/boolean-prop-naming":"off","react/button-has-type":"error","react/checked-requires-onchange-or-readonly":"error","react/default-props-match-prop-types":"error","react/destructuring-assignment":"off","react/forbid-component-props":"off","react/forbid-dom-props":"off","react/forbid-elements":"off","react/forbid-foreign-prop-types":"off","react/forbid-prop-types":"off","react/forward-ref-uses-ref":"error","react/function-component-definition":"off","react/hook-use-state":"error","react/iframe-missing-sandbox":"error","react/jsx-boolean-value":["error","never"],"react/jsx-curly-brace-presence":"error","react/jsx-filename-extension":"off","react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":"off","react/jsx-max-depth":"off","react/jsx-no-bind":"off","react/jsx-no-constructed-context-values":"error","react/jsx-no-leaked-render":"error","react/jsx-no-literals":"off","react/jsx-no-script-url":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":"off","react/jsx-pascal-case":["error",{allowNamespace:!0}],"react/jsx-props-no-spread-multi":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-default-props":"off","react/jsx-sort-props":"off","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"off","react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"error","react/no-danger":"off","react/no-did-mount-set-state":"error","react/no-did-update-set-state":"error","react/no-invalid-html-attribute":"error","react/no-multi-comp":"off","react/no-namespace":"error","react/no-object-type-as-default-prop":"error","react/no-redundant-should-component-update":"error","react/no-set-state":"off","react/no-this-in-sfc":"error","react/no-typos":"error","react/no-unstable-nested-components":"error","react/no-unused-class-component-methods":"error","react/no-unused-prop-types":"error","react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":"off","react/prefer-exact-props":"off","react/prefer-read-only-props":"off","react/prefer-stateless-function":"off","react/require-default-props":"off","react/require-optimization":"off","react/self-closing-comp":"error","react/sort-comp":"off","react/sort-default-props":"off","react/sort-prop-types":"off","react/state-in-constructor":"off","react/static-property-placement":"off","react/style-prop-object":"error","react/void-dom-elements-no-children":"error","react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error","react-refresh/only-export-components":["warn",{allowConstantExport:!0}]}},"reactRules"),ye=r(async()=>{const[e,t,o,n]=await Promise.all([i(import("eslint-plugin-react")),i(import("eslint-plugin-jsx-a11y")),import("eslint-plugin-react-hooks"),import("eslint-plugin-react-refresh")]);return[{files:[u,w],languageOptions:{globals:{...m.browser},parserOptions:{ecmaFeatures:{jsx:!0},jsxPragma:null}},name:"jimmy.codes/react",plugins:{"jsx-a11y":t,react:e,"react-hooks":o,"react-refresh":n},rules:await de(),settings:{react:{version:"detect"}}}]},"reactConfig"),ge=r(async()=>{const e=await i(import("@tanstack/eslint-plugin-query"));return[{files:[u,w],name:"jimmy.codes/react/query",plugins:{"@tanstack/query":e},rules:{"@tanstack/query/exhaustive-deps":"error","@tanstack/query/no-rest-destructuring":"warn","@tanstack/query/stable-query-client":"error"}}]},"tanstackQuery"),je=r(()=>a("typescript"),"hasTypescript"),be=r(()=>a("react"),"hasReact"),T=r(()=>a("vitest"),"hasVitest"),E=r(()=>a("jest"),"hasJest"),xe=r(()=>T()||E(),"hasTesting"),he=r(()=>z.some(e=>a(e)),"hasTestingLibrary"),ke=r(()=>a("@tanstack/react-query"),"hasReactQuery"),ve=r(()=>a("astro"),"hasAstro"),_={...k.configs["flat/recommended"].rules,...k.configs["flat/style"].rules,"jest/consistent-test-it":["error",{fn:"test",withinDescribe:"it"}],"jest/no-alias-methods":"error","jest/no-commented-out-tests":"error","jest/no-conditional-in-test":"error","jest/no-confusing-set-timeout":"error","jest/no-duplicate-hooks":"error","jest/no-hooks":"off","jest/no-large-snapshots":"off","jest/no-restricted-jest-methods":"off","jest/no-restricted-matchers":"off","jest/no-test-return-statement":"error","jest/no-untyped-mock-factory":"off","jest/prefer-called-with":"error","jest/prefer-comparison-matcher":"error","jest/prefer-each":"error","jest/prefer-equality-matcher":"error","jest/prefer-expect-assertions":"off","jest/prefer-expect-resolves":"error","jest/prefer-hooks-in-order":"error","jest/prefer-hooks-on-top":"error","jest/prefer-lowercase-title":"off","jest/prefer-mock-promise-shorthand":"error","jest/prefer-snapshot-hint":"error","jest/prefer-spy-on":"off","jest/prefer-strict-equal":"error","jest/prefer-todo":"warn","jest/require-hook":"error","jest/require-to-throw-message":"error","jest/require-top-level-describe":"off","jest/unbound-method":"off"},we=r(async({framework:e="vitest"}={},t=!0)=>{const o=await i(import("eslint-plugin-jest")),n=t?T():e==="vitest",f=e==="jest"||t&&E();return[{files:l,name:"jimmy.codes/testing",...o.configs["flat/recommended"]},...n?[{files:l,name:"jimmy.codes/testing/vitest",...o.configs["flat/recommended"],rules:{..._,"jest/no-deprecated-functions":"off","jest/require-hook":["error",{allowedFunctionCalls:U}]}}]:[],...f?[{files:l,name:"jimmy.codes/testing/jest",...o.configs["flat/recommended"],rules:_}]:[],{files:O,name:"jimmy.codes/testing/disabled",rules:{"jest/expect-expect":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off"}}]},"testingConfig"),Oe=r(async()=>{const[e,t]=await Promise.all([import("eslint-plugin-jest-dom"),i(import("eslint-plugin-testing-library"))]);return[{files:l,name:"jimmy.codes/testing/testing-library",plugins:{"jest-dom":e,"testing-library":t},rules:{...t.configs.react.rules,...e.configs["flat/recommended"].rules}},{files:O,name:"jimmy.codes/testing/testing-library/disabled",rules:{"testing-library/prefer-screen-queries":"off"}}]},"testingLibrary"),Ce=r(e=>[...c.strictTypeChecked,...c.stylisticTypeChecked.filter(t=>t.name==="typescript-eslint/stylistic-type-checked"),{languageOptions:{parserOptions:{project:e.project,tsconfigRootDir:process.cwd()}},name:"jimmy.codes/typescript",rules:{"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"separate-type-imports"}],"@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{attributes:!1}}],"@typescript-eslint/no-use-before-define":["error",{allowNamedExports:!1,classes:!1,functions:!1,variables:!0}],"@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0}],"no-use-before-define":"off"}},{files:[Q,u],...c.disableTypeChecked},{files:l,name:"jimmy.codes/typescript/testing",rules:{"@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off"}}],"typescriptConfig"),Te={...v.configs["flat/recommended"].rules,"unicorn/filename-case":"off","unicorn/import-style":"off","unicorn/no-abusive-eslint-disable":"off","unicorn/no-anonymous-default-export":"off","unicorn/no-array-callback-reference":"off","unicorn/no-array-reduce":"off","unicorn/no-null":"off","unicorn/no-process-exit":"off","unicorn/no-useless-undefined":["error",{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/prefer-node-protocol":"off","unicorn/prevent-abbreviations":"off"},Ee=r(()=>[{...v.configs["flat/recommended"],name:"jimmy.codes/unicorn",rules:Te}],"unicornConfig"),_e=r(async({astro:e=!1,autoDetect:t=!0,configs:o=[],ignores:n=[],react:f=!1,testing:d=!1,typescript:y=!1}={},...q)=>{const P=W(f),g=M(d),R=H(y),j=y||t&&je(),L=f||t&&be(),S=d||t&&xe(),G=e||t&&ve(),A=Y(P)||t&&ke(),B=D(g)||t&&he();return[ae(),fe(),pe(),Ee(),re(),ne({typescript:j}),j?Ce(R):[],L?await ye():[],A?await ge():[],G?await K():[],S?await we(g,t):[],B?await Oe():[],me(),Z(),te(n),o,q].flat()},"jimmyDotCodes");export{_e as default};
|