@lntvow/eslint-config 9.35.0 → 9.35.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 CHANGED
@@ -1 +1 @@
1
- "use strict";var be=Object.create;var h=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var he=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var _e=(e,r)=>{for(var o in r)h(e,o,{get:r[o],enumerable:!0})},W=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of he(r))!Te.call(e,s)&&s!==o&&h(e,s,{get:()=>r[s],enumerable:!(n=Oe(r,s))||n.enumerable});return e};var a=(e,r,o)=>(o=e!=null?be(Ce(e)):{},W(r||!e||!e.__esModule?h(o,"default",{value:e,enumerable:!0}):o,e)),Le=e=>W(h({},"__esModule",{value:!0}),e);var Xe={};_e(Xe,{GLOB_ALL_SRC:()=>Ve,GLOB_ASTRO:()=>Ne,GLOB_CSS:()=>Ie,GLOB_EXCLUDE:()=>I,GLOB_GRAPHQL:()=>Ae,GLOB_HTML:()=>re,GLOB_JS:()=>je,GLOB_JSON:()=>z,GLOB_JSON5:()=>Y,GLOB_JSONC:()=>Ee,GLOB_JSX:()=>Fe,GLOB_LESS:()=>Be,GLOB_MARKDOWN:()=>j,GLOB_MARKDOWN_CODE:()=>Ue,GLOB_MARKDOWN_IN_MARKDOWN:()=>Re,GLOB_POSTCSS:()=>Ge,GLOB_SCSS:()=>Pe,GLOB_SRC:()=>m,GLOB_SRC_EXT:()=>f,GLOB_STYLE:()=>H,GLOB_SVELTE:()=>Q,GLOB_TESTS:()=>F,GLOB_TOML:()=>qe,GLOB_TS:()=>S,GLOB_TSX:()=>k,GLOB_VUE:()=>C,GLOB_XML:()=>ee,GLOB_YAML:()=>Z,combine:()=>ke,custom:()=>L,disables:()=>G,getRulesFromConfig:()=>c,gitignore:()=>B,ignores:()=>P,imports:()=>E,javascript:()=>q,lntvow:()=>we,notInRecommendedRules:()=>ae,prettier:()=>N,regexp:()=>U,renameRules:()=>Se,stylistic:()=>V,test:()=>M,typescript:()=>$,unicorn:()=>D,vue:()=>K,vueExtensionRules:()=>ge,vueUncategorizedRules:()=>ve});module.exports=Le(Xe);function Se(e,r){return Object.fromEntries(Object.entries(e).map(([o,n])=>{for(let[s,l]of Object.entries(r))if(o.startsWith(`${s}/`))return[l+o.slice(s.length),n];return[o,n]}))}async function ke(...e){return(await Promise.all(e)).flat()}function c(e){return e.map(r=>r.rules).reduce((r,o)=>({...r,...o}),{})}var J=a(require("@lntvow/eslint-plugin"),1);async function L(){return[{name:"lntvow/custom/setup",plugins:{lntvow:J.default}}]}var f="?([cm])[jt]s?(x)",m="**/*.?([cm])[jt]s?(x)",je="**/*.?([cm])js",Fe="**/*.?([cm])jsx",S="**/*.?([cm])ts",k="**/*.?([cm])tsx",H="**/*.{c,le,sc}ss",Ie="**/*.css",Ge="**/*.{p,post}css",Be="**/*.less",Pe="**/*.scss",z="**/*.json",Y="**/*.json5",Ee="**/*.jsonc",j="**/*.md",Re="**/*.md/*.md",Q="**/*.svelte",C="**/*.vue",Z="**/*.y?(a)ml",qe="**/*.toml",ee="**/*.xml",re="**/*.htm?(l)",Ne="**/*.astro",Ae="**/*.{g,graph}ql",Ue=`${j}/${m}`,F=[`**/__tests__/**/*.${f}`,`**/*.spec.${f}`,`**/*.test.${f}`,`**/*.bench.${f}`,`**/*.benchmark.${f}`],Ve=[m,H,z,Y,j,Q,C,Z,ee,re],I=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];async function G(){return[{files:[`scripts/${m}`],name:"lntvow/disables/scripts",rules:{"no-console":"off"}},{files:[`cli/${m}`,`cli.${f}`],name:"lntvow/disables/cli",rules:{"no-console":"off"}},{files:["**/*.d.?([cm])ts"],name:"lntvow/disables/dts",rules:{}},{files:["**/*.{test,spec}.[tj]s?(x)"],name:"lntvow/disables/test",rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"lntvow/disables/cjs",rules:{"ts/no-require-imports":"off"}}]}var oe=require("fs"),te=require("@lntvow/utils"),ne=require("@eslint/compat");async function B(e={}){let{findUpSync:r}=await import("find-up-simple"),{name:o=".gitignore",root:n=!1,files:s=n?o:r(o)||[],strict:l=!1}=e,v=(0,te.castArray)(s),g=[];for(let y of v){let b;try{b=(0,oe.readFileSync)(y,"utf8")}catch(p){if(l)throw p;continue}let i=b.split(/\r?\n/u);g.push(...i.map(p=>p.trim()).filter(p=>p&&!p.startsWith("#")).map(ne.convertIgnorePatternToMinimatch))}if(l&&v.length===0)throw new Error("No .gitignore file found");return[{name:"lntvow/gitignore",ignores:g}]}async function P(e=[]){return[{name:"lntvow/ignores",ignores:[...I,...e]}]}var se=a(require("eslint-plugin-import-x"),1);async function E(){return[{name:"lntvow/imports/setup",plugins:{import:se.default}},{name:"lntvow/imports/rules",rules:{"import/no-extraneous-dependencies":"error","import/no-useless-path-segments":"error","import/first":"error","import/newline-after-import":"error","import/no-duplicates":"error","import/order":"error"}}]}var ie=a(require("@eslint/js"),1),R=a(require("globals"),1);async function q(e={}){let{overrides:r={}}=e;return[{name:"lntvow/javascript/setup",languageOptions:{ecmaVersion:"latest",sourceType:"module",parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}},globals:{...R.default.browser,...R.default.node}},linterOptions:{reportUnusedDisableDirectives:"warn"}},{name:"lntvow/javascript/rules",rules:{...ie.default.configs.recommended.rules,...ae,"no-unused-vars":"warn",...r}}]}var ae={"array-callback-return":"error","no-await-in-loop":"off","no-constructor-return":"error","no-duplicate-imports":"error","no-inner-declarations":"error","no-promise-executor-return":"off","no-self-compare":"error","no-template-curly-in-string":"error","no-unassigned-vars":"error","no-unexpected-multiline":"off","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{functions:!1,variables:!1}],"no-useless-assignment":"off","require-atomic-updates":"off","accessor-pairs":"error","arrow-body-style":"error","block-scoped-var":"error",camelcase:"warn","capitalized-comments":"off","class-methods-use-this":"error",complexity:"off","consistent-return":"off","consistent-this":"off",curly:"off","default-case":"error","default-case-last":"error","default-param-last":"error","dot-notation":"error",eqeqeq:"error","func-name-matching":"error","func-names":"off","func-style":"off","grouped-accessor-pairs":"error","guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","logical-assignment-operators":"error","max-classes-per-file":"off","max-depth":"off","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"off","max-params":"off","max-statements":"off","new-cap":["error",{capIsNew:!1}],"no-alert":"error","no-array-constructor":"error","no-bitwise":"off","no-caller":"error","no-console":"warn","no-continue":"off","no-div-regex":"error","no-else-return":"error","no-empty-function":"error","no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":"error","no-implicit-globals":"error","no-implied-eval":"error","no-inline-comments":"off","no-invalid-this":"error","no-iterator":"error","no-label-var":"error","no-labels":"error","no-lone-blocks":"error","no-lonely-if":"error","no-loop-func":"error","no-magic-numbers":"off","no-multi-assign":"error","no-multi-str":"error","no-negated-condition":"off","no-nested-ternary":"off","no-new":"off","no-new-func":"error","no-new-wrappers":"error","no-object-constructor":"error","no-octal-escape":"error","no-param-reassign":"off","no-plusplus":"off","no-proto":"error","no-restricted-exports":"off","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-imports":"off","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":"off","no-return-assign":"error","no-script-url":"error","no-sequences":"error","no-shadow":0,"no-ternary":"off","no-throw-literal":"off","no-undef-init":"error","no-undefined":"off","no-underscore-dangle":"off","no-unneeded-ternary":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-void":"off","no-warning-comments":"off","object-shorthand":"error","one-var":"off","operator-assignment":"error","prefer-arrow-callback":"error","prefer-const":"error","prefer-destructuring":"off","prefer-exponentiation-operator":"error","prefer-named-capture-group":"off","prefer-numeric-literals":"off","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"off","prefer-regex-literals":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error",radix:"off","require-await":"off","require-unicode-regexp":"off","sort-imports":"off","sort-keys":"off","sort-vars":"off",strict:"off","symbol-description":"error","vars-on-top":"error",yoda:"error","unicode-bom":"error"};var pe=a(require("eslint-plugin-prettier"),1),le=a(require("eslint-config-prettier"),1);async function N(e={}){let{vue:r=!1}=e;return[{name:"lntvow/prettier/setup",plugins:{prettier:pe.default}},{name:"lntvow/prettier/rules",rules:{...le.default.rules,"prettier/prettier":"warn",curly:["error","multi-line"],...r?{"vue/html-self-closing":["error",{html:{void:"always",normal:"always",component:"always"},svg:"always",math:"always"}]}:{}}}]}var A=require("eslint-plugin-regexp");async function U(e={}){let{overrides:r}=e,o=A.configs["flat/recommended"].plugins.regexp,{rules:n}=A.configs["flat/recommended"];return[{name:"lntvow/regexp/setup",plugins:{regexp:o}},{name:"lntvow/regexp/rules",rules:{...n,...r}}]}var fe=a(require("@stylistic/eslint-plugin"),1);async function V(e={}){let{overrides:r={}}=e;return[{name:"lntvow/stylistic/setup",plugins:{style:fe.default}},{name:"lntvow/stylistic/rules",rules:{"style/spaced-comment":"error","style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"always",prev:"*",next:"export"},{blankLine:"always",prev:"*",next:"function"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"never",prev:"function-overload",next:"function"}],"style/lines-around-comment":["error",{beforeBlockComment:!0,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,allowEnumStart:!0,allowEnumEnd:!0,allowInterfaceStart:!0,allowInterfaceEnd:!0,allowModuleStart:!0,allowModuleEnd:!0,allowTypeStart:!0,allowTypeEnd:!0}],...r}}]}var ue=a(require("eslint-plugin-vitest"),1);async function M(e={}){let{overrides:r}=e;return[{name:"lntvow/test/setup",plugins:{test:ue.default}},{name:"lntvow/test/rules",files:[...F],rules:{"lntvow/newline-before-specified-function-call":"error",...r}}]}var d=require("typescript-eslint");async function $(e={}){let{componentExts:r=[],overrides:o={},parserOptions:n={}}=e,s=[S,k,...r.map(l=>`**/*.${l}`)];return[{name:"lntvow/typescript/setup",plugins:{ts:d.plugin}},{name:"lntvow/typescript/rules",languageOptions:{parser:d.parser,parserOptions:{sourceType:"module"}},files:s,rules:{...c(d.configs.strict),"ts/no-non-null-assertion":"off","ts/no-explicit-any":"off","ts/ban-ts-comment":"off","ts/no-unused-vars":"warn","no-use-before-define":"off","ts/no-use-before-define":["error",{functions:!1,variables:!1}],"no-unused-expressions":"off","ts/no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],...o}}]}var ce=a(require("eslint-plugin-unicorn"),1);async function D(){return[{name:"lntvow/unicorn/setup",plugins:{unicorn:ce.default}},{name:"lntvow/unicorn/rules",rules:{"unicorn/catch-error-name":"error","unicorn/consistent-empty-array-spread":"error","unicorn/consistent-existence-index-check":"error","unicorn/error-message":"error","unicorn/new-for-builtins":"error","unicorn/no-accessor-recursion":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-negated-condition":"error","unicorn/no-negation-in-equality-check":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-switch-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-string-raw":"error","unicorn/throw-new-error":"error"}}]}var me=require("local-pkg"),X=require("typescript-eslint"),de=a(require("vue-eslint-parser"),1),w=a(require("eslint-plugin-vue"),1);async function K(e={}){let{overrides:r={},vueVersion:o=Me(),typescript:n}=e;return[{name:"lntvow/vue/setup",plugins:{vue:w.default}},{name:"lntvow/vue/rules",languageOptions:{parser:de.default,parserOptions:{ecmaFeatures:{jsx:!0},parser:{ts:X.parser,tsx:X.parser},sourceType:"module"}},processor:w.default.processors[".vue"],files:[C],rules:{...ve,...ge,...o===3?{...c(w.default.configs["flat/recommended"]),"vue/block-order":["error",{order:["script[setup]","template","style[scoped]"]}],"vue/block-lang":["error",{script:n?{lang:["ts","tsx"]}:{allowNoLang:!0}}]}:{...c(w.default.configs["flat/vue2-recommended"]),"vue/block-order":["error",{order:[["script","template"],"style[scoped]"]}],"vue/block-lang":["error",{script:{allowNoLang:!0}}],"vue/component-api-style":"off"},"vue/multi-word-component-names":"off","vue/attribute-hyphenation":["error","never"],"vue/v-on-event-hyphenation":["error","never"],"vue/html-self-closing":"off","vue/html-closing-bracket-newline":"off","vue/html-closing-bracket-spacing":"off","vue/html-end-tags":"off","vue/html-indent":"off","vue/html-quotes":"off","vue/max-attributes-per-line":"off","vue/multiline-html-element-content-newline":"off","vue/mustache-interpolation-spacing":"off","vue/no-multi-spaces":"off","vue/no-spaces-around-equal-signs-in-attribute":"off","vue/singleline-html-element-content-newline":"off",...r}}]}var ve={"vue/block-lang":["error",{script:{lang:["ts","tsx"]}}],"vue/block-tag-newline":"off","vue/component-api-style":"error","vue/component-name-in-template-casing":["error","PascalCase",{ignores:["/-/"]}],"vue/component-options-name-casing":"error","vue/custom-event-name-casing":"error","vue/define-emits-declaration":"error","vue/define-macros-order":"error","vue/define-props-declaration":"error","vue/define-props-destructuring":"off","vue/enforce-style-attribute":"error","vue/html-button-has-type":"off","vue/html-comment-content-newline":"error","vue/html-comment-content-spacing":"error","vue/html-comment-indent":"off","vue/match-component-file-name":["error",{extensions:["jsx","tsx"],shouldMatchCase:!0}],"vue/match-component-import-name":"error","vue/max-lines-per-block":"off","vue/max-props":"off","vue/max-template-depth":"off","vue/new-line-between-multi-line-property":"off","vue/next-tick-style":"off","vue/no-bare-strings-in-template":"off","vue/no-boolean-default":"off","vue/no-deprecated-model-definition":"error","vue/no-duplicate-attr-inheritance":"error","vue/no-empty-component-block":"off","vue/no-import-compiler-macros":"error","vue/no-multiple-objects-in-class":"error","vue/no-negated-v-if-condition":"error","vue/no-potential-component-option-typo":"error","vue/no-ref-object-reactivity-loss":"error","vue/no-required-prop-with-default":"error","vue/no-restricted-block":"off","vue/no-restricted-call-after-await":"off","vue/no-restricted-class":"off","vue/no-restricted-component-names":"off","vue/no-restricted-component-options":"off","vue/no-restricted-custom-event":"off","vue/no-restricted-html-elements":"off","vue/no-restricted-props":"off","vue/no-restricted-static-attribute":"off","vue/no-restricted-v-bind":"off","vue/no-restricted-v-on":"off","vue/no-root-v-if":"off","vue/no-setup-props-reactivity-loss":"error","vue/no-static-inline-styles":"error","vue/no-template-target-blank":"error","vue/no-this-in-before-route-enter":"error","vue/no-undef-components":"off","vue/no-undef-properties":"error","vue/no-unsupported-features":"off","vue/no-unused-emit-declarations":"error","vue/no-unused-properties":["warn",{groups:["props","data","computed","methods","setup"]}],"vue/no-unused-refs":"error","vue/no-use-v-else-with-v-for":"error","vue/no-useless-mustaches":"error","vue/no-useless-v-bind":"error","vue/no-v-text":"error","vue/padding-line-between-blocks":"error","vue/padding-line-between-tags":["error",[{blankLine:"never",prev:"*",next:"*"}]],"vue/padding-lines-in-component-definition":["error",{betweenOptions:"never"}],"vue/prefer-define-options":"error","vue/prefer-prop-type-boolean-first":"error","vue/prefer-separate-static-class":"error","vue/prefer-true-attribute-shorthand":"error","vue/prefer-use-template-ref":"off","vue/require-default-export":"off","vue/require-direct-export":"error","vue/require-emit-validator":"off","vue/require-explicit-slots":"off","vue/require-expose":"error","vue/require-macro-variable-name":"error","vue/require-name-property":"off","vue/require-prop-comment":"off","vue/require-typed-object-prop":"error","vue/require-typed-ref":"error","vue/restricted-component-names":"off","vue/script-indent":"off","vue/slot-name-casing":"error","vue/sort-keys":"off","vue/static-class-names-order":"error","vue/v-for-delimiter-style":"error","vue/v-if-else-key":"off","vue/v-on-handler-style":"off","vue/valid-define-options":"error"},ge={"vue/array-bracket-newline":"off","vue/array-bracket-spacing":"off","vue/array-element-newline":"off","vue/arrow-spacing":"off","vue/block-spacing":"off","vue/brace-style":"off","vue/camelcase":"error","vue/comma-dangle":"off","vue/comma-spacing":"off","vue/comma-style":"off","vue/dot-location":"off","vue/dot-notation":"error","vue/eqeqeq":"error","vue/func-call-spacing":"off","vue/key-spacing":"off","vue/keyword-spacing":"off","vue/max-len":"off","vue/multiline-ternary":"off","vue/no-console":"off","vue/no-constant-condition":"error","vue/no-empty-pattern":"error","vue/no-extra-parens":"off","vue/no-implicit-coercion":"error","vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"off","vue/no-negated-condition":"error","vue/no-restricted-syntax":"off","vue/no-sparse-arrays":"error","vue/no-useless-concat":"error","vue/object-curly-newline":"off","vue/object-curly-spacing":"off","vue/object-property-newline":"off","vue/object-shorthand":"error","vue/operator-linebreak":"off","vue/prefer-template":"error","vue/quote-props":"off","vue/space-in-parens":"off","vue/space-infix-ops":"off","vue/space-unary-ops":"off","vue/template-curly-spacing":"off"};function Me(){let e=(0,me.getPackageInfoSync)("vue",{paths:[process.cwd()]});return e&&e.version?Number(e.version[0]):3}var ye=require("eslint-flat-config-utils"),xe=require("@lntvow/utils"),T=require("local-pkg");var $e=["name","languageOptions","linterOptions","processor","plugins","rules","settings"],De={"import-x":"import","@typescript-eslint":"ts",vitest:"test","@stylistic":"style"};function we(e={},...r){if("files"in e)throw new Error('[@lntvow/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.');let{autoRenamePlugins:o=!0,gitignore:n=!0,stylistic:s=!0,regexp:l=!0,componentExts:v=[],typescript:g=(0,T.isPackageExists)("typescript"),vue:y=["vue","nuxt","vitepress"].some(O=>(0,T.isPackageExists)(O)),test:b=(0,T.isPackageExists)("vitest")}=e,i=[];i.push(P(e.ignores),L(),q({...u(e,"javascript")}),E(),D()),n&&i.push(B({...u(e,"gitignore")})),y&&v.push("vue"),g&&i.push($({...u(e,"typescript"),componentExts:v})),y&&i.push(K({...u(e,"vue"),typescript:!!g})),l&&i.push(U({...u(e,"regexp")})),b&&i.push(M({...u(e,"test")})),i.push(N({vue:!!y}),G()),s&&i.push(V({...u(e,"stylistic")}));let p=$e.reduce((O,_)=>(_ in e&&(O[_]=e[_]),O),{});Object.keys(p).length&&i.push([p]);let x=new ye.FlatConfigComposer;return x=x.append(...i,...r),o&&(x=x.renamePlugins(De)),x}function u(e,r){return(0,xe.isBoolean)(e[r])?{}:e[r]||{}}0&&(module.exports={GLOB_ALL_SRC,GLOB_ASTRO,GLOB_CSS,GLOB_EXCLUDE,GLOB_GRAPHQL,GLOB_HTML,GLOB_JS,GLOB_JSON,GLOB_JSON5,GLOB_JSONC,GLOB_JSX,GLOB_LESS,GLOB_MARKDOWN,GLOB_MARKDOWN_CODE,GLOB_MARKDOWN_IN_MARKDOWN,GLOB_POSTCSS,GLOB_SCSS,GLOB_SRC,GLOB_SRC_EXT,GLOB_STYLE,GLOB_SVELTE,GLOB_TESTS,GLOB_TOML,GLOB_TS,GLOB_TSX,GLOB_VUE,GLOB_XML,GLOB_YAML,combine,custom,disables,getRulesFromConfig,gitignore,ignores,imports,javascript,lntvow,notInRecommendedRules,prettier,regexp,renameRules,stylistic,test,typescript,unicorn,vue,vueExtensionRules,vueUncategorizedRules});
1
+ "use strict";var be=Object.create;var h=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var he=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var _e=(e,r)=>{for(var o in r)h(e,o,{get:r[o],enumerable:!0})},W=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of he(r))!Te.call(e,s)&&s!==o&&h(e,s,{get:()=>r[s],enumerable:!(n=Oe(r,s))||n.enumerable});return e};var a=(e,r,o)=>(o=e!=null?be(Ce(e)):{},W(r||!e||!e.__esModule?h(o,"default",{value:e,enumerable:!0}):o,e)),Le=e=>W(h({},"__esModule",{value:!0}),e);var Xe={};_e(Xe,{GLOB_ALL_SRC:()=>Ve,GLOB_ASTRO:()=>Ne,GLOB_CSS:()=>Ie,GLOB_EXCLUDE:()=>I,GLOB_GRAPHQL:()=>Ae,GLOB_HTML:()=>re,GLOB_JS:()=>je,GLOB_JSON:()=>z,GLOB_JSON5:()=>Y,GLOB_JSONC:()=>Ee,GLOB_JSX:()=>Fe,GLOB_LESS:()=>Be,GLOB_MARKDOWN:()=>j,GLOB_MARKDOWN_CODE:()=>Ue,GLOB_MARKDOWN_IN_MARKDOWN:()=>Re,GLOB_POSTCSS:()=>Ge,GLOB_SCSS:()=>Pe,GLOB_SRC:()=>m,GLOB_SRC_EXT:()=>f,GLOB_STYLE:()=>H,GLOB_SVELTE:()=>Q,GLOB_TESTS:()=>F,GLOB_TOML:()=>qe,GLOB_TS:()=>S,GLOB_TSX:()=>k,GLOB_VUE:()=>C,GLOB_XML:()=>ee,GLOB_YAML:()=>Z,combine:()=>ke,custom:()=>L,disables:()=>G,getRulesFromConfig:()=>c,gitignore:()=>B,ignores:()=>P,imports:()=>E,javascript:()=>q,lntvow:()=>we,notInRecommendedRules:()=>ae,prettier:()=>N,regexp:()=>U,renameRules:()=>Se,stylistic:()=>V,test:()=>M,typescript:()=>$,unicorn:()=>D,vue:()=>K,vueExtensionRules:()=>ge,vueUncategorizedRules:()=>ve});module.exports=Le(Xe);function Se(e,r){return Object.fromEntries(Object.entries(e).map(([o,n])=>{for(let[s,l]of Object.entries(r))if(o.startsWith(`${s}/`))return[l+o.slice(s.length),n];return[o,n]}))}async function ke(...e){return(await Promise.all(e)).flat()}function c(e){return e.map(r=>r.rules).reduce((r,o)=>({...r,...o}),{})}var J=a(require("@lntvow/eslint-plugin"),1);async function L(){return[{name:"lntvow/custom/setup",plugins:{lntvow:J.default}}]}var f="?([cm])[jt]s?(x)",m="**/*.?([cm])[jt]s?(x)",je="**/*.?([cm])js",Fe="**/*.?([cm])jsx",S="**/*.?([cm])ts",k="**/*.?([cm])tsx",H="**/*.{c,le,sc}ss",Ie="**/*.css",Ge="**/*.{p,post}css",Be="**/*.less",Pe="**/*.scss",z="**/*.json",Y="**/*.json5",Ee="**/*.jsonc",j="**/*.md",Re="**/*.md/*.md",Q="**/*.svelte",C="**/*.vue",Z="**/*.y?(a)ml",qe="**/*.toml",ee="**/*.xml",re="**/*.htm?(l)",Ne="**/*.astro",Ae="**/*.{g,graph}ql",Ue=`${j}/${m}`,F=[`**/__tests__/**/*.${f}`,`**/*.spec.${f}`,`**/*.test.${f}`,`**/*.bench.${f}`,`**/*.benchmark.${f}`],Ve=[m,H,z,Y,j,Q,C,Z,ee,re],I=["**/node_modules","**/dist","**/package-lock.json","**/yarn.lock","**/pnpm-lock.yaml","**/bun.lockb","**/output","**/coverage","**/temp","**/.temp","**/tmp","**/.tmp","**/.history","**/.vitepress/cache","**/.nuxt","**/.next","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];async function G(){return[{files:[`scripts/${m}`],name:"lntvow/disables/scripts",rules:{"no-console":"off"}},{files:[`cli/${m}`,`cli.${f}`],name:"lntvow/disables/cli",rules:{"no-console":"off"}},{files:["**/*.d.?([cm])ts"],name:"lntvow/disables/dts",rules:{}},{files:["**/*.{test,spec}.[tj]s?(x)"],name:"lntvow/disables/test",rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"lntvow/disables/cjs",rules:{"ts/no-require-imports":"off"}}]}var oe=require("fs"),te=require("@lntvow/utils"),ne=require("@eslint/compat");async function B(e={}){let{findUpSync:r}=await import("find-up-simple"),{name:o=".gitignore",root:n=!1,files:s=n?o:r(o)||[],strict:l=!1}=e,v=(0,te.castArray)(s),g=[];for(let y of v){let b;try{b=(0,oe.readFileSync)(y,"utf8")}catch(p){if(l)throw p;continue}let i=b.split(/\r?\n/u);g.push(...i.map(p=>p.trim()).filter(p=>p&&!p.startsWith("#")).map(ne.convertIgnorePatternToMinimatch))}if(l&&v.length===0)throw new Error("No .gitignore file found");return[{name:"lntvow/gitignore",ignores:g}]}async function P(e=[]){return[{name:"lntvow/ignores",ignores:[...I,...e]}]}var se=a(require("eslint-plugin-import-x"),1);async function E(){return[{name:"lntvow/imports/setup",plugins:{import:se.default}},{name:"lntvow/imports/rules",rules:{"import/no-extraneous-dependencies":"error","import/no-useless-path-segments":"error","import/first":"error","import/newline-after-import":"error","import/no-duplicates":"error","import/order":"error"}}]}var ie=a(require("@eslint/js"),1),R=a(require("globals"),1);async function q(e={}){let{overrides:r={}}=e;return[{name:"lntvow/javascript/setup",languageOptions:{ecmaVersion:"latest",sourceType:"module",parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}},globals:{...R.default.browser,...R.default.node}},linterOptions:{reportUnusedDisableDirectives:"warn"}},{name:"lntvow/javascript/rules",rules:{...ie.default.configs.recommended.rules,...ae,"no-unused-vars":"warn",...r}}]}var ae={"array-callback-return":"error","no-await-in-loop":"off","no-constructor-return":"error","no-duplicate-imports":"error","no-inner-declarations":"error","no-promise-executor-return":"off","no-self-compare":"error","no-template-curly-in-string":"error","no-unassigned-vars":"error","no-unexpected-multiline":"off","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{functions:!1,variables:!1}],"no-useless-assignment":"off","require-atomic-updates":"off","accessor-pairs":"error","arrow-body-style":"error","block-scoped-var":"error",camelcase:"warn","capitalized-comments":"off","class-methods-use-this":"error",complexity:"off","consistent-return":"off","consistent-this":"off",curly:"off","default-case":"error","default-case-last":"error","default-param-last":"error","dot-notation":"error",eqeqeq:"error","func-name-matching":"error","func-names":"off","func-style":"off","grouped-accessor-pairs":"error","guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","logical-assignment-operators":"error","max-classes-per-file":"off","max-depth":"off","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"off","max-params":"off","max-statements":"off","new-cap":["error",{capIsNew:!1}],"no-alert":"error","no-array-constructor":"error","no-bitwise":"off","no-caller":"error","no-console":"warn","no-continue":"off","no-div-regex":"error","no-else-return":"error","no-empty-function":"error","no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":"error","no-implicit-globals":"error","no-implied-eval":"error","no-inline-comments":"off","no-invalid-this":"error","no-iterator":"error","no-label-var":"error","no-labels":"error","no-lone-blocks":"error","no-lonely-if":"error","no-loop-func":"error","no-magic-numbers":"off","no-multi-assign":"error","no-multi-str":"error","no-negated-condition":"off","no-nested-ternary":"off","no-new":"off","no-new-func":"error","no-new-wrappers":"error","no-object-constructor":"error","no-octal-escape":"error","no-param-reassign":"off","no-plusplus":"off","no-proto":"error","no-restricted-exports":"off","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-imports":"off","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":"off","no-return-assign":"error","no-script-url":"error","no-sequences":"error","no-shadow":0,"no-ternary":"off","no-throw-literal":"off","no-undef-init":"error","no-undefined":"off","no-underscore-dangle":"off","no-unneeded-ternary":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-void":"off","no-warning-comments":"off","object-shorthand":"error","one-var":"off","operator-assignment":"error","prefer-arrow-callback":"error","prefer-const":"error","prefer-destructuring":"off","prefer-exponentiation-operator":"error","prefer-named-capture-group":"off","prefer-numeric-literals":"off","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"off","prefer-regex-literals":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error",radix:"off","require-await":"off","require-unicode-regexp":"off","sort-imports":"off","sort-keys":"off","sort-vars":"off",strict:"off","symbol-description":"error","vars-on-top":"error",yoda:"error","unicode-bom":"error"};var pe=a(require("eslint-plugin-prettier"),1),le=a(require("eslint-config-prettier"),1);async function N(e={}){let{vue:r=!1}=e;return[{name:"lntvow/prettier/setup",plugins:{prettier:pe.default}},{name:"lntvow/prettier/rules",rules:{...le.default.rules,"prettier/prettier":"warn",curly:["error","multi-line"],...r?{"vue/html-self-closing":["error",{html:{void:"always",normal:"always",component:"always"},svg:"always",math:"always"}]}:{}}}]}var A=require("eslint-plugin-regexp");async function U(e={}){let{overrides:r}=e,o=A.configs["flat/recommended"].plugins.regexp,{rules:n}=A.configs["flat/recommended"];return[{name:"lntvow/regexp/setup",plugins:{regexp:o}},{name:"lntvow/regexp/rules",rules:{...n,...r}}]}var fe=a(require("@stylistic/eslint-plugin"),1);async function V(e={}){let{overrides:r={}}=e;return[{name:"lntvow/stylistic/setup",plugins:{style:fe.default}},{name:"lntvow/stylistic/rules",rules:{"style/spaced-comment":"error","style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"always",prev:"*",next:"export"},{blankLine:"always",prev:"*",next:"function"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"never",prev:"function-overload",next:"function"}],"style/lines-around-comment":["error",{beforeBlockComment:!0,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,allowEnumStart:!0,allowEnumEnd:!0,allowInterfaceStart:!0,allowInterfaceEnd:!0,allowModuleStart:!0,allowModuleEnd:!0,allowTypeStart:!0,allowTypeEnd:!0}],...r}}]}var ue=a(require("eslint-plugin-vitest"),1);async function M(e={}){let{overrides:r}=e;return[{name:"lntvow/test/setup",plugins:{test:ue.default}},{name:"lntvow/test/rules",files:[...F],rules:{"lntvow/newline-before-specified-function-call":"error",...r}}]}var d=require("typescript-eslint");async function $(e={}){let{componentExts:r=[],overrides:o={},parserOptions:n={}}=e,s=[S,k,...r.map(l=>`**/*.${l}`)];return[{name:"lntvow/typescript/setup",plugins:{ts:d.plugin}},{name:"lntvow/typescript/rules",languageOptions:{parser:d.parser,parserOptions:{sourceType:"module"}},files:s,rules:{...c(d.configs.strict),"ts/no-non-null-assertion":"off","ts/no-explicit-any":"off","ts/ban-ts-comment":"off","ts/no-unused-vars":"warn","no-use-before-define":"off","ts/no-use-before-define":["error",{functions:!1,variables:!1}],"no-unused-expressions":"off","ts/no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],...o}}]}var ce=a(require("eslint-plugin-unicorn"),1);async function D(){return[{name:"lntvow/unicorn/setup",plugins:{unicorn:ce.default}},{name:"lntvow/unicorn/rules",rules:{"unicorn/catch-error-name":"error","unicorn/consistent-empty-array-spread":"error","unicorn/consistent-existence-index-check":"error","unicorn/error-message":"error","unicorn/new-for-builtins":"error","unicorn/no-accessor-recursion":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-negated-condition":"error","unicorn/no-negation-in-equality-check":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-switch-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-string-raw":"error","unicorn/throw-new-error":"error"}}]}var me=require("local-pkg"),X=require("typescript-eslint"),de=a(require("vue-eslint-parser"),1),w=a(require("eslint-plugin-vue"),1);async function K(e={}){let{overrides:r={},vueVersion:o=Me(),typescript:n}=e;return[{name:"lntvow/vue/setup",plugins:{vue:w.default}},{name:"lntvow/vue/rules",languageOptions:{parser:de.default,parserOptions:{ecmaFeatures:{jsx:!0},parser:{ts:X.parser,tsx:X.parser},sourceType:"module"}},processor:w.default.processors[".vue"],files:[C],rules:{...ve,...ge,...o===3?{...c(w.default.configs["flat/recommended"]),"vue/block-order":["error",{order:["script[setup]","template","style[scoped]"]}],"vue/block-lang":["error",{script:n?{lang:["ts","tsx"]}:{allowNoLang:!0}}]}:{...c(w.default.configs["flat/vue2-recommended"]),"vue/block-order":["error",{order:[["script","template"],"style[scoped]"]}],"vue/block-lang":["error",{script:{allowNoLang:!0}}],"vue/component-api-style":"off"},"vue/multi-word-component-names":"off","vue/no-unused-vars":"warn","vue/attribute-hyphenation":["error","never"],"vue/v-on-event-hyphenation":["error","never"],"vue/html-self-closing":"off","vue/html-closing-bracket-newline":"off","vue/html-closing-bracket-spacing":"off","vue/html-end-tags":"off","vue/html-indent":"off","vue/html-quotes":"off","vue/max-attributes-per-line":"off","vue/multiline-html-element-content-newline":"off","vue/mustache-interpolation-spacing":"off","vue/no-multi-spaces":"off","vue/no-spaces-around-equal-signs-in-attribute":"off","vue/singleline-html-element-content-newline":"off",...r}}]}var ve={"vue/block-lang":["error",{script:{lang:["ts","tsx"]}}],"vue/block-tag-newline":"off","vue/component-api-style":"error","vue/component-name-in-template-casing":["error","PascalCase",{ignores:["/-/"]}],"vue/component-options-name-casing":"error","vue/custom-event-name-casing":"error","vue/define-emits-declaration":"error","vue/define-macros-order":"error","vue/define-props-declaration":"error","vue/define-props-destructuring":"off","vue/enforce-style-attribute":"error","vue/html-button-has-type":"off","vue/html-comment-content-newline":"error","vue/html-comment-content-spacing":"error","vue/html-comment-indent":"off","vue/match-component-file-name":["error",{extensions:["jsx","tsx"],shouldMatchCase:!0}],"vue/match-component-import-name":"error","vue/max-lines-per-block":"off","vue/max-props":"off","vue/max-template-depth":"off","vue/new-line-between-multi-line-property":"off","vue/next-tick-style":"off","vue/no-bare-strings-in-template":"off","vue/no-boolean-default":"off","vue/no-deprecated-model-definition":"error","vue/no-duplicate-attr-inheritance":"error","vue/no-empty-component-block":"off","vue/no-import-compiler-macros":"error","vue/no-multiple-objects-in-class":"error","vue/no-negated-v-if-condition":"error","vue/no-potential-component-option-typo":"error","vue/no-ref-object-reactivity-loss":"error","vue/no-required-prop-with-default":"error","vue/no-restricted-block":"off","vue/no-restricted-call-after-await":"off","vue/no-restricted-class":"off","vue/no-restricted-component-names":"off","vue/no-restricted-component-options":"off","vue/no-restricted-custom-event":"off","vue/no-restricted-html-elements":"off","vue/no-restricted-props":"off","vue/no-restricted-static-attribute":"off","vue/no-restricted-v-bind":"off","vue/no-restricted-v-on":"off","vue/no-root-v-if":"off","vue/no-setup-props-reactivity-loss":"error","vue/no-static-inline-styles":"error","vue/no-template-target-blank":"error","vue/no-this-in-before-route-enter":"error","vue/no-undef-components":"off","vue/no-undef-properties":"error","vue/no-unsupported-features":"off","vue/no-unused-emit-declarations":"error","vue/no-unused-properties":["warn",{groups:["props","data","computed","methods","setup"]}],"vue/no-unused-refs":"error","vue/no-use-v-else-with-v-for":"error","vue/no-useless-mustaches":"error","vue/no-useless-v-bind":"error","vue/no-v-text":"error","vue/padding-line-between-blocks":"error","vue/padding-line-between-tags":["error",[{blankLine:"never",prev:"*",next:"*"}]],"vue/padding-lines-in-component-definition":["error",{betweenOptions:"never"}],"vue/prefer-define-options":"error","vue/prefer-prop-type-boolean-first":"error","vue/prefer-separate-static-class":"error","vue/prefer-true-attribute-shorthand":"error","vue/prefer-use-template-ref":"off","vue/require-default-export":"off","vue/require-direct-export":"error","vue/require-emit-validator":"off","vue/require-explicit-slots":"off","vue/require-expose":"error","vue/require-macro-variable-name":"error","vue/require-name-property":"off","vue/require-prop-comment":"off","vue/require-typed-object-prop":"error","vue/require-typed-ref":"error","vue/restricted-component-names":"off","vue/script-indent":"off","vue/slot-name-casing":"error","vue/sort-keys":"off","vue/static-class-names-order":"error","vue/v-for-delimiter-style":"error","vue/v-if-else-key":"off","vue/v-on-handler-style":"off","vue/valid-define-options":"error"},ge={"vue/array-bracket-newline":"off","vue/array-bracket-spacing":"off","vue/array-element-newline":"off","vue/arrow-spacing":"off","vue/block-spacing":"off","vue/brace-style":"off","vue/camelcase":"error","vue/comma-dangle":"off","vue/comma-spacing":"off","vue/comma-style":"off","vue/dot-location":"off","vue/dot-notation":"error","vue/eqeqeq":"error","vue/func-call-spacing":"off","vue/key-spacing":"off","vue/keyword-spacing":"off","vue/max-len":"off","vue/multiline-ternary":"off","vue/no-console":"off","vue/no-constant-condition":"error","vue/no-empty-pattern":"error","vue/no-extra-parens":"off","vue/no-implicit-coercion":"error","vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"off","vue/no-negated-condition":"error","vue/no-restricted-syntax":"off","vue/no-sparse-arrays":"error","vue/no-useless-concat":"error","vue/object-curly-newline":"off","vue/object-curly-spacing":"off","vue/object-property-newline":"off","vue/object-shorthand":"error","vue/operator-linebreak":"off","vue/prefer-template":"error","vue/quote-props":"off","vue/space-in-parens":"off","vue/space-infix-ops":"off","vue/space-unary-ops":"off","vue/template-curly-spacing":"off"};function Me(){let e=(0,me.getPackageInfoSync)("vue",{paths:[process.cwd()]});return e&&e.version?Number(e.version[0]):3}var ye=require("eslint-flat-config-utils"),xe=require("@lntvow/utils"),T=require("local-pkg");var $e=["name","languageOptions","linterOptions","processor","plugins","rules","settings"],De={"import-x":"import","@typescript-eslint":"ts",vitest:"test","@stylistic":"style"};function we(e={},...r){if("files"in e)throw new Error('[@lntvow/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.');let{autoRenamePlugins:o=!0,gitignore:n=!0,stylistic:s=!0,regexp:l=!0,componentExts:v=[],typescript:g=(0,T.isPackageExists)("typescript"),vue:y=["vue","nuxt","vitepress"].some(O=>(0,T.isPackageExists)(O)),test:b=(0,T.isPackageExists)("vitest")}=e,i=[];i.push(P(e.ignores),L(),q({...u(e,"javascript")}),E(),D()),n&&i.push(B({...u(e,"gitignore")})),y&&v.push("vue"),g&&i.push($({...u(e,"typescript"),componentExts:v})),y&&i.push(K({...u(e,"vue"),typescript:!!g})),l&&i.push(U({...u(e,"regexp")})),b&&i.push(M({...u(e,"test")})),i.push(N({vue:!!y}),G()),s&&i.push(V({...u(e,"stylistic")}));let p=$e.reduce((O,_)=>(_ in e&&(O[_]=e[_]),O),{});Object.keys(p).length&&i.push([p]);let x=new ye.FlatConfigComposer;return x=x.append(...i,...r),o&&(x=x.renamePlugins(De)),x}function u(e,r){return(0,xe.isBoolean)(e[r])?{}:e[r]||{}}0&&(module.exports={GLOB_ALL_SRC,GLOB_ASTRO,GLOB_CSS,GLOB_EXCLUDE,GLOB_GRAPHQL,GLOB_HTML,GLOB_JS,GLOB_JSON,GLOB_JSON5,GLOB_JSONC,GLOB_JSX,GLOB_LESS,GLOB_MARKDOWN,GLOB_MARKDOWN_CODE,GLOB_MARKDOWN_IN_MARKDOWN,GLOB_POSTCSS,GLOB_SCSS,GLOB_SRC,GLOB_SRC_EXT,GLOB_STYLE,GLOB_SVELTE,GLOB_TESTS,GLOB_TOML,GLOB_TS,GLOB_TSX,GLOB_VUE,GLOB_XML,GLOB_YAML,combine,custom,disables,getRulesFromConfig,gitignore,ignores,imports,javascript,lntvow,notInRecommendedRules,prettier,regexp,renameRules,stylistic,test,typescript,unicorn,vue,vueExtensionRules,vueUncategorizedRules});
package/dist/index.d.ts CHANGED
@@ -2219,6 +2219,11 @@ interface RuleOptions {
2219
2219
  * @see https://eslint.style/rules/eol-last
2220
2220
  */
2221
2221
  'style/eol-last'?: Linter.RuleEntry<StyleEolLast>
2222
+ /**
2223
+ * Enforce consistent spacing and line break styles inside brackets.
2224
+ * @see https://eslint.style/rules/list-style
2225
+ */
2226
+ 'style/exp-list-style'?: Linter.RuleEntry<StyleExpListStyle>
2222
2227
  /**
2223
2228
  * Enforce line breaks between arguments of a function call
2224
2229
  * @see https://eslint.style/rules/function-call-argument-newline
@@ -7561,6 +7566,50 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
7561
7566
  type StyleDotLocation = []|[("object" | "property")]
7562
7567
  // ----- style/eol-last -----
7563
7568
  type StyleEolLast = []|[("always" | "never" | "unix" | "windows")]
7569
+ // ----- style/exp-list-style -----
7570
+ type StyleExpListStyle = []|[{
7571
+ singleLine?: _StyleExpListStyle_SingleLineConfig
7572
+ multiLine?: _StyleExpListStyle_MultiLineConfig
7573
+ overrides?: {
7574
+ "[]"?: _StyleExpListStyle_BaseConfig
7575
+ "{}"?: _StyleExpListStyle_BaseConfig
7576
+ "<>"?: _StyleExpListStyle_BaseConfig
7577
+ "()"?: _StyleExpListStyle_BaseConfig
7578
+ ArrayExpression?: _StyleExpListStyle_BaseConfig
7579
+ ArrayPattern?: _StyleExpListStyle_BaseConfig
7580
+ ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig
7581
+ CallExpression?: _StyleExpListStyle_BaseConfig
7582
+ ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig
7583
+ FunctionDeclaration?: _StyleExpListStyle_BaseConfig
7584
+ FunctionExpression?: _StyleExpListStyle_BaseConfig
7585
+ ImportDeclaration?: _StyleExpListStyle_BaseConfig
7586
+ ImportAttributes?: _StyleExpListStyle_BaseConfig
7587
+ NewExpression?: _StyleExpListStyle_BaseConfig
7588
+ ObjectExpression?: _StyleExpListStyle_BaseConfig
7589
+ ObjectPattern?: _StyleExpListStyle_BaseConfig
7590
+ TSDeclareFunction?: _StyleExpListStyle_BaseConfig
7591
+ TSFunctionType?: _StyleExpListStyle_BaseConfig
7592
+ TSInterfaceBody?: _StyleExpListStyle_BaseConfig
7593
+ TSEnumBody?: _StyleExpListStyle_BaseConfig
7594
+ TSTupleType?: _StyleExpListStyle_BaseConfig
7595
+ TSTypeLiteral?: _StyleExpListStyle_BaseConfig
7596
+ TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig
7597
+ TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig
7598
+ JSONArrayExpression?: _StyleExpListStyle_BaseConfig
7599
+ JSONObjectExpression?: _StyleExpListStyle_BaseConfig
7600
+ }
7601
+ }]
7602
+ interface _StyleExpListStyle_SingleLineConfig {
7603
+ spacing?: ("always" | "never")
7604
+ maxItems?: number
7605
+ }
7606
+ interface _StyleExpListStyle_MultiLineConfig {
7607
+ minItems?: number
7608
+ }
7609
+ interface _StyleExpListStyle_BaseConfig {
7610
+ singleLine?: _StyleExpListStyle_SingleLineConfig
7611
+ multiline?: _StyleExpListStyle_MultiLineConfig
7612
+ }
7564
7613
  // ----- style/function-call-argument-newline -----
7565
7614
  type StyleFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
7566
7615
  // ----- style/function-call-spacing -----
@@ -7630,7 +7679,11 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
7630
7679
  ObjectExpression?: (number | ("first" | "off"))
7631
7680
  ImportDeclaration?: (number | ("first" | "off"))
7632
7681
  flatTernaryExpressions?: boolean
7633
- offsetTernaryExpressions?: boolean
7682
+ offsetTernaryExpressions?: (boolean | {
7683
+ CallExpression?: boolean
7684
+ AwaitExpression?: boolean
7685
+ NewExpression?: boolean
7686
+ })
7634
7687
  offsetTernaryExpressionsOffsetCallExpressions?: boolean
7635
7688
  ignoredNodes?: string[]
7636
7689
  ignoreComments?: boolean
@@ -8433,6 +8486,7 @@ type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"),
8433
8486
  TSInterfaceBody?: ("always" | "never")
8434
8487
  TSEnumBody?: ("always" | "never")
8435
8488
  }
8489
+ emptyObjects?: ("ignore" | "always" | "never")
8436
8490
  }]
8437
8491
  // ----- style/object-property-newline -----
8438
8492
  type StyleObjectPropertyNewline = []|[{
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- function Ce(e,r){return Object.fromEntries(Object.entries(e).map(([n,i])=>{for(let[p,l]of Object.entries(r))if(n.startsWith(`${p}/`))return[l+n.slice(p.length),i];return[n,i]}))}async function Te(...e){return(await Promise.all(e)).flat()}function g(e){return e.map(r=>r.rules).reduce((r,n)=>({...r,...n}),{})}import X from"@lntvow/eslint-plugin";async function T(){return[{name:"lntvow/custom/setup",plugins:{lntvow:X}}]}var f="?([cm])[jt]s?(x)",y="**/*.?([cm])[jt]s?(x)",Fe="**/*.?([cm])js",Ie="**/*.?([cm])jsx",_="**/*.?([cm])ts",L="**/*.?([cm])tsx",K="**/*.{c,le,sc}ss",Ge="**/*.css",Be="**/*.{p,post}css",Pe="**/*.less",Ee="**/*.scss",W="**/*.json",J="**/*.json5",Re="**/*.jsonc",S="**/*.md",qe="**/*.md/*.md",H="**/*.svelte",h="**/*.vue",z="**/*.y?(a)ml",Ne="**/*.toml",Y="**/*.xml",Q="**/*.htm?(l)",Ae="**/*.astro",Ue="**/*.{g,graph}ql",Ve=`${S}/${y}`,k=[`**/__tests__/**/*.${f}`,`**/*.spec.${f}`,`**/*.test.${f}`,`**/*.bench.${f}`,`**/*.benchmark.${f}`],Me=[y,K,W,J,S,H,h,z,Y,Q],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","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];async function F(){return[{files:[`scripts/${y}`],name:"lntvow/disables/scripts",rules:{"no-console":"off"}},{files:[`cli/${y}`,`cli.${f}`],name:"lntvow/disables/cli",rules:{"no-console":"off"}},{files:["**/*.d.?([cm])ts"],name:"lntvow/disables/dts",rules:{}},{files:["**/*.{test,spec}.[tj]s?(x)"],name:"lntvow/disables/test",rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"lntvow/disables/cjs",rules:{"ts/no-require-imports":"off"}}]}import{readFileSync as Z}from"fs";import{castArray as ee}from"@lntvow/utils";import{convertIgnorePatternToMinimatch as re}from"@eslint/compat";async function I(e={}){let{findUpSync:r}=await import("find-up-simple"),{name:n=".gitignore",root:i=!1,files:p=i?n:r(n)||[],strict:l=!1}=e,c=ee(p),m=[];for(let d of c){let x;try{x=Z(d,"utf8")}catch(a){if(l)throw a;continue}let s=x.split(/\r?\n/u);m.push(...s.map(a=>a.trim()).filter(a=>a&&!a.startsWith("#")).map(re))}if(l&&c.length===0)throw new Error("No .gitignore file found");return[{name:"lntvow/gitignore",ignores:m}]}async function G(e=[]){return[{name:"lntvow/ignores",ignores:[...j,...e]}]}import oe from"eslint-plugin-import-x";async function B(){return[{name:"lntvow/imports/setup",plugins:{import:oe}},{name:"lntvow/imports/rules",rules:{"import/no-extraneous-dependencies":"error","import/no-useless-path-segments":"error","import/first":"error","import/newline-after-import":"error","import/no-duplicates":"error","import/order":"error"}}]}import te from"@eslint/js";import P from"globals";async function E(e={}){let{overrides:r={}}=e;return[{name:"lntvow/javascript/setup",languageOptions:{ecmaVersion:"latest",sourceType:"module",parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}},globals:{...P.browser,...P.node}},linterOptions:{reportUnusedDisableDirectives:"warn"}},{name:"lntvow/javascript/rules",rules:{...te.configs.recommended.rules,...ne,"no-unused-vars":"warn",...r}}]}var ne={"array-callback-return":"error","no-await-in-loop":"off","no-constructor-return":"error","no-duplicate-imports":"error","no-inner-declarations":"error","no-promise-executor-return":"off","no-self-compare":"error","no-template-curly-in-string":"error","no-unassigned-vars":"error","no-unexpected-multiline":"off","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{functions:!1,variables:!1}],"no-useless-assignment":"off","require-atomic-updates":"off","accessor-pairs":"error","arrow-body-style":"error","block-scoped-var":"error",camelcase:"warn","capitalized-comments":"off","class-methods-use-this":"error",complexity:"off","consistent-return":"off","consistent-this":"off",curly:"off","default-case":"error","default-case-last":"error","default-param-last":"error","dot-notation":"error",eqeqeq:"error","func-name-matching":"error","func-names":"off","func-style":"off","grouped-accessor-pairs":"error","guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","logical-assignment-operators":"error","max-classes-per-file":"off","max-depth":"off","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"off","max-params":"off","max-statements":"off","new-cap":["error",{capIsNew:!1}],"no-alert":"error","no-array-constructor":"error","no-bitwise":"off","no-caller":"error","no-console":"warn","no-continue":"off","no-div-regex":"error","no-else-return":"error","no-empty-function":"error","no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":"error","no-implicit-globals":"error","no-implied-eval":"error","no-inline-comments":"off","no-invalid-this":"error","no-iterator":"error","no-label-var":"error","no-labels":"error","no-lone-blocks":"error","no-lonely-if":"error","no-loop-func":"error","no-magic-numbers":"off","no-multi-assign":"error","no-multi-str":"error","no-negated-condition":"off","no-nested-ternary":"off","no-new":"off","no-new-func":"error","no-new-wrappers":"error","no-object-constructor":"error","no-octal-escape":"error","no-param-reassign":"off","no-plusplus":"off","no-proto":"error","no-restricted-exports":"off","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-imports":"off","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":"off","no-return-assign":"error","no-script-url":"error","no-sequences":"error","no-shadow":0,"no-ternary":"off","no-throw-literal":"off","no-undef-init":"error","no-undefined":"off","no-underscore-dangle":"off","no-unneeded-ternary":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-void":"off","no-warning-comments":"off","object-shorthand":"error","one-var":"off","operator-assignment":"error","prefer-arrow-callback":"error","prefer-const":"error","prefer-destructuring":"off","prefer-exponentiation-operator":"error","prefer-named-capture-group":"off","prefer-numeric-literals":"off","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"off","prefer-regex-literals":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error",radix:"off","require-await":"off","require-unicode-regexp":"off","sort-imports":"off","sort-keys":"off","sort-vars":"off",strict:"off","symbol-description":"error","vars-on-top":"error",yoda:"error","unicode-bom":"error"};import se from"eslint-plugin-prettier";import ie from"eslint-config-prettier";async function R(e={}){let{vue:r=!1}=e;return[{name:"lntvow/prettier/setup",plugins:{prettier:se}},{name:"lntvow/prettier/rules",rules:{...ie.rules,"prettier/prettier":"warn",curly:["error","multi-line"],...r?{"vue/html-self-closing":["error",{html:{void:"always",normal:"always",component:"always"},svg:"always",math:"always"}]}:{}}}]}import{configs as q}from"eslint-plugin-regexp";async function N(e={}){let{overrides:r}=e,n=q["flat/recommended"].plugins.regexp,{rules:i}=q["flat/recommended"];return[{name:"lntvow/regexp/setup",plugins:{regexp:n}},{name:"lntvow/regexp/rules",rules:{...i,...r}}]}import ae from"@stylistic/eslint-plugin";async function A(e={}){let{overrides:r={}}=e;return[{name:"lntvow/stylistic/setup",plugins:{style:ae}},{name:"lntvow/stylistic/rules",rules:{"style/spaced-comment":"error","style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"always",prev:"*",next:"export"},{blankLine:"always",prev:"*",next:"function"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"never",prev:"function-overload",next:"function"}],"style/lines-around-comment":["error",{beforeBlockComment:!0,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,allowEnumStart:!0,allowEnumEnd:!0,allowInterfaceStart:!0,allowInterfaceEnd:!0,allowModuleStart:!0,allowModuleEnd:!0,allowTypeStart:!0,allowTypeEnd:!0}],...r}}]}import pe from"eslint-plugin-vitest";async function U(e={}){let{overrides:r}=e;return[{name:"lntvow/test/setup",plugins:{test:pe}},{name:"lntvow/test/rules",files:[...k],rules:{"lntvow/newline-before-specified-function-call":"error",...r}}]}import{parser as le,plugin as fe,configs as ue}from"typescript-eslint";async function V(e={}){let{componentExts:r=[],overrides:n={},parserOptions:i={}}=e,p=[_,L,...r.map(l=>`**/*.${l}`)];return[{name:"lntvow/typescript/setup",plugins:{ts:fe}},{name:"lntvow/typescript/rules",languageOptions:{parser:le,parserOptions:{sourceType:"module"}},files:p,rules:{...g(ue.strict),"ts/no-non-null-assertion":"off","ts/no-explicit-any":"off","ts/ban-ts-comment":"off","ts/no-unused-vars":"warn","no-use-before-define":"off","ts/no-use-before-define":["error",{functions:!1,variables:!1}],"no-unused-expressions":"off","ts/no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],...n}}]}import ce from"eslint-plugin-unicorn";async function M(){return[{name:"lntvow/unicorn/setup",plugins:{unicorn:ce}},{name:"lntvow/unicorn/rules",rules:{"unicorn/catch-error-name":"error","unicorn/consistent-empty-array-spread":"error","unicorn/consistent-existence-index-check":"error","unicorn/error-message":"error","unicorn/new-for-builtins":"error","unicorn/no-accessor-recursion":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-negated-condition":"error","unicorn/no-negation-in-equality-check":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-switch-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-string-raw":"error","unicorn/throw-new-error":"error"}}]}import{getPackageInfoSync as me}from"local-pkg";import{parser as $}from"typescript-eslint";import de from"vue-eslint-parser";import b from"eslint-plugin-vue";async function D(e={}){let{overrides:r={},vueVersion:n=ye(),typescript:i}=e;return[{name:"lntvow/vue/setup",plugins:{vue:b}},{name:"lntvow/vue/rules",languageOptions:{parser:de,parserOptions:{ecmaFeatures:{jsx:!0},parser:{ts:$,tsx:$},sourceType:"module"}},processor:b.processors[".vue"],files:[h],rules:{...ve,...ge,...n===3?{...g(b.configs["flat/recommended"]),"vue/block-order":["error",{order:["script[setup]","template","style[scoped]"]}],"vue/block-lang":["error",{script:i?{lang:["ts","tsx"]}:{allowNoLang:!0}}]}:{...g(b.configs["flat/vue2-recommended"]),"vue/block-order":["error",{order:[["script","template"],"style[scoped]"]}],"vue/block-lang":["error",{script:{allowNoLang:!0}}],"vue/component-api-style":"off"},"vue/multi-word-component-names":"off","vue/attribute-hyphenation":["error","never"],"vue/v-on-event-hyphenation":["error","never"],"vue/html-self-closing":"off","vue/html-closing-bracket-newline":"off","vue/html-closing-bracket-spacing":"off","vue/html-end-tags":"off","vue/html-indent":"off","vue/html-quotes":"off","vue/max-attributes-per-line":"off","vue/multiline-html-element-content-newline":"off","vue/mustache-interpolation-spacing":"off","vue/no-multi-spaces":"off","vue/no-spaces-around-equal-signs-in-attribute":"off","vue/singleline-html-element-content-newline":"off",...r}}]}var ve={"vue/block-lang":["error",{script:{lang:["ts","tsx"]}}],"vue/block-tag-newline":"off","vue/component-api-style":"error","vue/component-name-in-template-casing":["error","PascalCase",{ignores:["/-/"]}],"vue/component-options-name-casing":"error","vue/custom-event-name-casing":"error","vue/define-emits-declaration":"error","vue/define-macros-order":"error","vue/define-props-declaration":"error","vue/define-props-destructuring":"off","vue/enforce-style-attribute":"error","vue/html-button-has-type":"off","vue/html-comment-content-newline":"error","vue/html-comment-content-spacing":"error","vue/html-comment-indent":"off","vue/match-component-file-name":["error",{extensions:["jsx","tsx"],shouldMatchCase:!0}],"vue/match-component-import-name":"error","vue/max-lines-per-block":"off","vue/max-props":"off","vue/max-template-depth":"off","vue/new-line-between-multi-line-property":"off","vue/next-tick-style":"off","vue/no-bare-strings-in-template":"off","vue/no-boolean-default":"off","vue/no-deprecated-model-definition":"error","vue/no-duplicate-attr-inheritance":"error","vue/no-empty-component-block":"off","vue/no-import-compiler-macros":"error","vue/no-multiple-objects-in-class":"error","vue/no-negated-v-if-condition":"error","vue/no-potential-component-option-typo":"error","vue/no-ref-object-reactivity-loss":"error","vue/no-required-prop-with-default":"error","vue/no-restricted-block":"off","vue/no-restricted-call-after-await":"off","vue/no-restricted-class":"off","vue/no-restricted-component-names":"off","vue/no-restricted-component-options":"off","vue/no-restricted-custom-event":"off","vue/no-restricted-html-elements":"off","vue/no-restricted-props":"off","vue/no-restricted-static-attribute":"off","vue/no-restricted-v-bind":"off","vue/no-restricted-v-on":"off","vue/no-root-v-if":"off","vue/no-setup-props-reactivity-loss":"error","vue/no-static-inline-styles":"error","vue/no-template-target-blank":"error","vue/no-this-in-before-route-enter":"error","vue/no-undef-components":"off","vue/no-undef-properties":"error","vue/no-unsupported-features":"off","vue/no-unused-emit-declarations":"error","vue/no-unused-properties":["warn",{groups:["props","data","computed","methods","setup"]}],"vue/no-unused-refs":"error","vue/no-use-v-else-with-v-for":"error","vue/no-useless-mustaches":"error","vue/no-useless-v-bind":"error","vue/no-v-text":"error","vue/padding-line-between-blocks":"error","vue/padding-line-between-tags":["error",[{blankLine:"never",prev:"*",next:"*"}]],"vue/padding-lines-in-component-definition":["error",{betweenOptions:"never"}],"vue/prefer-define-options":"error","vue/prefer-prop-type-boolean-first":"error","vue/prefer-separate-static-class":"error","vue/prefer-true-attribute-shorthand":"error","vue/prefer-use-template-ref":"off","vue/require-default-export":"off","vue/require-direct-export":"error","vue/require-emit-validator":"off","vue/require-explicit-slots":"off","vue/require-expose":"error","vue/require-macro-variable-name":"error","vue/require-name-property":"off","vue/require-prop-comment":"off","vue/require-typed-object-prop":"error","vue/require-typed-ref":"error","vue/restricted-component-names":"off","vue/script-indent":"off","vue/slot-name-casing":"error","vue/sort-keys":"off","vue/static-class-names-order":"error","vue/v-for-delimiter-style":"error","vue/v-if-else-key":"off","vue/v-on-handler-style":"off","vue/valid-define-options":"error"},ge={"vue/array-bracket-newline":"off","vue/array-bracket-spacing":"off","vue/array-element-newline":"off","vue/arrow-spacing":"off","vue/block-spacing":"off","vue/brace-style":"off","vue/camelcase":"error","vue/comma-dangle":"off","vue/comma-spacing":"off","vue/comma-style":"off","vue/dot-location":"off","vue/dot-notation":"error","vue/eqeqeq":"error","vue/func-call-spacing":"off","vue/key-spacing":"off","vue/keyword-spacing":"off","vue/max-len":"off","vue/multiline-ternary":"off","vue/no-console":"off","vue/no-constant-condition":"error","vue/no-empty-pattern":"error","vue/no-extra-parens":"off","vue/no-implicit-coercion":"error","vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"off","vue/no-negated-condition":"error","vue/no-restricted-syntax":"off","vue/no-sparse-arrays":"error","vue/no-useless-concat":"error","vue/object-curly-newline":"off","vue/object-curly-spacing":"off","vue/object-property-newline":"off","vue/object-shorthand":"error","vue/operator-linebreak":"off","vue/prefer-template":"error","vue/quote-props":"off","vue/space-in-parens":"off","vue/space-infix-ops":"off","vue/space-unary-ops":"off","vue/template-curly-spacing":"off"};function ye(){let e=me("vue",{paths:[process.cwd()]});return e&&e.version?Number(e.version[0]):3}import{FlatConfigComposer as xe}from"eslint-flat-config-utils";import{isBoolean as we}from"@lntvow/utils";import{isPackageExists as C}from"local-pkg";var be=["name","languageOptions","linterOptions","processor","plugins","rules","settings"],Oe={"import-x":"import","@typescript-eslint":"ts",vitest:"test","@stylistic":"style"};function he(e={},...r){if("files"in e)throw new Error('[@lntvow/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.');let{autoRenamePlugins:n=!0,gitignore:i=!0,stylistic:p=!0,regexp:l=!0,componentExts:c=[],typescript:m=C("typescript"),vue:d=["vue","nuxt","vitepress"].some(w=>C(w)),test:x=C("vitest")}=e,s=[];s.push(G(e.ignores),T(),E({...u(e,"javascript")}),B(),M()),i&&s.push(I({...u(e,"gitignore")})),d&&c.push("vue"),m&&s.push(V({...u(e,"typescript"),componentExts:c})),d&&s.push(D({...u(e,"vue"),typescript:!!m})),l&&s.push(N({...u(e,"regexp")})),x&&s.push(U({...u(e,"test")})),s.push(R({vue:!!d}),F()),p&&s.push(A({...u(e,"stylistic")}));let a=be.reduce((w,O)=>(O in e&&(w[O]=e[O]),w),{});Object.keys(a).length&&s.push([a]);let v=new xe;return v=v.append(...s,...r),n&&(v=v.renamePlugins(Oe)),v}function u(e,r){return we(e[r])?{}:e[r]||{}}export{Me as GLOB_ALL_SRC,Ae as GLOB_ASTRO,Ge as GLOB_CSS,j as GLOB_EXCLUDE,Ue as GLOB_GRAPHQL,Q as GLOB_HTML,Fe as GLOB_JS,W as GLOB_JSON,J as GLOB_JSON5,Re as GLOB_JSONC,Ie as GLOB_JSX,Pe as GLOB_LESS,S as GLOB_MARKDOWN,Ve as GLOB_MARKDOWN_CODE,qe as GLOB_MARKDOWN_IN_MARKDOWN,Be as GLOB_POSTCSS,Ee as GLOB_SCSS,y as GLOB_SRC,f as GLOB_SRC_EXT,K as GLOB_STYLE,H as GLOB_SVELTE,k as GLOB_TESTS,Ne as GLOB_TOML,_ as GLOB_TS,L as GLOB_TSX,h as GLOB_VUE,Y as GLOB_XML,z as GLOB_YAML,Te as combine,T as custom,F as disables,g as getRulesFromConfig,I as gitignore,G as ignores,B as imports,E as javascript,he as lntvow,ne as notInRecommendedRules,R as prettier,N as regexp,Ce as renameRules,A as stylistic,U as test,V as typescript,M as unicorn,D as vue,ge as vueExtensionRules,ve as vueUncategorizedRules};
1
+ function Ce(e,r){return Object.fromEntries(Object.entries(e).map(([n,i])=>{for(let[p,l]of Object.entries(r))if(n.startsWith(`${p}/`))return[l+n.slice(p.length),i];return[n,i]}))}async function Te(...e){return(await Promise.all(e)).flat()}function g(e){return e.map(r=>r.rules).reduce((r,n)=>({...r,...n}),{})}import X from"@lntvow/eslint-plugin";async function T(){return[{name:"lntvow/custom/setup",plugins:{lntvow:X}}]}var f="?([cm])[jt]s?(x)",y="**/*.?([cm])[jt]s?(x)",Fe="**/*.?([cm])js",Ie="**/*.?([cm])jsx",_="**/*.?([cm])ts",L="**/*.?([cm])tsx",K="**/*.{c,le,sc}ss",Ge="**/*.css",Be="**/*.{p,post}css",Pe="**/*.less",Ee="**/*.scss",W="**/*.json",J="**/*.json5",Re="**/*.jsonc",S="**/*.md",qe="**/*.md/*.md",H="**/*.svelte",h="**/*.vue",z="**/*.y?(a)ml",Ne="**/*.toml",Y="**/*.xml",Q="**/*.htm?(l)",Ae="**/*.astro",Ue="**/*.{g,graph}ql",Ve=`${S}/${y}`,k=[`**/__tests__/**/*.${f}`,`**/*.spec.${f}`,`**/*.test.${f}`,`**/*.bench.${f}`,`**/*.benchmark.${f}`],Me=[y,K,W,J,S,H,h,z,Y,Q],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","**/.svelte-kit","**/.vercel","**/.changeset","**/.idea","**/.cache","**/.output","**/.vite-inspect","**/.yarn","**/vite.config.*.timestamp-*","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];async function F(){return[{files:[`scripts/${y}`],name:"lntvow/disables/scripts",rules:{"no-console":"off"}},{files:[`cli/${y}`,`cli.${f}`],name:"lntvow/disables/cli",rules:{"no-console":"off"}},{files:["**/*.d.?([cm])ts"],name:"lntvow/disables/dts",rules:{}},{files:["**/*.{test,spec}.[tj]s?(x)"],name:"lntvow/disables/test",rules:{"no-unused-expressions":"off"}},{files:["**/*.js","**/*.cjs"],name:"lntvow/disables/cjs",rules:{"ts/no-require-imports":"off"}}]}import{readFileSync as Z}from"fs";import{castArray as ee}from"@lntvow/utils";import{convertIgnorePatternToMinimatch as re}from"@eslint/compat";async function I(e={}){let{findUpSync:r}=await import("find-up-simple"),{name:n=".gitignore",root:i=!1,files:p=i?n:r(n)||[],strict:l=!1}=e,c=ee(p),m=[];for(let d of c){let x;try{x=Z(d,"utf8")}catch(a){if(l)throw a;continue}let s=x.split(/\r?\n/u);m.push(...s.map(a=>a.trim()).filter(a=>a&&!a.startsWith("#")).map(re))}if(l&&c.length===0)throw new Error("No .gitignore file found");return[{name:"lntvow/gitignore",ignores:m}]}async function G(e=[]){return[{name:"lntvow/ignores",ignores:[...j,...e]}]}import oe from"eslint-plugin-import-x";async function B(){return[{name:"lntvow/imports/setup",plugins:{import:oe}},{name:"lntvow/imports/rules",rules:{"import/no-extraneous-dependencies":"error","import/no-useless-path-segments":"error","import/first":"error","import/newline-after-import":"error","import/no-duplicates":"error","import/order":"error"}}]}import te from"@eslint/js";import P from"globals";async function E(e={}){let{overrides:r={}}=e;return[{name:"lntvow/javascript/setup",languageOptions:{ecmaVersion:"latest",sourceType:"module",parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}},globals:{...P.browser,...P.node}},linterOptions:{reportUnusedDisableDirectives:"warn"}},{name:"lntvow/javascript/rules",rules:{...te.configs.recommended.rules,...ne,"no-unused-vars":"warn",...r}}]}var ne={"array-callback-return":"error","no-await-in-loop":"off","no-constructor-return":"error","no-duplicate-imports":"error","no-inner-declarations":"error","no-promise-executor-return":"off","no-self-compare":"error","no-template-curly-in-string":"error","no-unassigned-vars":"error","no-unexpected-multiline":"off","no-unmodified-loop-condition":"error","no-unreachable-loop":"error","no-use-before-define":["error",{functions:!1,variables:!1}],"no-useless-assignment":"off","require-atomic-updates":"off","accessor-pairs":"error","arrow-body-style":"error","block-scoped-var":"error",camelcase:"warn","capitalized-comments":"off","class-methods-use-this":"error",complexity:"off","consistent-return":"off","consistent-this":"off",curly:"off","default-case":"error","default-case-last":"error","default-param-last":"error","dot-notation":"error",eqeqeq:"error","func-name-matching":"error","func-names":"off","func-style":"off","grouped-accessor-pairs":"error","guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","logical-assignment-operators":"error","max-classes-per-file":"off","max-depth":"off","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"off","max-params":"off","max-statements":"off","new-cap":["error",{capIsNew:!1}],"no-alert":"error","no-array-constructor":"error","no-bitwise":"off","no-caller":"error","no-console":"warn","no-continue":"off","no-div-regex":"error","no-else-return":"error","no-empty-function":"error","no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":"error","no-implicit-globals":"error","no-implied-eval":"error","no-inline-comments":"off","no-invalid-this":"error","no-iterator":"error","no-label-var":"error","no-labels":"error","no-lone-blocks":"error","no-lonely-if":"error","no-loop-func":"error","no-magic-numbers":"off","no-multi-assign":"error","no-multi-str":"error","no-negated-condition":"off","no-nested-ternary":"off","no-new":"off","no-new-func":"error","no-new-wrappers":"error","no-object-constructor":"error","no-octal-escape":"error","no-param-reassign":"off","no-plusplus":"off","no-proto":"error","no-restricted-exports":"off","no-restricted-globals":["error",{message:"Use `globalThis` instead.",name:"global"},{message:"Use `globalThis` instead.",name:"self"}],"no-restricted-imports":"off","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":"off","no-return-assign":"error","no-script-url":"error","no-sequences":"error","no-shadow":0,"no-ternary":"off","no-throw-literal":"off","no-undef-init":"error","no-undefined":"off","no-underscore-dangle":"off","no-unneeded-ternary":"error","no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-useless-call":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-constructor":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-void":"off","no-warning-comments":"off","object-shorthand":"error","one-var":"off","operator-assignment":"error","prefer-arrow-callback":"error","prefer-const":"error","prefer-destructuring":"off","prefer-exponentiation-operator":"error","prefer-named-capture-group":"off","prefer-numeric-literals":"off","prefer-object-has-own":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"off","prefer-regex-literals":"off","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error",radix:"off","require-await":"off","require-unicode-regexp":"off","sort-imports":"off","sort-keys":"off","sort-vars":"off",strict:"off","symbol-description":"error","vars-on-top":"error",yoda:"error","unicode-bom":"error"};import se from"eslint-plugin-prettier";import ie from"eslint-config-prettier";async function R(e={}){let{vue:r=!1}=e;return[{name:"lntvow/prettier/setup",plugins:{prettier:se}},{name:"lntvow/prettier/rules",rules:{...ie.rules,"prettier/prettier":"warn",curly:["error","multi-line"],...r?{"vue/html-self-closing":["error",{html:{void:"always",normal:"always",component:"always"},svg:"always",math:"always"}]}:{}}}]}import{configs as q}from"eslint-plugin-regexp";async function N(e={}){let{overrides:r}=e,n=q["flat/recommended"].plugins.regexp,{rules:i}=q["flat/recommended"];return[{name:"lntvow/regexp/setup",plugins:{regexp:n}},{name:"lntvow/regexp/rules",rules:{...i,...r}}]}import ae from"@stylistic/eslint-plugin";async function A(e={}){let{overrides:r={}}=e;return[{name:"lntvow/stylistic/setup",plugins:{style:ae}},{name:"lntvow/stylistic/rules",rules:{"style/spaced-comment":"error","style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"always",prev:"*",next:"export"},{blankLine:"always",prev:"*",next:"function"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"never",prev:"function-overload",next:"function"}],"style/lines-around-comment":["error",{beforeBlockComment:!0,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,allowEnumStart:!0,allowEnumEnd:!0,allowInterfaceStart:!0,allowInterfaceEnd:!0,allowModuleStart:!0,allowModuleEnd:!0,allowTypeStart:!0,allowTypeEnd:!0}],...r}}]}import pe from"eslint-plugin-vitest";async function U(e={}){let{overrides:r}=e;return[{name:"lntvow/test/setup",plugins:{test:pe}},{name:"lntvow/test/rules",files:[...k],rules:{"lntvow/newline-before-specified-function-call":"error",...r}}]}import{parser as le,plugin as fe,configs as ue}from"typescript-eslint";async function V(e={}){let{componentExts:r=[],overrides:n={},parserOptions:i={}}=e,p=[_,L,...r.map(l=>`**/*.${l}`)];return[{name:"lntvow/typescript/setup",plugins:{ts:fe}},{name:"lntvow/typescript/rules",languageOptions:{parser:le,parserOptions:{sourceType:"module"}},files:p,rules:{...g(ue.strict),"ts/no-non-null-assertion":"off","ts/no-explicit-any":"off","ts/ban-ts-comment":"off","ts/no-unused-vars":"warn","no-use-before-define":"off","ts/no-use-before-define":["error",{functions:!1,variables:!1}],"no-unused-expressions":"off","ts/no-unused-expressions":["error",{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],...n}}]}import ce from"eslint-plugin-unicorn";async function M(){return[{name:"lntvow/unicorn/setup",plugins:{unicorn:ce}},{name:"lntvow/unicorn/rules",rules:{"unicorn/catch-error-name":"error","unicorn/consistent-empty-array-spread":"error","unicorn/consistent-existence-index-check":"error","unicorn/error-message":"error","unicorn/new-for-builtins":"error","unicorn/no-accessor-recursion":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-negated-condition":"error","unicorn/no-negation-in-equality-check":"error","unicorn/no-new-array":"error","unicorn/no-new-buffer":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-switch-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-string-raw":"error","unicorn/throw-new-error":"error"}}]}import{getPackageInfoSync as me}from"local-pkg";import{parser as $}from"typescript-eslint";import de from"vue-eslint-parser";import b from"eslint-plugin-vue";async function D(e={}){let{overrides:r={},vueVersion:n=ye(),typescript:i}=e;return[{name:"lntvow/vue/setup",plugins:{vue:b}},{name:"lntvow/vue/rules",languageOptions:{parser:de,parserOptions:{ecmaFeatures:{jsx:!0},parser:{ts:$,tsx:$},sourceType:"module"}},processor:b.processors[".vue"],files:[h],rules:{...ve,...ge,...n===3?{...g(b.configs["flat/recommended"]),"vue/block-order":["error",{order:["script[setup]","template","style[scoped]"]}],"vue/block-lang":["error",{script:i?{lang:["ts","tsx"]}:{allowNoLang:!0}}]}:{...g(b.configs["flat/vue2-recommended"]),"vue/block-order":["error",{order:[["script","template"],"style[scoped]"]}],"vue/block-lang":["error",{script:{allowNoLang:!0}}],"vue/component-api-style":"off"},"vue/multi-word-component-names":"off","vue/no-unused-vars":"warn","vue/attribute-hyphenation":["error","never"],"vue/v-on-event-hyphenation":["error","never"],"vue/html-self-closing":"off","vue/html-closing-bracket-newline":"off","vue/html-closing-bracket-spacing":"off","vue/html-end-tags":"off","vue/html-indent":"off","vue/html-quotes":"off","vue/max-attributes-per-line":"off","vue/multiline-html-element-content-newline":"off","vue/mustache-interpolation-spacing":"off","vue/no-multi-spaces":"off","vue/no-spaces-around-equal-signs-in-attribute":"off","vue/singleline-html-element-content-newline":"off",...r}}]}var ve={"vue/block-lang":["error",{script:{lang:["ts","tsx"]}}],"vue/block-tag-newline":"off","vue/component-api-style":"error","vue/component-name-in-template-casing":["error","PascalCase",{ignores:["/-/"]}],"vue/component-options-name-casing":"error","vue/custom-event-name-casing":"error","vue/define-emits-declaration":"error","vue/define-macros-order":"error","vue/define-props-declaration":"error","vue/define-props-destructuring":"off","vue/enforce-style-attribute":"error","vue/html-button-has-type":"off","vue/html-comment-content-newline":"error","vue/html-comment-content-spacing":"error","vue/html-comment-indent":"off","vue/match-component-file-name":["error",{extensions:["jsx","tsx"],shouldMatchCase:!0}],"vue/match-component-import-name":"error","vue/max-lines-per-block":"off","vue/max-props":"off","vue/max-template-depth":"off","vue/new-line-between-multi-line-property":"off","vue/next-tick-style":"off","vue/no-bare-strings-in-template":"off","vue/no-boolean-default":"off","vue/no-deprecated-model-definition":"error","vue/no-duplicate-attr-inheritance":"error","vue/no-empty-component-block":"off","vue/no-import-compiler-macros":"error","vue/no-multiple-objects-in-class":"error","vue/no-negated-v-if-condition":"error","vue/no-potential-component-option-typo":"error","vue/no-ref-object-reactivity-loss":"error","vue/no-required-prop-with-default":"error","vue/no-restricted-block":"off","vue/no-restricted-call-after-await":"off","vue/no-restricted-class":"off","vue/no-restricted-component-names":"off","vue/no-restricted-component-options":"off","vue/no-restricted-custom-event":"off","vue/no-restricted-html-elements":"off","vue/no-restricted-props":"off","vue/no-restricted-static-attribute":"off","vue/no-restricted-v-bind":"off","vue/no-restricted-v-on":"off","vue/no-root-v-if":"off","vue/no-setup-props-reactivity-loss":"error","vue/no-static-inline-styles":"error","vue/no-template-target-blank":"error","vue/no-this-in-before-route-enter":"error","vue/no-undef-components":"off","vue/no-undef-properties":"error","vue/no-unsupported-features":"off","vue/no-unused-emit-declarations":"error","vue/no-unused-properties":["warn",{groups:["props","data","computed","methods","setup"]}],"vue/no-unused-refs":"error","vue/no-use-v-else-with-v-for":"error","vue/no-useless-mustaches":"error","vue/no-useless-v-bind":"error","vue/no-v-text":"error","vue/padding-line-between-blocks":"error","vue/padding-line-between-tags":["error",[{blankLine:"never",prev:"*",next:"*"}]],"vue/padding-lines-in-component-definition":["error",{betweenOptions:"never"}],"vue/prefer-define-options":"error","vue/prefer-prop-type-boolean-first":"error","vue/prefer-separate-static-class":"error","vue/prefer-true-attribute-shorthand":"error","vue/prefer-use-template-ref":"off","vue/require-default-export":"off","vue/require-direct-export":"error","vue/require-emit-validator":"off","vue/require-explicit-slots":"off","vue/require-expose":"error","vue/require-macro-variable-name":"error","vue/require-name-property":"off","vue/require-prop-comment":"off","vue/require-typed-object-prop":"error","vue/require-typed-ref":"error","vue/restricted-component-names":"off","vue/script-indent":"off","vue/slot-name-casing":"error","vue/sort-keys":"off","vue/static-class-names-order":"error","vue/v-for-delimiter-style":"error","vue/v-if-else-key":"off","vue/v-on-handler-style":"off","vue/valid-define-options":"error"},ge={"vue/array-bracket-newline":"off","vue/array-bracket-spacing":"off","vue/array-element-newline":"off","vue/arrow-spacing":"off","vue/block-spacing":"off","vue/brace-style":"off","vue/camelcase":"error","vue/comma-dangle":"off","vue/comma-spacing":"off","vue/comma-style":"off","vue/dot-location":"off","vue/dot-notation":"error","vue/eqeqeq":"error","vue/func-call-spacing":"off","vue/key-spacing":"off","vue/keyword-spacing":"off","vue/max-len":"off","vue/multiline-ternary":"off","vue/no-console":"off","vue/no-constant-condition":"error","vue/no-empty-pattern":"error","vue/no-extra-parens":"off","vue/no-implicit-coercion":"error","vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"off","vue/no-negated-condition":"error","vue/no-restricted-syntax":"off","vue/no-sparse-arrays":"error","vue/no-useless-concat":"error","vue/object-curly-newline":"off","vue/object-curly-spacing":"off","vue/object-property-newline":"off","vue/object-shorthand":"error","vue/operator-linebreak":"off","vue/prefer-template":"error","vue/quote-props":"off","vue/space-in-parens":"off","vue/space-infix-ops":"off","vue/space-unary-ops":"off","vue/template-curly-spacing":"off"};function ye(){let e=me("vue",{paths:[process.cwd()]});return e&&e.version?Number(e.version[0]):3}import{FlatConfigComposer as xe}from"eslint-flat-config-utils";import{isBoolean as we}from"@lntvow/utils";import{isPackageExists as C}from"local-pkg";var be=["name","languageOptions","linterOptions","processor","plugins","rules","settings"],Oe={"import-x":"import","@typescript-eslint":"ts",vitest:"test","@stylistic":"style"};function he(e={},...r){if("files"in e)throw new Error('[@lntvow/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.');let{autoRenamePlugins:n=!0,gitignore:i=!0,stylistic:p=!0,regexp:l=!0,componentExts:c=[],typescript:m=C("typescript"),vue:d=["vue","nuxt","vitepress"].some(w=>C(w)),test:x=C("vitest")}=e,s=[];s.push(G(e.ignores),T(),E({...u(e,"javascript")}),B(),M()),i&&s.push(I({...u(e,"gitignore")})),d&&c.push("vue"),m&&s.push(V({...u(e,"typescript"),componentExts:c})),d&&s.push(D({...u(e,"vue"),typescript:!!m})),l&&s.push(N({...u(e,"regexp")})),x&&s.push(U({...u(e,"test")})),s.push(R({vue:!!d}),F()),p&&s.push(A({...u(e,"stylistic")}));let a=be.reduce((w,O)=>(O in e&&(w[O]=e[O]),w),{});Object.keys(a).length&&s.push([a]);let v=new xe;return v=v.append(...s,...r),n&&(v=v.renamePlugins(Oe)),v}function u(e,r){return we(e[r])?{}:e[r]||{}}export{Me as GLOB_ALL_SRC,Ae as GLOB_ASTRO,Ge as GLOB_CSS,j as GLOB_EXCLUDE,Ue as GLOB_GRAPHQL,Q as GLOB_HTML,Fe as GLOB_JS,W as GLOB_JSON,J as GLOB_JSON5,Re as GLOB_JSONC,Ie as GLOB_JSX,Pe as GLOB_LESS,S as GLOB_MARKDOWN,Ve as GLOB_MARKDOWN_CODE,qe as GLOB_MARKDOWN_IN_MARKDOWN,Be as GLOB_POSTCSS,Ee as GLOB_SCSS,y as GLOB_SRC,f as GLOB_SRC_EXT,K as GLOB_STYLE,H as GLOB_SVELTE,k as GLOB_TESTS,Ne as GLOB_TOML,_ as GLOB_TS,L as GLOB_TSX,h as GLOB_VUE,Y as GLOB_XML,z as GLOB_YAML,Te as combine,T as custom,F as disables,g as getRulesFromConfig,I as gitignore,G as ignores,B as imports,E as javascript,he as lntvow,ne as notInRecommendedRules,R as prettier,N as regexp,Ce as renameRules,A as stylistic,U as test,V as typescript,M as unicorn,D as vue,ge as vueExtensionRules,ve as vueUncategorizedRules};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-config",
3
- "version": "9.35.0",
3
+ "version": "9.35.2",
4
4
  "type": "module",
5
5
  "description": "Customizable eslint configuration",
6
6
  "keywords": [
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@eslint/compat": "^1.4.0",
33
- "@eslint/js": "^9.37.0",
34
- "@lntvow/utils": "^4.6.1",
35
- "@stylistic/eslint-plugin": "^5.4.0",
33
+ "@eslint/js": "^9.38.0",
34
+ "@lntvow/utils": "^4.7.0",
35
+ "@stylistic/eslint-plugin": "^5.5.0",
36
36
  "eslint-config-prettier": "^10.1.8",
37
37
  "eslint-flat-config-utils": "^2.1.4",
38
38
  "eslint-plugin-import-x": "^4.16.1",
@@ -40,13 +40,13 @@
40
40
  "eslint-plugin-regexp": "^2.10.0",
41
41
  "eslint-plugin-unicorn": "^59.0.0",
42
42
  "eslint-plugin-vitest": "^0.5.4",
43
- "eslint-plugin-vue": "^10.5.0",
43
+ "eslint-plugin-vue": "^10.5.1",
44
44
  "find-up-simple": "^1.0.1",
45
45
  "globals": "^16.4.0",
46
46
  "local-pkg": "^1.1.2",
47
- "typescript-eslint": "^8.46.0",
47
+ "typescript-eslint": "^8.46.2",
48
48
  "vue-eslint-parser": "^10.2.0",
49
- "@lntvow/eslint-plugin": "^9.35.0"
49
+ "@lntvow/eslint-plugin": "^9.35.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@commitlint/cli": "^20.1.0",
@@ -58,9 +58,9 @@
58
58
  "cheerio": "1.1.2",
59
59
  "commitizen": "^4.3.1",
60
60
  "cz-conventional-changelog": "^3.3.0",
61
- "eslint": "^9.37.0",
61
+ "eslint": "^9.38.0",
62
62
  "eslint-typegen": "^2.3.0",
63
- "lint-staged": "^16.2.3",
63
+ "lint-staged": "^16.2.5",
64
64
  "node-cron": "^4.2.1",
65
65
  "npm-run-all": "^4.1.5",
66
66
  "prettier": "^3.6.2",