@lntvow/eslint-config 9.3.9 → 9.3.11

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.d.cts CHANGED
@@ -1,8 +1,30 @@
1
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
1
+ import { AnyObject } from '@lntvow/utils';
2
2
  import { Linter } from 'eslint';
3
3
  import { ParserOptions } from '@typescript-eslint/parser';
4
4
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
5
- import { AnyObject } from '@lntvow/utils';
5
+ import { FlatConfigComposer } from 'eslint-flat-config-utils';
6
+
7
+ /**
8
+ * Rename plugin prefixes in a rule object.
9
+ * Accepts a map of prefixes to rename.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * import { renameRules } from '@lntvow/eslint-config'
14
+ *
15
+ * export default [{
16
+ * rules: renameRules(
17
+ * {
18
+ * '@typescript-eslint/indent': 'error'
19
+ * },
20
+ * { '@typescript-eslint': 'ts' }
21
+ * )
22
+ * }]
23
+ * ```
24
+ */
25
+ declare function renameRules(rules: AnyObject, map: Record<string, string>): {
26
+ [k: string]: any;
27
+ };
6
28
 
7
29
  /* eslint-disable */
8
30
  /* prettier-ignore */
@@ -15219,30 +15241,6 @@ interface OptionsConfig extends OptionsComponentExts {
15219
15241
  autoRenamePlugins?: boolean;
15220
15242
  }
15221
15243
 
15222
- declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
15223
-
15224
- /**
15225
- * Rename plugin prefixes in a rule object.
15226
- * Accepts a map of prefixes to rename.
15227
- *
15228
- * @example
15229
- * ```ts
15230
- * import { renameRules } from '@lntvow/eslint-config'
15231
- *
15232
- * export default [{
15233
- * rules: renameRules(
15234
- * {
15235
- * '@typescript-eslint/indent': 'error'
15236
- * },
15237
- * { '@typescript-eslint': 'ts' }
15238
- * )
15239
- * }]
15240
- * ```
15241
- */
15242
- declare function renameRules(rules: AnyObject, map: Record<string, string>): {
15243
- [k: string]: any;
15244
- };
15245
-
15246
15244
  declare function custom(): Promise<TypedFlatConfigItem[]>;
15247
15245
 
15248
15246
  declare function gitignore(options: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]>;
@@ -15296,4 +15294,6 @@ declare const GLOB_TESTS: string[];
15296
15294
  declare const GLOB_ALL_SRC: string[];
15297
15295
  declare const GLOB_EXCLUDE: string[];
15298
15296
 
15299
- export { 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, StylisticConfigDefaults, custom, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
15297
+ declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
15298
+
15299
+ export { 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, StylisticConfigDefaults, custom, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,30 @@
1
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
1
+ import { AnyObject } from '@lntvow/utils';
2
2
  import { Linter } from 'eslint';
3
3
  import { ParserOptions } from '@typescript-eslint/parser';
4
4
  import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
5
- import { AnyObject } from '@lntvow/utils';
5
+ import { FlatConfigComposer } from 'eslint-flat-config-utils';
6
+
7
+ /**
8
+ * Rename plugin prefixes in a rule object.
9
+ * Accepts a map of prefixes to rename.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * import { renameRules } from '@lntvow/eslint-config'
14
+ *
15
+ * export default [{
16
+ * rules: renameRules(
17
+ * {
18
+ * '@typescript-eslint/indent': 'error'
19
+ * },
20
+ * { '@typescript-eslint': 'ts' }
21
+ * )
22
+ * }]
23
+ * ```
24
+ */
25
+ declare function renameRules(rules: AnyObject, map: Record<string, string>): {
26
+ [k: string]: any;
27
+ };
6
28
 
7
29
  /* eslint-disable */
8
30
  /* prettier-ignore */
@@ -15219,30 +15241,6 @@ interface OptionsConfig extends OptionsComponentExts {
15219
15241
  autoRenamePlugins?: boolean;
15220
15242
  }
15221
15243
 
15222
- declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
15223
-
15224
- /**
15225
- * Rename plugin prefixes in a rule object.
15226
- * Accepts a map of prefixes to rename.
15227
- *
15228
- * @example
15229
- * ```ts
15230
- * import { renameRules } from '@lntvow/eslint-config'
15231
- *
15232
- * export default [{
15233
- * rules: renameRules(
15234
- * {
15235
- * '@typescript-eslint/indent': 'error'
15236
- * },
15237
- * { '@typescript-eslint': 'ts' }
15238
- * )
15239
- * }]
15240
- * ```
15241
- */
15242
- declare function renameRules(rules: AnyObject, map: Record<string, string>): {
15243
- [k: string]: any;
15244
- };
15245
-
15246
15244
  declare function custom(): Promise<TypedFlatConfigItem[]>;
15247
15245
 
15248
15246
  declare function gitignore(options: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]>;
@@ -15296,4 +15294,6 @@ declare const GLOB_TESTS: string[];
15296
15294
  declare const GLOB_ALL_SRC: string[];
15297
15295
  declare const GLOB_EXCLUDE: string[];
15298
15296
 
15299
- export { 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, StylisticConfigDefaults, custom, lntvow as default, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
15297
+ declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
15298
+
15299
+ export { 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, StylisticConfigDefaults, custom, getVueVersion, gitignore, ignores, imports, javascript, lntvow, prettier, regexp, renameRules, stylistic, test, typescript, vue };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ function b(e,o){return Object.fromEntries(Object.entries(e).map(([r,s])=>{for(let[i,f]of Object.entries(o))if(r.startsWith(`${i}/`))return[f+r.slice(i.length),s];return[r,s]}))}import $ from"@lntvow/eslint-plugin";async function L(){return[{name:"lntvow/custom",plugins:{lntvow:$}}]}import M from"fs";import{findUpSync as K}from"find-up";import{castArray as X}from"@lntvow/utils";import J from"parse-gitignore";async function S(e){let{name:o=".gitignore",root:r=!1,files:s=r?o:K(o)||[]}=e,i=X(s),f=[];for(let m of i)try{let v=M.readFileSync(m,"utf8"),x=J(v).globs();for(let u of x)u.type==="ignore"?f.push(...u.patterns):u.type==="unignore"&&f.push(...u.patterns.map(p=>`!${p}`))}catch{throw new Error(`Failed to read file: ${m}`)}return[{ignores:f}]}var g="?([cm])[jt]s?(x)",c="**/*.?([cm])[jt]s?(x)",Se="**/*.?([cm])js",Ge="**/*.?([cm])jsx",je="**/*.?([cm])ts",Fe="**/*.?([cm])tsx",W="**/*.{c,le,sc}ss",Ie="**/*.css",Be="**/*.{p,post}css",ke="**/*.less",Pe="**/*.scss",H="**/*.json",z="**/*.json5",Ee="**/*.jsonc",G="**/*.md",Re="**/*.md/*.md",Y="**/*.svelte",w="**/*.vue",Q="**/*.y?(a)ml",qe="**/*.toml",Z="**/*.xml",ee="**/*.htm?(l)",Ne="**/*.astro",Ae="**/*.{g,graph}ql",Ve=`${G}/${c}`,j=[`**/__tests__/**/*.${g}`,`**/*.spec.${g}`,`**/*.test.${g}`,`**/*.bench.${g}`,`**/*.benchmark.${g}`],Ue=[c,W,H,z,G,Y,w,Q,Z,ee],F=["**/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","**/CHANGELOG*.md","**/*.min.*","**/LICENSE*","**/__snapshots__","**/auto-import?(s).d.ts","**/components.d.ts"];async function I(){return[{ignores:[...F]}]}import oe from"eslint-plugin-import-x";async function B(){return[{name:"lntvow/imports/rules",plugins:{import:oe},rules:{"import/order":"error","import/newline-after-import":"error"}}]}import re from"@eslint/js";import h from"globals";async function k(e={}){let{overrides:o={}}=e;return[{name:"lntvow/javascript/rules",languageOptions:{ecmaVersion:2022,sourceType:"module",parserOptions:{ecmaVersion:2022,sourceType:"module",ecmaFeatures:{jsx:!0}},globals:{...h.browser,...h.es2021,...h.node,document:"readonly",navigator:"readonly",window:"readonly"}},linterOptions:{reportUnusedDisableDirectives:!0},rules:{...re.configs.all.rules,"no-unused-vars":"warn","no-use-before-define":["error",{functions:!1,variables:!1}],"no-useless-assignment":"off","require-atomic-updates":"off",camelcase:"warn","capitalized-comments":"off","class-methods-use-this":"off",complexity:"off",curly:["error","multi-line"],"func-names":"off","func-style":"off","guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","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-bitwise":"off","no-case-declarations":"off","no-console":"warn","no-continue":"off","no-empty":["error",{allowEmptyCatch:!0}],"no-implicit-coercion":"off","no-implicit-globals":"off","no-magic-numbers":0,"no-nested-ternary":"off","no-new":"off","no-param-reassign":"off","no-plusplus":"off","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-shadow":"off","no-ternary":"off","no-throw-literal":"off","no-undefined":"off","no-underscore-dangle":"off","no-void":"off","no-warning-comments":"off","one-var":"off","prefer-exponentiation-operator":"off","prefer-promise-reject-errors":"off",radix:"off","require-await":"off","require-unicode-regexp":"off","sort-imports":"off","sort-keys":"off","sort-vars":"off",strict:"off",...o}},{files:[`scripts/${c}`],name:"lntvow/javascript/disables",rules:{"no-console":"off"}}]}import te from"eslint-plugin-prettier";import ne from"eslint-config-prettier";async function P(){return[{name:"lntvow/prettier/rules",plugins:{prettier:te},rules:{...ne.rules,"prettier/prettier":"warn"}}]}import{configs as E}from"eslint-plugin-regexp";async function R(e={}){let{overrides:o}=e,r=E["flat/recommended"].plugins.regexp,{rules:s}=E["flat/recommended"];return[{name:"lntvow/regexp/rules",plugins:{regexp:r},rules:{...s,...o}}]}import q from"@stylistic/eslint-plugin";var se={indent:2,jsx:!0,quotes:"single",semi:!1};async function N(e={}){let{indent:o,jsx:r,overrides:s={},quotes:i,semi:f}={...se,...e},m=q.configs.customize({flat:!0,indent:o,jsx:r,pluginName:"style",quotes:i,semi:f});return[{name:"lntvow/stylistic/rules",plugins:{style:q},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"}],...s}}]}import ie from"eslint-plugin-vitest";async function A(e={}){let{overrides:o}=e;return[{name:"lntvow/test/setup",plugins:{test:ie}},{name:"lntvow/test/rules",files:[...j],rules:{"lntvow/newline-before-describe-test":"error",...o}}]}import C from"@typescript-eslint/eslint-plugin";import pe from"@typescript-eslint/parser";async function V(e={}){let{componentExts:o=[],overrides:r={},parserOptions:s={}}=e,i=[c,...o.map(f=>`**/*.${f}`)];return[{name:"lntvow/typescript/setup",plugins:{ts:C}},{name:"lntvow/typescript/rules",languageOptions:{parser:pe,parserOptions:{sourceType:"module"}},files:i,rules:{...b(C.configs["eslint-recommended"].overrides[0].rules,{"@typescript-eslint":"ts"}),...b(C.configs.strict.rules,{"@typescript-eslint":"ts"}),"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}],...r}}]}import{getPackageInfoSync as fe}from"local-pkg";import U from"@typescript-eslint/parser";import ae from"vue-eslint-parser";import a from"eslint-plugin-vue";async function D(e={}){let{overrides:o={},vueVersion:r=le()}=e,s={...a.configs["vue3-essential"].rules,...a.configs["vue3-strongly-recommended"].rules,...a.configs["vue3-recommended"].rules,"vue/block-lang":["error",{script:{lang:["ts","tsx"]}}],"vue/block-order":["error",{order:["script[setup]","template","style[scoped]"]}],"vue/component-api-style":"error"},i={...a.configs.essential.rules,...a.configs["strongly-recommended"].rules,...a.configs.recommended.rules,"vue/block-lang":["error",{script:{allowNoLang:!0}}],"vue/block-order":["error",{order:[["script","template"],"style[scoped]"]}]};return[{name:"lntvow/vue/setup",plugins:{vue:a}},{name:"lntvow/vue/rules",languageOptions:{parser:ae,parserOptions:{ecmaFeatures:{jsx:!0},parser:{ts:U,tsx:U},sourceType:"module"}},processor:a.processors[".vue"],files:[w],rules:{...a.configs.base.rules,...r===3?s:i,"vue/multi-word-component-names":"off","vue/attribute-hyphenation":["error","never"],"vue/html-indent":"off","vue/html-self-closing":["error",{html:{void:"always",normal:"always",component:"always"},svg:"always",math:"always"}],"vue/max-attributes-per-line":"off","vue/singleline-html-element-content-newline":"off","vue/v-on-event-hyphenation":["error","never"],"vue/block-tag-newline":"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/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/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-multiple-objects-in-class":"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-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/require-direct-export":"error","vue/require-emit-validator":"off","vue/require-explicit-slots":"error","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/script-indent":"off","vue/sort-keys":"off","vue/static-class-names-order":"error","vue/v-for-delimiter-style":"error","vue/v-on-handler-style":"off","vue/valid-define-options":"error","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-extra-parens":"off","vue/no-empty-pattern":"error","vue/no-irregular-whitespace":"error","vue/no-loss-of-precision":"off","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",...o}}]}function le(){let e=fe("vue",{paths:[process.cwd()]});return e&&e.version?+e.version[0]:3}import{FlatConfigComposer as ue}from"eslint-flat-config-utils";import{isBoolean as ce}from"@lntvow/utils";import{isPackageExists as _}from"local-pkg";var me=["name","files","ignores","languageOptions","linterOptions","processor","plugins","rules","settings"],ve={"@stylistic":"style","@typescript-eslint":"typescript","import-x":"import",vitest:"test"};function de(e={},...o){let{autoRenamePlugins:r=!0,componentExts:s=[],gitignore:i=!0,regexp:f=!0,typescript:m=_("typescript"),vue:v=["vue","nuxt","vitepress"].some(y=>_(y)),test:x=_("vitest"),stylistic:u=!0}=e,p=[];p.push(I(),L(),k({...l(e,"javascript")}),B()),i&&p.push(S({...l(e,"gitignore")})),v&&s.push("vue"),m&&p.push(V({...l(e,"typescript"),componentExts:s})),v&&p.push(D({...l(e,"vue")})),f&&p.push(R({...l(e,"regexp")})),x&&p.push(A({...l(e,"test")})),u&&p.push(N({...l(e,"stylistic")}));let T=me.reduce((y,O)=>(O in e&&(y[O]=e[O]),y),{});Object.keys(T).length&&p.push([T]),p.push(P());let d=new ue;return d=d.append(...p,...o),r&&(d=d.renamePlugins(ve)),d}function l(e,o){return ce(e[o])?{}:e[o]||{}}export{Ue as GLOB_ALL_SRC,Ne as GLOB_ASTRO,Ie as GLOB_CSS,F as GLOB_EXCLUDE,Ae as GLOB_GRAPHQL,ee as GLOB_HTML,Se as GLOB_JS,H as GLOB_JSON,z as GLOB_JSON5,Ee as GLOB_JSONC,Ge as GLOB_JSX,ke as GLOB_LESS,G as GLOB_MARKDOWN,Ve as GLOB_MARKDOWN_CODE,Re as GLOB_MARKDOWN_IN_MARKDOWN,Be as GLOB_POSTCSS,Pe as GLOB_SCSS,c as GLOB_SRC,g as GLOB_SRC_EXT,W as GLOB_STYLE,Y as GLOB_SVELTE,j as GLOB_TESTS,qe as GLOB_TOML,je as GLOB_TS,Fe as GLOB_TSX,w as GLOB_VUE,Z as GLOB_XML,Q as GLOB_YAML,se as StylisticConfigDefaults,L as custom,le as getVueVersion,S as gitignore,I as ignores,B as imports,k as javascript,de as lntvow,P as prettier,R as regexp,b as renameRules,N as stylistic,A as test,V as typescript,D as vue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-config",
3
- "version": "9.3.9",
3
+ "version": "9.3.11",
4
4
  "author": "lntvow",
5
5
  "description": "eslint-config",
6
6
  "type": "module",
@@ -20,8 +20,8 @@
20
20
  "type": "git",
21
21
  "url": "https://github.com/lntvow/eslint-config.git"
22
22
  },
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.js",
23
+ "main": "./dist/index.cjs",
24
+ "module": "./dist/index.mjs",
25
25
  "types": "./dist/index.d.ts",
26
26
  "devDependencies": {
27
27
  "@lntvow/dev": "^1.1.0",
@@ -54,7 +54,7 @@
54
54
  "tslib": "^2.6.2",
55
55
  "typescript": "^5.4.5",
56
56
  "vue-eslint-parser": "^9.4.2",
57
- "@lntvow/eslint-plugin": "^9.3.9"
57
+ "@lntvow/eslint-plugin": "^9.3.11"
58
58
  },
59
59
  "scripts": {
60
60
  "dev": "pnpm build --format esm --watch",