@longzai-intelligence-oxlint/presets 0.2.18 → 0.2.20

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/base.d.ts CHANGED
@@ -1,3 +1,15 @@
1
+ import "./rolldown-runtime-BqT_7tdF.js";
2
+ import { t as PresetOptions } from "./preset-options.types-BWSmiunG.js";
1
3
  import { n as OxlintConfigOverride, t as OxlintConfig } from "./index-lrryBFJ6.js";
2
- import { n as oxlintBaseConfig, t as defineConfig } from "./base.entry-B_b340Dw.js";
4
+ /**
5
+ * 创建 Oxlint Base 配置
6
+ *
7
+ * @param options - 预设选项,包含额外的规则、覆盖和忽略模式
8
+ * @returns Oxlint 配置对象
9
+ */
10
+ declare function defineConfig(options?: PresetOptions): OxlintConfig;
11
+ /**
12
+ * 默认 Oxlint Base 配置实例
13
+ */
14
+ declare const oxlintBaseConfig: OxlintConfig;
3
15
  export { type OxlintConfig, type OxlintConfigOverride, oxlintBaseConfig as default, defineConfig };
@@ -0,0 +1 @@
1
+ import"node:module";import"node:fs";import"node:path";const e={react:{build:[`lzi-tsgo`,`vite`],buildProd:[`bun`]},"react-native":{build:[`expo`],buildProd:[`bun`]},expo:{build:[`expo`],buildProd:[`bun`]},taro:{build:[`taro`,`lzi-taro`],buildProd:[`bun`]},fumadocs:{build:[`react-router`],buildProd:[`bun`]},next:{build:[`next`],buildProd:[`bun`]},electron:{build:[`lzi-electron`,`electron-builder`],buildProd:[`bun`]},elysia:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]},nest:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]},hono:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]},mcp:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]},library:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]},sdk:{build:[`lzi-builder`],buildProd:[`lzi-builder`,`bun`]}};function t(e,t){return{"@longzai-intelligence-oxlint/package-json-plugin/require-build-script-toolchain":[`warn`,{build:[...e],buildProd:[...t]}]}}const n=t(e.react?.build??[],e.react?.buildProd??[]),r=t(e[`react-native`]?.build??[],e[`react-native`]?.buildProd??[]),i=t(e.taro?.build??[],e.taro?.buildProd??[]),a=t(e.fumadocs?.build??[],e.fumadocs?.buildProd??[]),o=t(e.next?.build??[],e.next?.buildProd??[]),s=t(e.electron?.build??[],e.electron?.buildProd??[]),c=t(e.library?.build??[],e.library?.buildProd??[]);export{n as a,o as i,s as n,r as o,a as r,i as s,c as t};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t}from"./base.entry-ihV3q_2I.js";import{n}from"./build-script.options-0qgjWf0p.js";import{defineConfig as r}from"./react.js";const i=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/architecture-electron-plugin/no-custom-ipc-utility":`error`,"@longzai-intelligence-oxlint/architecture-electron-plugin/no-implementation-in-renderer":`error`,"@longzai-intelligence-oxlint/architecture-electron-plugin/platform-leak":`error`}}];function a(a){let o=r();return{extends:[o],jsPlugins:[e(`architecture-electron`)],overrides:[...i,...a?.overrides??[]],rules:{...n,...a?.rules??{}},ignorePatterns:t([...o.ignorePatterns??[],...a?.ignorePatterns??[]])}}const o=a();export{o as n,a as t};
package/dist/electron.js CHANGED
@@ -1 +1 @@
1
- export{n as default,t as defineConfig}from"./electron.entry-ei_KBsC2.js";
1
+ export{n as default,t as defineConfig}from"./electron.entry-BAOE_exm.js";
package/dist/elysia.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t,t as n}from"./base.entry-ihV3q_2I.js";import"./node.js";const r=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/elysia-route-plugin/no-bare-route-path":`error`}}];function i(i){let a=n();return{extends:[a],jsPlugins:[e(`elysia-route`)],overrides:[...r,...i?.overrides??[]],...i?.rules?{rules:i.rules}:{},ignorePatterns:t([...a.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{a as default,i as defineConfig};
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t,t as n}from"./base.entry-ihV3q_2I.js";import{t as r}from"./build-script.options-0qgjWf0p.js";import"./node.js";const i=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/elysia-route-plugin/no-bare-route-path":`error`}}];function a(a){let o=n();return{extends:[o],jsPlugins:[e(`elysia-route`)],overrides:[...i,...a?.overrides??[]],rules:{...r,...a?.rules??{}},ignorePatterns:t([...o.ignorePatterns??[],...a?.ignorePatterns??[]])}}const o=a();export{o as default,a as defineConfig};
package/dist/expo.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{t}from"./react-native.entry-uxmAuHx6.js";function n(n){let r=t();return{extends:[r],...n,ignorePatterns:e([...r.ignorePatterns??[],...n?.ignorePatterns??[]])}}const r=n();export{r as default,n as defineConfig};
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{t}from"./react-native.entry-Di8qZle2.js";function n(n){let r=t();return{extends:[r],...n,ignorePatterns:e([...r.ignorePatterns??[],...n?.ignorePatterns??[]])}}const r=n();export{r as default,n as defineConfig};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{r as t}from"./build-script.options-0qgjWf0p.js";import{defineConfig as n}from"./react.js";const r=[`app/routes.ts`,`app/routes/**`],i=[`app/root.tsx`,`app/routes/**`];function a(a){let o=[...a?.typeSuffixBaseSkipPatterns??[],...r],s=[...a?.fileNamingBaseSkipPatterns??[],...i],c={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:o}]}},l={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:s}]}},u=n();return{extends:[u],overrides:[c,l,...a?.overrides??[]],rules:{...t,...a?.rules??{}},ignorePatterns:e([...u.ignorePatterns??[],...a?.ignorePatterns??[]])}}const o=a();export{r as i,o as n,i as r,a as t};
package/dist/fumadocs.js CHANGED
@@ -1 +1 @@
1
- export{r as FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS,i as FUMADOCS_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./fumadocs.entry-CtIYd25I.js";
1
+ export{r as FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS,i as FUMADOCS_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./fumadocs.entry-Da1xgpun.js";
package/dist/hono.d.ts CHANGED
@@ -1,4 +1,15 @@
1
1
  import "./rolldown-runtime-BqT_7tdF.js";
2
- import { n as oxlintBaseConfig, t as defineConfig } from "./base.entry-B_b340Dw.js";
2
+ import { t as PresetOptions } from "./preset-options.types-BWSmiunG.js";
3
3
  import { n as OxlintConfigOverride, t as OxlintConfig } from "./index-lrryBFJ6.js";
4
- export { type OxlintConfig, type OxlintConfigOverride, oxlintBaseConfig as default, defineConfig };
4
+ /**
5
+ * 创建 Oxlint Hono 配置
6
+ *
7
+ * @param options - 预设选项,包含额外的规则、覆盖和忽略模式
8
+ * @returns 继承 node 基座并注入 Hono 单元 build 脚本形态校验的 Oxlint 配置对象
9
+ */
10
+ declare function defineConfig(options?: PresetOptions): OxlintConfig;
11
+ /**
12
+ * 默认 Oxlint Hono 配置实例
13
+ */
14
+ declare const oxlintHonoConfig: OxlintConfig;
15
+ export { type OxlintConfig, type OxlintConfigOverride, oxlintHonoConfig as default, defineConfig };
package/dist/hono.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";export{n as default,t as defineConfig}from"./base.entry-ihV3q_2I.js";import"./node.js";
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{t as n}from"./build-script.options-0qgjWf0p.js";import"./node.js";function r(r){let i=t();return{extends:[i],rules:{...n,...r?.rules??{}},ignorePatterns:e([...i.ignorePatterns??[],...r?.ignorePatterns??[]])}}const i=r();export{i as default,r as defineConfig};
package/dist/index.d.ts CHANGED
@@ -1,17 +1,19 @@
1
1
  import "./rolldown-runtime-BqT_7tdF.js";
2
- import { t as defineConfig } from "./base.entry-B_b340Dw.js";
3
- import { defineConfig as defineConfig$8 } from "./react.js";
4
- import { r as NEXTJS_SPECIAL_FILE_PATTERNS, t as defineConfig$7 } from "./next.entry-Ne8_XqK0.js";
5
- import { t as defineConfig$12 } from "./taro.entry-BCmIDclj.js";
2
+ import { defineConfig } from "./base.js";
3
+ import { defineConfig as defineConfig$10 } from "./react.js";
4
+ import { defineConfig as defineConfig$5 } from "./hono.js";
5
+ import { defineConfig as defineConfig$7 } from "./mcp.js";
6
+ import { r as NEXTJS_SPECIAL_FILE_PATTERNS, t as defineConfig$9 } from "./next.entry-Ne8_XqK0.js";
7
+ import { t as defineConfig$14 } from "./taro.entry-BCmIDclj.js";
6
8
  import { i as FUMADOCS_SPECIAL_FILE_PATTERNS, r as FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS, t as defineConfig$4 } from "./fumadocs.entry-8pmrxlhS.js";
7
- import { r as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS, t as defineConfig$9 } from "./react-native.entry-Cj2-RwM6.js";
9
+ import { r as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS, t as defineConfig$11 } from "./react-native.entry-Cj2-RwM6.js";
8
10
  import { defineConfig as defineConfig$3 } from "./expo.js";
9
- import { defineConfig as defineConfig$6 } from "./nest.js";
11
+ import { defineConfig as defineConfig$8 } from "./nest.js";
10
12
  import { defineConfig as defineConfig$2 } from "./electron.js";
11
- import { defineConfig as defineConfig$5 } from "./library.js";
13
+ import { defineConfig as defineConfig$6 } from "./library.js";
12
14
  import { defineConfig as defineConfig$1 } from "./e2e.js";
13
- import { r as SDK_GENERATED_PATTERNS, t as defineConfig$11 } from "./sdk.entry-BYKYZRSf.js";
14
- import { r as ROOT_WHITELIST_PATTERNS, t as defineConfig$10 } from "./root.entry-zPzaL4rV.js";
15
+ import { r as SDK_GENERATED_PATTERNS, t as defineConfig$13 } from "./sdk.entry-BYKYZRSf.js";
16
+ import { r as ROOT_WHITELIST_PATTERNS, t as defineConfig$12 } from "./root.entry-zPzaL4rV.js";
15
17
  import { t as PresetOptions } from "./preset-options.types-BWSmiunG.js";
16
18
  import { i as OxlintRules, n as OxlintConfigOverride, r as OxlintRuleConfig, t as OxlintConfig } from "./index-lrryBFJ6.js";
17
19
  import { a as ESLINT_CORE_RULES, i as TYPESCRIPT_RECOMMENDED_RULES, n as ESLINT_RECOMMENDED_RULES, r as TYPESCRIPT_PROJECT_RULES, t as UNICORN_RULES } from "./unicorn.rules-BpYEgKCm.js";
@@ -28,4 +30,4 @@ declare const PLUGIN_DEFAULTS: OxlintRules;
28
30
  * 生态层覆盖插件 recommended 的无选项形态,require-* 与 test-file 系列规则由此获得选项默认值
29
31
  */
30
32
  declare const ALL_RULES: OxlintRules;
31
- export { ALL_RULES, ESLINT_CORE_RULES, ESLINT_RECOMMENDED_RULES, FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS, FUMADOCS_SPECIAL_FILE_PATTERNS, NEXTJS_SPECIAL_FILE_PATTERNS, type OxlintConfig, type OxlintConfigOverride, type OxlintRuleConfig, type OxlintRules, PLUGIN_DEFAULTS, type PresetOptions, REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS, ROOT_WHITELIST_PATTERNS, SDK_GENERATED_PATTERNS, TYPESCRIPT_PROJECT_RULES, TYPESCRIPT_RECOMMENDED_RULES, UNICORN_RULES, defineConfig as defineBaseConfig, defineConfig as defineHonoConfig, defineConfig as defineMcpConfig, defineConfig as defineNodeConfig, defineConfig$1 as defineE2eConfig, defineConfig$2 as defineElectronConfig, defineConfig$3 as defineExpoConfig, defineConfig$4 as defineFumadocsConfig, defineConfig$5 as defineLibraryConfig, defineConfig$6 as defineNestConfig, defineConfig$7 as defineNextConfig, defineConfig$8 as defineReactConfig, defineConfig$9 as defineReactNativeConfig, defineConfig$10 as defineRootConfig, defineConfig$11 as defineSdkConfig, defineConfig$12 as defineTaroConfig };
33
+ export { ALL_RULES, ESLINT_CORE_RULES, ESLINT_RECOMMENDED_RULES, FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS, FUMADOCS_SPECIAL_FILE_PATTERNS, NEXTJS_SPECIAL_FILE_PATTERNS, type OxlintConfig, type OxlintConfigOverride, type OxlintRuleConfig, type OxlintRules, PLUGIN_DEFAULTS, type PresetOptions, REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS, ROOT_WHITELIST_PATTERNS, SDK_GENERATED_PATTERNS, TYPESCRIPT_PROJECT_RULES, TYPESCRIPT_RECOMMENDED_RULES, UNICORN_RULES, defineConfig as defineBaseConfig, defineConfig as defineNodeConfig, defineConfig$1 as defineE2eConfig, defineConfig$2 as defineElectronConfig, defineConfig$3 as defineExpoConfig, defineConfig$4 as defineFumadocsConfig, defineConfig$5 as defineHonoConfig, defineConfig$6 as defineLibraryConfig, defineConfig$7 as defineMcpConfig, defineConfig$8 as defineNestConfig, defineConfig$9 as defineNextConfig, defineConfig$10 as defineReactConfig, defineConfig$11 as defineReactNativeConfig, defineConfig$12 as defineRootConfig, defineConfig$13 as defineSdkConfig, defineConfig$14 as defineTaroConfig };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{i as e,r as t,t as n}from"./base.entry-ihV3q_2I.js";import"./node.js";import{defineConfig as r}from"./react.js";import"./hono.js";import"./mcp.js";import{r as i,t as a}from"./next.entry-D8xe0J_9.js";import{t as o}from"./taro.entry-CX8yI3jE.js";import{i as s,r as c,t as l}from"./fumadocs.entry-CtIYd25I.js";import{r as u,t as d}from"./react-native.entry-uxmAuHx6.js";import{defineConfig as f}from"./expo.js";import{t as p}from"./nest.entry-D5jDFAt8.js";import{t as m}from"./electron.entry-ei_KBsC2.js";import{defineConfig as h}from"./library.js";import{t as g}from"./e2e.entry-BovadSvn.js";import{r as _,t as v}from"./sdk.entry-DpBT2LZv.js";import{r as y,t as b}from"./root.entry-DgJMQCn5.js";import{n as x,t as S}from"./unicorn.rules-0a_FuIjL.js";import{n as C,r as w,t as T}from"./typescript-eslint.rules-j0Y80OGu.js";export{t as ALL_RULES,x as ESLINT_CORE_RULES,T as ESLINT_RECOMMENDED_RULES,c as FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS,s as FUMADOCS_SPECIAL_FILE_PATTERNS,i as NEXTJS_SPECIAL_FILE_PATTERNS,e as PLUGIN_DEFAULTS,u as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS,y as ROOT_WHITELIST_PATTERNS,_ as SDK_GENERATED_PATTERNS,C as TYPESCRIPT_PROJECT_RULES,w as TYPESCRIPT_RECOMMENDED_RULES,S as UNICORN_RULES,n as defineBaseConfig,n as defineHonoConfig,n as defineMcpConfig,n as defineNodeConfig,g as defineE2eConfig,m as defineElectronConfig,f as defineExpoConfig,l as defineFumadocsConfig,h as defineLibraryConfig,p as defineNestConfig,a as defineNextConfig,r as defineReactConfig,d as defineReactNativeConfig,b as defineRootConfig,v as defineSdkConfig,o as defineTaroConfig};
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{i as e,r as t,t as n}from"./base.entry-ihV3q_2I.js";import"./node.js";import{defineConfig as r}from"./react.js";import{defineConfig as i}from"./hono.js";import{defineConfig as a}from"./mcp.js";import{r as o,t as s}from"./next.entry-FXHh3Xx5.js";import{t as c}from"./taro.entry-BWtNoA3m.js";import{i as l,r as u,t as d}from"./fumadocs.entry-Da1xgpun.js";import{r as f,t as p}from"./react-native.entry-Di8qZle2.js";import{defineConfig as m}from"./expo.js";import{t as h}from"./nest.entry-BWY9bgdO.js";import{t as g}from"./electron.entry-BAOE_exm.js";import{defineConfig as _}from"./library.js";import{t as v}from"./e2e.entry-BovadSvn.js";import{r as y,t as b}from"./sdk.entry-DpBT2LZv.js";import{r as x,t as S}from"./root.entry-DgJMQCn5.js";import{n as C,t as w}from"./unicorn.rules-0a_FuIjL.js";import{n as T,r as E,t as D}from"./typescript-eslint.rules-j0Y80OGu.js";export{t as ALL_RULES,C as ESLINT_CORE_RULES,D as ESLINT_RECOMMENDED_RULES,u as FUMADOCS_FILE_NAMING_EXEMPT_PATTERNS,l as FUMADOCS_SPECIAL_FILE_PATTERNS,o as NEXTJS_SPECIAL_FILE_PATTERNS,e as PLUGIN_DEFAULTS,f as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS,x as ROOT_WHITELIST_PATTERNS,y as SDK_GENERATED_PATTERNS,T as TYPESCRIPT_PROJECT_RULES,E as TYPESCRIPT_RECOMMENDED_RULES,w as UNICORN_RULES,n as defineBaseConfig,n as defineNodeConfig,v as defineE2eConfig,g as defineElectronConfig,m as defineExpoConfig,d as defineFumadocsConfig,i as defineHonoConfig,_ as defineLibraryConfig,a as defineMcpConfig,h as defineNestConfig,s as defineNextConfig,r as defineReactConfig,p as defineReactNativeConfig,S as defineRootConfig,b as defineSdkConfig,c as defineTaroConfig};
package/dist/library.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{t as n}from"./ui-consumption.rules-KvXiDxx6.js";function r(r){let i=t();return{extends:[i],rules:{...n,...r?.rules??{}},...r?.overrides?{overrides:r.overrides}:{},ignorePatterns:e([...i.ignorePatterns??[],...r?.ignorePatterns??[]])}}const i=r();export{i as default,r as defineConfig};
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{t as n}from"./build-script.options-0qgjWf0p.js";import{t as r}from"./ui-consumption.rules-KvXiDxx6.js";function i(i){let a=t();return{extends:[a],rules:{...n,...r,...i?.rules??{}},...i?.overrides?{overrides:i.overrides}:{},ignorePatterns:e([...a.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{a as default,i as defineConfig};
package/dist/mcp.d.ts CHANGED
@@ -1,4 +1,15 @@
1
1
  import "./rolldown-runtime-BqT_7tdF.js";
2
- import { n as oxlintBaseConfig, t as defineConfig } from "./base.entry-B_b340Dw.js";
2
+ import { t as PresetOptions } from "./preset-options.types-BWSmiunG.js";
3
3
  import { n as OxlintConfigOverride, t as OxlintConfig } from "./index-lrryBFJ6.js";
4
- export { type OxlintConfig, type OxlintConfigOverride, oxlintBaseConfig as default, defineConfig };
4
+ /**
5
+ * 创建 Oxlint MCP 配置
6
+ *
7
+ * @param options - 预设选项,包含额外的规则、覆盖和忽略模式
8
+ * @returns 继承 node 基座并注入 MCP 单元 build 脚本形态校验的 Oxlint 配置对象
9
+ */
10
+ declare function defineConfig(options?: PresetOptions): OxlintConfig;
11
+ /**
12
+ * 默认 Oxlint MCP 配置实例
13
+ */
14
+ declare const oxlintMcpConfig: OxlintConfig;
15
+ export { type OxlintConfig, type OxlintConfigOverride, oxlintMcpConfig as default, defineConfig };
package/dist/mcp.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";export{n as default,t as defineConfig}from"./base.entry-ihV3q_2I.js";import"./node.js";
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{t as n}from"./build-script.options-0qgjWf0p.js";import"./node.js";function r(r){let i=t();return{extends:[i],rules:{...n,...r?.rules??{}},ignorePatterns:e([...i.ignorePatterns??[],...r?.ignorePatterns??[]])}}const i=r();export{i as default,r as defineConfig};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t,t as n}from"./base.entry-ihV3q_2I.js";import{t as r}from"./build-script.options-0qgjWf0p.js";import"./node.js";const i=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/nestjs-route-plugin/order":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/no-duplicates":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/require-route-constant":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/prefer-typed-controller":`warn`,"@longzai-intelligence-oxlint/nestjs-route-plugin/require-typed-response":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/enforce-typed-handler-return":`error`,"@longzai-intelligence-oxlint/architecture-core-plugin/no-restricted-import-in-paths":[`error`,{restrictions:[{importSource:`@nestjs/common`,importNames:[`BadRequestException`,`NotFoundException`,`ForbiddenException`,`UnauthorizedException`,`ConflictException`,`HttpException`],forbiddenPaths:[`*.service.ts`],message:`Service 层禁止导入 NestJS HTTP 异常,请使用 Result<T, DomainError> 透传领域错误,由 Handler 层解包`}]}]}}];function a(a){let o=n();return{extends:[o],jsPlugins:[e(`nestjs-route`)],overrides:[...i,...a?.overrides??[]],rules:{...r,...a?.rules??{}},ignorePatterns:t([...o.ignorePatterns??[],...a?.ignorePatterns??[]])}}const o=a();export{o as n,a as t};
package/dist/nest.js CHANGED
@@ -1 +1 @@
1
- import"./node.js";export{n as default,t as defineConfig}from"./nest.entry-D5jDFAt8.js";
1
+ import"./node.js";export{n as default,t as defineConfig}from"./nest.entry-BWY9bgdO.js";
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{i as t}from"./build-script.options-0qgjWf0p.js";import{defineConfig as n}from"./react.js";const r=[`**/page.ts`,`**/layout.ts`,`**/loading.ts`,`**/error.ts`,`**/not-found.ts`,`**/template.ts`,`**/default.ts`,`**/global-error.ts`,`**/middleware.ts`,`**/route.ts`,`**/instrumentation.ts`],i=[`**/page.tsx`,`**/layout.tsx`,`**/loading.tsx`,`**/error.tsx`,`**/not-found.tsx`,`**/template.tsx`,`**/default.tsx`,`**/global-error.tsx`],a=[...r,...i];function o(r){let i=[...r?.typeSuffixBaseSkipPatterns??[],...a],o=[...r?.fileNamingBaseSkipPatterns??[],...a],s={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:i}]}},c={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:o}]}},l=n();return{extends:[l],plugins:[`nextjs`],overrides:[s,c,...r?.overrides??[]],rules:{...t,...r?.rules??{}},ignorePatterns:e([...l.ignorePatterns??[],...r?.ignorePatterns??[]])}}const s=o();export{s as n,a as r,o as t};
package/dist/next.js CHANGED
@@ -1 +1 @@
1
- export{r as NEXTJS_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./next.entry-D8xe0J_9.js";
1
+ export{r as NEXTJS_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./next.entry-FXHh3Xx5.js";
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./rolldown-runtime-BqT_7tdF.js";
2
2
  import { n as OxlintConfigOverride, t as OxlintConfig } from "./index-lrryBFJ6.js";
3
- import { n as oxlintBaseConfig, t as defineConfig } from "./base.entry-B_b340Dw.js";
3
+ import oxlintBaseConfig, { defineConfig } from "./base.js";
4
4
  export { type OxlintConfig, type OxlintConfigOverride, oxlintBaseConfig as default, defineConfig };
@@ -1 +1 @@
1
- import"../rolldown-runtime-BqT_7tdF.js";import{defineRule as e,eslintCompatPlugin as t}from"@oxlint/plugins";function n(e){return/\/(apps|packages)\//.test(e)&&e.endsWith(`/package.json`)}function r(e){return e.endsWith(`-infrastructure`)}function i(e){return typeof e==`object`&&!!e}const a=e({meta:{type:`problem`,docs:{description:`禁止 apps/packages 层声明领域基础设施包依赖(ADR 0102:域细节只经域公开面流出)`}},createOnce(e){return{before(){if(!n(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let a=JSON.parse(n);if(!i(a)||!i(a.dependencies))return;let o=Object.keys(a.dependencies).filter(r);o.length>0&&e.report({node:t,message:`禁止 apps/packages 层声明领域基础设施包依赖(ADR 0102):域的持久化实现细节只经域公开面流出。发现依赖 [${o.join(`, `)}]。`})}catch{}}}}});function o(e){return/\/apps\//.test(e)&&e.endsWith(`/package.json`)}function s(e){return typeof e==`object`&&!!e}function c(e){return s(e)?Object.keys(e).filter(e=>e!==`.`):[]}const l=e({meta:{type:`problem`,docs:{description:`禁止 apps 层应用包声明多出口 exports,依据 ADR 0198:应用包 exports 只允许无或单一根出口,跨应用复用一律经根出口取件`}},createOnce(e){return{before(){if(!o(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!s(r))return;let i=c(r.exports);i.length>0&&e.report({node:t,message:`禁止 apps 层应用包声明多出口 exports,依据 ADR 0198:应用包 exports 只允许无或单一根出口,跨应用复用一律经根出口取件。发现子出口 [${i.join(`, `)}]。`})}catch{}}}}}),u=/* @__PURE__ */ new Set([`tsgo`,`tsc`]),d={bareCompiler:`裸调 tsgo 或 tsc 执行类型检查`,legacyDevCliTypecheck:`使用 lzi-dev-cli typecheck 旧封装,应迁移至 lzi-tsgo typecheck`,wrapperWithoutConfig:`lzi-tsgo typecheck 未传 tsconfig 路径`,wrapperWithoutSubcommand:`调用 lzi-tsgo 未带 typecheck 子命令`};function f(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}function p(e){return typeof e==`object`&&!!e}function m(e){return e===`typecheck`||e.startsWith(`typecheck:`)}function h(e){return e.split(/&&|\|\||;|\|/).map(e=>e.trim()).filter(e=>e.length>0)}function g(e){let t=e.split(/\s+/).filter(e=>e.length>0),n=``,r=[];for(let e of t)if(n)r.push(e);else{if(/^[A-Za-z_][A-Za-z0-9_]*=/.test(e))continue;n=e}return n?{command:n,args:r}:null}function ee(e,t,n){let r=g(t);if(!r)return null;let i=r.command,a=r.args;return u.has(i)?n||a.includes(`--noEmit`)?{key:e,kind:`bareCompiler`,segment:t}:null:n?i===`lzi-tsgo`?a[0]===`typecheck`?a.slice(1).some(e=>!e.startsWith(`-`))?null:{key:e,kind:`wrapperWithoutConfig`,segment:t}:{key:e,kind:`wrapperWithoutSubcommand`,segment:t}:i===`lzi-dev-cli`&&a[0]===`typecheck`?{key:e,kind:`legacyDevCliTypecheck`,segment:t}:null:null}function te(e){let t=[];for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=m(n);for(let i of h(r)){let r=ee(n,i,e);r&&t.push(r)}}return t}function ne(e){if(!p(e))return null;let t=e.scripts;return p(t)?t:null}function re(e){return`scripts 键 ${e.key} ${d[e.kind]}。类型检查统一使用 lzi-tsgo typecheck 加 tsconfig 路径,依据 ADR 0057 与 ADR 0117。`}const ie=e({meta:{type:`problem`,docs:{description:`禁止在 package.json scripts 中绕过 lzi-tsgo 封装执行类型检查`}},createOnce(e){return{before(){let t=e.filename;if(!f(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=ne(JSON.parse(n));if(r){let n=te(r);for(let r of n)e.report({node:t,message:re(r)})}}catch{}}}}});function ae(e){return/\/domains\/[^/]+\/implementation\/package\.json$/.test(e)}function _(e){return typeof e==`object`&&!!e}function v(e,t){if(e===`./domain`)return!0;let n=typeof t==`string`?t:_(t)?[t.types,t.import,t.require,t.default].filter(e=>typeof e==`string`).join(` `):``;return/(^|\/)dist\/domain(\.|\/|$)/.test(n)||/(^|\/)src\/domain(\/|$)/.test(n)}const y={noDomainLayerSubpathExport:"禁止领域实现包声明领域分层子路径导出(ADR 0101):领域分层(domain/)为 implementation 包内私有,仓储端口应落位 contract 包;`./domain` 类子导出属违规逃逸通道。"},b=e({meta:{type:`problem`,docs:{description:`禁止领域实现包声明领域分层子路径导出(ADR 0101 违规逃逸通道)`}},createOnce(e){return{before(){if(!ae(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!_(r)||!_(r.exports))return;for(let[n,i]of Object.entries(r.exports))n!==`.`&&v(n,i)&&e.report({node:t,message:`${y.noDomainLayerSubpathExport}(发现子路径 "${n}")`})}catch{}}}}}),x=/* @__PURE__ */ new Set([`@types/bun`,`@types/node`,`@typescript/native-preview`,`oxfmt`,`oxlint`,`tsdown`,`turbo`]),S=[`@longzai-intelligence-agent-tools/`,`@longzai-intelligence-bun/`,`@longzai-intelligence-builder/`,`@longzai-intelligence-changelog/`,`@longzai-intelligence-decision/`,`@longzai-intelligence-dev-tools/`,`@longzai-intelligence-env/`,`@longzai-intelligence-git/`,`@longzai-intelligence-issues/`,`@longzai-intelligence-oxfmt/`,`@longzai-intelligence-oxlint/`,`@longzai-intelligence-release/`,`@longzai-intelligence-tsgo/`,`@longzai-intelligence-tsdown/`,`@longzai-intelligence-typescript/`,`@longzai-intelligence-vitest/`,`@longzai-intelligence-vscode/`],C=/* @__PURE__ */ new Set([`@longzai-intelligence/typescript-config`]),w=/* @__PURE__ */ new Set([`@longzai-intelligence-dev-tools/vite-plugin`,`@longzai-intelligence-typescript/rolldown-plugin-type-boundary`]);function T(e){return/\/(apps|packages|domains|plugins)\//.test(e)&&e.endsWith(`/package.json`)}function E(e){return w.has(e)?!1:x.has(e)||C.has(e)?!0:S.some(t=>e.startsWith(t))}function D(e){return typeof e==`object`&&!!e}const O=e({meta:{type:`problem`,docs:{description:`禁止子包声明应放 workspace 根的开发依赖,依据 ADR 0036 根已声明与应放根类别由根统一承载`}},createOnce(e){return{before(){if(!T(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!D(r)||!D(r.devDependencies)||`workspaces`in r)return;let i=Object.keys(r.devDependencies).filter(E);i.length>0&&e.report({node:t,message:`禁止子包声明应放 workspace 根的开发依赖,ADR 0036 判定根已声明与应放根类别均由根统一承载,子包经 Bun hoisting 取用。发现依赖 [${i.join(`, `)}]。`})}catch{}}}}});function k(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}function A(e){return typeof e==`object`&&!!e}const j={noMitLicense:`禁止使用 MIT 协议。项目中的所有包都应使用 "license": "UNLICENSED"。`},M=e({meta:{type:`problem`,docs:{description:`禁止在 package.json 中使用 MIT 协议`}},createOnce(e){return{before(){let t=e.filename;if(!k(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);A(r)&&r.license===`MIT`&&e.report({node:t,message:j.noMitLicense})}catch{}}}}});function N(e){return/\/domains\/[^/]+\/infrastructure\/package\.json$/.test(e)}function P(e){return e.endsWith(`-infrastructure`)?`${e.slice(0,-15)}-implementation`:null}function F(e){return typeof e==`object`&&!!e}const I=e({meta:{type:`problem`,docs:{description:`禁止领域基础设施包依赖同域实现包(ADR 0101 依赖图只允许 infrastructure ──> contract)`}},createOnce(e){return{before(){if(!N(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!F(r)||typeof r.name!=`string`)return;let i=P(r.name);if(!i||!F(r.dependencies))return;i in r.dependencies&&e.report({node:t,message:`禁止领域基础设施包依赖同域实现包(ADR 0101):依赖图只允许 infrastructure ──> contract,发现依赖 "${i}"。`})}catch{}}}}});function L(e){return e.endsWith(`/package.json`)}const R=/^(?:\.{1,2}\/)?src\//;function z(e){return typeof e==`object`&&!!e}function B(e,t,n){if(typeof t==`string`)R.test(t)&&n.push({subpath:e,target:t});else if(z(t))for(let r of Object.values(t))B(e,r,n)}function oe(e){let t=[];if(typeof e==`string`)return B(`.`,e,t),t;if(z(e))for(let[n,r]of Object.entries(e))B(n,r,t);return t}const V={noSrcExports:`禁止 exports 指向 src 源码(统一 dist 产物范式):包导出一律指向 dist 产物,指向源码会使消费方程序拉入本包源码编译。`},H=e({meta:{type:`problem`,docs:{description:`禁止 exports 指向 src 源码(统一 dist 产物范式门禁)`}},createOnce(e){return{before(){if(!L(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!z(r))return;let i=oe(r.exports);for(let n of i)e.report({node:t,message:`${V.noSrcExports}(发现 "${n.subpath}" 指向 "${n.target}")`})}catch{}}}}}),U=[`-domain`,`-contract`,`-implementation`,`-infrastructure`];function W(e){return/\/domains\/[^/]+\/ui\/package\.json$/.test(e)}function G(e){return U.some(t=>e.endsWith(t))}function K(e){return typeof e==`object`&&!!e}const q=e({meta:{type:`problem`,docs:{description:`禁止 domains ui 层声明域内四层包依赖,ADR 0127:UI 面域外依赖唯一指向生成式 sdk 客户端`}},createOnce(e){return{before(){if(!W(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!K(r)||!K(r.dependencies))return;let i=Object.keys(r.dependencies).filter(G);i.length>0&&e.report({node:t,message:`禁止 ui 层声明域内包依赖,ADR 0127:UI 面域外依赖唯一指向生成式 sdk 客户端,DDD 主体对 ui 全封闭。发现依赖 [${i.join(`, `)}]。`})}catch{}}}}}),J=[`mcp`,`cli`,`tui`,`dev`];function se(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}const ce=/^@longzai-intelligence-([a-z0-9][a-z0-9-]*)\//,le=/^longzai-intelligence-[a-z0-9][a-z0-9-]*$/;function Y(e){return typeof e==`object`&&!!e}function ue(e){let t=e.replace(/\\/g,`/`).split(`/`);for(let e=t.length-2;e>=0;--e){let n=t[e];if(n!==void 0&&le.test(n))return n.slice(21)}return null}function de(e){let t=ce.exec(e);return t===null?null:t[1]??null}function fe(e,t){return ue(e)??de(t)}function X(e){return`lzi-${e}`}function Z(e){return e.includes(`/`)?e.slice(e.indexOf(`/`)+1):e}function pe(e,t,n){let r=X(t),i=J.find(t=>e===t||e.endsWith(`-${t}`));if(i!==void 0)return`${r}-${i}`;if(n===void 0)return r;let a=Z(n);return e.endsWith(`-${a}`)?`${r}-${a}`:r}function me(e,t,n){let r=X(t);return e===r||J.some(t=>e===`${r}-${t}`)?!0:n!==void 0&&e===`${r}-${Z(n)}`}function he(e,t){let n=e.bin;return typeof n==`string`?[Z(t)]:Y(n)?Object.keys(n):[]}const ge={invalidBinName:`bin 命令名不符合 ADR 0049 完整名称规范,命令名须为 lzi- 前缀加项目全名的 kebab-case 形态,禁止缩写`};function _e(e,t){return`${ge.invalidBinName},实际命令名为 "${e}",应为 "${t}"。`}const Q=e({meta:{type:`problem`,docs:{description:`校验 package.json 的 bin 命令名使用项目全名,禁止缩写,依据 ADR 0049`}},createOnce(e){return{before(){let t=e.filename;if(!se(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!Y(r)||typeof r.name!=`string`||r.bin===void 0||r.name.includes(`{{`))return;let i=fe(e.filename,r.name);if(i===null)return;let a=he(r,r.name);for(let n of a)n.includes(`{{`)||me(n,i,r.name)||e.report({node:t,message:_e(n,pe(n,i,r.name))})}catch{}}}}}),$=t({meta:{name:`@longzai-intelligence-oxlint/package-json-plugin`},rules:{"no-app-infrastructure-dependency":a,"no-app-subpath-exports":l,"no-bare-tsgo-invocation":ie,"no-domain-layer-subpath-export":b,"no-hoistable-dev-dependency":O,"no-mit-license":M,"no-sibling-implementation-dependency":I,"no-src-exports":H,"no-ui-domain-package-dependency":q,"require-full-project-bin-name":Q}});export{$ as default,$ as packageJsonPlugin,k as isPackageJson,M as noMitLicenseRule};
1
+ import"../rolldown-runtime-BqT_7tdF.js";import{defineRule as e,eslintCompatPlugin as t}from"@oxlint/plugins";function n(e){return/\/(apps|packages)\//.test(e)&&e.endsWith(`/package.json`)}function r(e){return e.endsWith(`-infrastructure`)}function i(e){return typeof e==`object`&&!!e}const a=e({meta:{type:`problem`,docs:{description:`禁止 apps/packages 层声明领域基础设施包依赖(ADR 0102:域细节只经域公开面流出)`}},createOnce(e){return{before(){if(!n(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let a=JSON.parse(n);if(!i(a)||!i(a.dependencies))return;let o=Object.keys(a.dependencies).filter(r);o.length>0&&e.report({node:t,message:`禁止 apps/packages 层声明领域基础设施包依赖(ADR 0102):域的持久化实现细节只经域公开面流出。发现依赖 [${o.join(`, `)}]。`})}catch{}}}}});function o(e){return/\/apps\//.test(e)&&e.endsWith(`/package.json`)}function s(e){return typeof e==`object`&&!!e}function c(e){return s(e)?Object.keys(e).filter(e=>e!==`.`):[]}const l=e({meta:{type:`problem`,docs:{description:`禁止 apps 层应用包声明多出口 exports,依据 ADR 0198:应用包 exports 只允许无或单一根出口,跨应用复用一律经根出口取件`}},createOnce(e){return{before(){if(!o(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!s(r))return;let i=c(r.exports);i.length>0&&e.report({node:t,message:`禁止 apps 层应用包声明多出口 exports,依据 ADR 0198:应用包 exports 只允许无或单一根出口,跨应用复用一律经根出口取件。发现子出口 [${i.join(`, `)}]。`})}catch{}}}}}),u=/* @__PURE__ */ new Set([`tsgo`,`tsc`]),d={bareCompiler:`裸调 tsgo 或 tsc 执行类型检查`,legacyDevCliTypecheck:`使用 lzi-dev-cli typecheck 旧封装,应迁移至 lzi-tsgo typecheck`,wrapperWithoutConfig:`lzi-tsgo typecheck 未传 tsconfig 路径`,wrapperWithoutSubcommand:`调用 lzi-tsgo 未带 typecheck 子命令`};function ee(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}function f(e){return typeof e==`object`&&!!e}function p(e){return e===`typecheck`||e.startsWith(`typecheck:`)}function m(e){return e.split(/&&|\|\||;|\|/).map(e=>e.trim()).filter(e=>e.length>0)}function h(e){let t=e.split(/\s+/).filter(e=>e.length>0),n=``,r=[];for(let e of t)if(n)r.push(e);else{if(/^[A-Za-z_][A-Za-z0-9_]*=/.test(e))continue;n=e}return n?{command:n,args:r}:null}function g(e,t,n){let r=h(t);if(!r)return null;let i=r.command,a=r.args;return u.has(i)?n||a.includes(`--noEmit`)?{key:e,kind:`bareCompiler`,segment:t}:null:n?i===`lzi-tsgo`?a[0]===`typecheck`?a.slice(1).some(e=>!e.startsWith(`-`))?null:{key:e,kind:`wrapperWithoutConfig`,segment:t}:{key:e,kind:`wrapperWithoutSubcommand`,segment:t}:i===`lzi-dev-cli`&&a[0]===`typecheck`?{key:e,kind:`legacyDevCliTypecheck`,segment:t}:null:null}function _(e){let t=[];for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=p(n);for(let i of m(r)){let r=g(n,i,e);r&&t.push(r)}}return t}function v(e){if(!f(e))return null;let t=e.scripts;return f(t)?t:null}function y(e){return`scripts 键 ${e.key} ${d[e.kind]}。类型检查统一使用 lzi-tsgo typecheck 加 tsconfig 路径,依据 ADR 0057 与 ADR 0117。`}const te=e({meta:{type:`problem`,docs:{description:`禁止在 package.json scripts 中绕过 lzi-tsgo 封装执行类型检查`}},createOnce(e){return{before(){let t=e.filename;if(!ee(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=v(JSON.parse(n));if(r){let n=_(r);for(let r of n)e.report({node:t,message:y(r)})}}catch{}}}}});function ne(e){return/\/domains\/[^/]+\/implementation\/package\.json$/.test(e)}function b(e){return typeof e==`object`&&!!e}function re(e,t){if(e===`./domain`)return!0;let n=typeof t==`string`?t:b(t)?[t.types,t.import,t.require,t.default].filter(e=>typeof e==`string`).join(` `):``;return/(^|\/)dist\/domain(\.|\/|$)/.test(n)||/(^|\/)src\/domain(\/|$)/.test(n)}const ie={noDomainLayerSubpathExport:"禁止领域实现包声明领域分层子路径导出(ADR 0101):领域分层(domain/)为 implementation 包内私有,仓储端口应落位 contract 包;`./domain` 类子导出属违规逃逸通道。"},ae=e({meta:{type:`problem`,docs:{description:`禁止领域实现包声明领域分层子路径导出(ADR 0101 违规逃逸通道)`}},createOnce(e){return{before(){if(!ne(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!b(r)||!b(r.exports))return;for(let[n,i]of Object.entries(r.exports))n!==`.`&&re(n,i)&&e.report({node:t,message:`${ie.noDomainLayerSubpathExport}(发现子路径 "${n}")`})}catch{}}}}}),oe=/* @__PURE__ */ new Set([`@types/bun`,`@types/node`,`@typescript/native-preview`,`oxfmt`,`oxlint`,`tsdown`,`turbo`]),se=[`@longzai-intelligence-agent-tools/`,`@longzai-intelligence-bun/`,`@longzai-intelligence-builder/`,`@longzai-intelligence-changelog/`,`@longzai-intelligence-decision/`,`@longzai-intelligence-dev-tools/`,`@longzai-intelligence-env/`,`@longzai-intelligence-git/`,`@longzai-intelligence-issues/`,`@longzai-intelligence-oxfmt/`,`@longzai-intelligence-oxlint/`,`@longzai-intelligence-release/`,`@longzai-intelligence-tsgo/`,`@longzai-intelligence-tsdown/`,`@longzai-intelligence-typescript/`,`@longzai-intelligence-vitest/`,`@longzai-intelligence-vscode/`],ce=/* @__PURE__ */ new Set([`@longzai-intelligence/typescript-config`]),le=/* @__PURE__ */ new Set([`@longzai-intelligence-dev-tools/vite-plugin`,`@longzai-intelligence-typescript/rolldown-plugin-type-boundary`]);function ue(e){return/\/(apps|packages|domains|plugins)\//.test(e)&&e.endsWith(`/package.json`)}function de(e){return le.has(e)?!1:oe.has(e)||ce.has(e)?!0:se.some(t=>e.startsWith(t))}function x(e){return typeof e==`object`&&!!e}const S=e({meta:{type:`problem`,docs:{description:`禁止子包声明应放 workspace 根的开发依赖,依据 ADR 0036 根已声明与应放根类别由根统一承载`}},createOnce(e){return{before(){if(!ue(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!x(r)||!x(r.devDependencies)||`workspaces`in r)return;let i=Object.keys(r.devDependencies).filter(de);i.length>0&&e.report({node:t,message:`禁止子包声明应放 workspace 根的开发依赖,ADR 0036 判定根已声明与应放根类别均由根统一承载,子包经 Bun hoisting 取用。发现依赖 [${i.join(`, `)}]。`})}catch{}}}}});function C(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}function w(e){return typeof e==`object`&&!!e}const T={noMitLicense:`禁止使用 MIT 协议。项目中的所有包都应使用 "license": "UNLICENSED"。`},E=e({meta:{type:`problem`,docs:{description:`禁止在 package.json 中使用 MIT 协议`}},createOnce(e){return{before(){let t=e.filename;if(!C(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);w(r)&&r.license===`MIT`&&e.report({node:t,message:T.noMitLicense})}catch{}}}}});function D(e){return/\/domains\/[^/]+\/infrastructure\/package\.json$/.test(e)}function O(e){return e.endsWith(`-infrastructure`)?`${e.slice(0,-15)}-implementation`:null}function k(e){return typeof e==`object`&&!!e}const A=e({meta:{type:`problem`,docs:{description:`禁止领域基础设施包依赖同域实现包(ADR 0101 依赖图只允许 infrastructure ──> contract)`}},createOnce(e){return{before(){if(!D(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!k(r)||typeof r.name!=`string`)return;let i=O(r.name);if(!i||!k(r.dependencies))return;i in r.dependencies&&e.report({node:t,message:`禁止领域基础设施包依赖同域实现包(ADR 0101):依赖图只允许 infrastructure ──> contract,发现依赖 "${i}"。`})}catch{}}}}});function j(e){return e.endsWith(`/package.json`)}const M=/^(?:\.{1,2}\/)?src\//;function N(e){return typeof e==`object`&&!!e}function P(e,t,n){if(typeof t==`string`)M.test(t)&&n.push({subpath:e,target:t});else if(N(t))for(let r of Object.values(t))P(e,r,n)}function F(e){let t=[];if(typeof e==`string`)return P(`.`,e,t),t;if(N(e))for(let[n,r]of Object.entries(e))P(n,r,t);return t}const I={noSrcExports:`禁止 exports 指向 src 源码(统一 dist 产物范式):包导出一律指向 dist 产物,指向源码会使消费方程序拉入本包源码编译。`},L=e({meta:{type:`problem`,docs:{description:`禁止 exports 指向 src 源码(统一 dist 产物范式门禁)`}},createOnce(e){return{before(){if(!j(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!N(r))return;let i=F(r.exports);for(let n of i)e.report({node:t,message:`${I.noSrcExports}(发现 "${n.subpath}" 指向 "${n.target}")`})}catch{}}}}}),R=[`-domain`,`-contract`,`-implementation`,`-infrastructure`];function z(e){return/\/domains\/[^/]+\/ui\/package\.json$/.test(e)}function B(e){return R.some(t=>e.endsWith(t))}function V(e){return typeof e==`object`&&!!e}const H=e({meta:{type:`problem`,docs:{description:`禁止 domains ui 层声明域内四层包依赖,ADR 0127:UI 面域外依赖唯一指向生成式 sdk 客户端`}},createOnce(e){return{before(){if(!z(e.filename.replace(/\\/g,`/`)))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!V(r)||!V(r.dependencies))return;let i=Object.keys(r.dependencies).filter(B);i.length>0&&e.report({node:t,message:`禁止 ui 层声明域内包依赖,ADR 0127:UI 面域外依赖唯一指向生成式 sdk 客户端,DDD 主体对 ui 全封闭。发现依赖 [${i.join(`, `)}]。`})}catch{}}}}}),fe={buildToolchainMismatch:`build 脚本命令与所属预设的工具链不符`,buildProdToolchainMismatch:`build:prod 脚本命令与所属预设的工具链不符`};function U(e){return typeof e==`object`&&!!e}function pe(e){if(!U(e))return!1;for(let t of[`build`,`buildProd`]){let n=e[t];if(n!==void 0&&(!Array.isArray(n)||n.some(e=>typeof e!=`string`)))return!1}return!0}function me(e){if(!U(e))return null;let t=e.scripts;return U(t)?t:null}function W(e,t,n,r){if(r===void 0||r.length===0)return[];let i=e[t];if(typeof i!=`string`)return[];let a=[];for(let e of m(i)){let i=h(e);i!==null&&(r.includes(i.command)||a.push({key:t,kind:n,command:i.command,allowedList:r.join(`、`)}))}return a}function G(e,t){return[...W(e,`build`,`buildToolchainMismatch`,t.build),...W(e,`build:prod`,`buildProdToolchainMismatch`,t.buildProd)]}function he(e){return`scripts 键 ${e.key} 使用命令 "${e.command}",${fe[e.kind]},允许清单为 ${e.allowedList}。build 脚本形态按预设校验,依据 ADR 0220,请改用当前预设允许的命令。`}const ge=e({meta:{type:`problem`,docs:{description:`按预设注入的允许清单校验 package.json 的 build 与 build:prod 脚本命令形态`},schema:[{type:`object`,properties:{build:{type:`array`,items:{type:`string`}},buildProd:{type:`array`,items:{type:`string`}}},additionalProperties:!1}]},createOnce(e){return{before(){let t=e.filename;if(!C(t))return!1},Program(t){let n=e.options?.[0];if(!pe(n)||n.build===void 0&&n.buildProd===void 0)return;let r=e.sourceCode.text;try{let i=me(JSON.parse(r));if(i){let r=G(i,n);for(let n of r)e.report({node:t,message:he(n)})}}catch{}}}}}),K=[`mcp`,`cli`,`tui`,`dev`];function _e(e){return e.replace(/\\/g,`/`).endsWith(`/package.json`)}const ve=/^@longzai-intelligence-([a-z0-9][a-z0-9-]*)\//,ye=/^longzai-intelligence-[a-z0-9][a-z0-9-]*$/;function q(e){return typeof e==`object`&&!!e}function be(e){let t=e.replace(/\\/g,`/`).split(`/`);for(let e=t.length-2;e>=0;--e){let n=t[e];if(n!==void 0&&ye.test(n))return n.slice(21)}return null}function xe(e){let t=ve.exec(e);return t===null?null:t[1]??null}function Se(e,t){return be(e)??xe(t)}function J(e){return`lzi-${e}`}function Y(e){return e.includes(`/`)?e.slice(e.indexOf(`/`)+1):e}function Ce(e,t,n){let r=J(t),i=K.find(t=>e===t||e.endsWith(`-${t}`));if(i!==void 0)return`${r}-${i}`;if(n===void 0)return r;let a=Y(n);return e.endsWith(`-${a}`)?`${r}-${a}`:r}function X(e,t,n){let r=J(t);return e===r||K.some(t=>e===`${r}-${t}`)?!0:n!==void 0&&e===`${r}-${Y(n)}`}function Z(e,t){let n=e.bin;return typeof n==`string`?[Y(t)]:q(n)?Object.keys(n):[]}const we={invalidBinName:`bin 命令名不符合 ADR 0049 完整名称规范,命令名须为 lzi- 前缀加项目全名的 kebab-case 形态,禁止缩写`};function Q(e,t){return`${we.invalidBinName},实际命令名为 "${e}",应为 "${t}"。`}const Te=e({meta:{type:`problem`,docs:{description:`校验 package.json 的 bin 命令名使用项目全名,禁止缩写,依据 ADR 0049`}},createOnce(e){return{before(){let t=e.filename;if(!_e(t))return!1},Program(t){let n=e.sourceCode.text;try{let r=JSON.parse(n);if(!q(r)||typeof r.name!=`string`||r.bin===void 0||r.name.includes(`{{`))return;let i=Se(e.filename,r.name);if(i===null)return;let a=Z(r,r.name);for(let n of a)n.includes(`{{`)||X(n,i,r.name)||e.report({node:t,message:Q(n,Ce(n,i,r.name))})}catch{}}}}}),$=t({meta:{name:`@longzai-intelligence-oxlint/package-json-plugin`},rules:{"no-app-infrastructure-dependency":a,"no-app-subpath-exports":l,"no-bare-tsgo-invocation":te,"no-domain-layer-subpath-export":ae,"no-hoistable-dev-dependency":S,"no-mit-license":E,"no-sibling-implementation-dependency":A,"no-src-exports":L,"no-ui-domain-package-dependency":H,"require-build-script-toolchain":ge,"require-full-project-bin-name":Te}});export{$ as default,$ as packageJsonPlugin,G as detectBuildScriptToolchainViolations,Z as extractBinNames,c as extractSubpathExits,F as findSrcExportTargets,o as isAppLayerPackageJson,C as isPackageJson,X as isValidBinName,E as noMitLicenseRule};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{o as t}from"./build-script.options-0qgjWf0p.js";import{defineConfig as n}from"./react.js";const r=[`babel.config.js`,`metro.config.js`,`jest.config.js`];function i(i){let a=n();return{extends:[a],...i,rules:{...t,...i?.rules??{}},ignorePatterns:e([...a.ignorePatterns??[],...r,...i?.ignorePatterns??[]])}}const a=i();export{a as n,r,i as t};
@@ -1 +1 @@
1
- export{r as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS,n as default,t as defineConfig}from"./react-native.entry-uxmAuHx6.js";
1
+ export{r as REACT_NATIVE_TOOLCHAIN_IGNORE_PATTERNS,n as default,t as defineConfig}from"./react-native.entry-Di8qZle2.js";
package/dist/react.js CHANGED
@@ -1 +1 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{t as n}from"./ui-consumption.rules-KvXiDxx6.js";function r(r){let i=t();return{extends:[i],plugins:[`react`,`jsx-a11y`],...r,rules:{...n,...r?.rules??{}},ignorePatterns:e([...i.ignorePatterns??[],...r?.ignorePatterns??[]])}}const i=r();export{i as default,r as defineConfig};
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e,t}from"./base.entry-ihV3q_2I.js";import{a as n}from"./build-script.options-0qgjWf0p.js";import{t as r}from"./ui-consumption.rules-KvXiDxx6.js";function i(i){let a=t();return{extends:[a],plugins:[`react`,`jsx-a11y`],...i,rules:{...n,...r,...i?.rules??{}},ignorePatterns:e([...a.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{a as default,i as defineConfig};
@@ -0,0 +1 @@
1
+ import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{s as t}from"./build-script.options-0qgjWf0p.js";import{defineConfig as n}from"./react.js";const r=[`src/app.ts`,`config/dev.ts`,`config/prod.ts`],i=[`src/app.tsx`];function a(a){let o=[...a?.typeSuffixBaseSkipPatterns??[],...r],s=[...a?.fileNamingBaseSkipPatterns??[],...i],c={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:o}]}},l={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:s}]}},u=n();return{extends:[u],overrides:[c,l,...a?.overrides??[]],rules:{...t,...a?.rules??{}},ignorePatterns:e([...u.ignorePatterns??[],...a?.ignorePatterns??[]])}}const o=a();export{r as i,o as n,i as r,a as t};
package/dist/taro.js CHANGED
@@ -1 +1 @@
1
- export{r as TARO_FILE_NAMING_EXEMPT_PATTERNS,i as TARO_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./taro.entry-CX8yI3jE.js";
1
+ export{r as TARO_FILE_NAMING_EXEMPT_PATTERNS,i as TARO_SPECIAL_FILE_PATTERNS,n as default,t as defineConfig}from"./taro.entry-BWtNoA3m.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-oxlint/presets",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Longzai Intelligence oxlint 配置预设",
5
5
  "keywords": [
6
6
  "config",
@@ -116,33 +116,34 @@
116
116
  "zod": "^4.6.7"
117
117
  },
118
118
  "devDependencies": {
119
- "@longzai-intelligence-oxlint/architecture-core-plugin": "0.2.18",
120
- "@longzai-intelligence-oxlint/architecture-electron-plugin": "0.2.18",
121
- "@longzai-intelligence-oxlint/architecture-library-plugin": "0.2.18",
122
- "@longzai-intelligence-oxlint/code-style-plugin": "0.2.18",
123
- "@longzai-intelligence-oxlint/composer-plugin": "0.2.18",
124
- "@longzai-intelligence-oxlint/core": "0.2.18",
125
- "@longzai-intelligence-oxlint/design-rules-plugin": "0.2.18",
126
- "@longzai-intelligence-oxlint/elysia-route-plugin": "0.2.18",
127
- "@longzai-intelligence-oxlint/eslint-config-plugin": "0.2.18",
128
- "@longzai-intelligence-oxlint/file-naming-plugin": "0.2.18",
129
- "@longzai-intelligence-oxlint/lzi-builder-config-plugin": "0.2.18",
130
- "@longzai-intelligence-oxlint/lzi-config-plugin": "0.2.18",
131
- "@longzai-intelligence-oxlint/nestjs-route-plugin": "0.2.18",
132
- "@longzai-intelligence-oxlint/package-json-plugin": "0.2.18",
133
- "@longzai-intelligence-oxlint/perfectionist-plugin": "0.2.18",
134
- "@longzai-intelligence-oxlint/react-plugin": "0.2.18",
135
- "@longzai-intelligence-oxlint/schema-type-separation-plugin": "0.2.18",
136
- "@longzai-intelligence-oxlint/stylistic-plugin": "0.2.18",
137
- "@longzai-intelligence-oxlint/tsconfig-plugin": "0.2.18",
138
- "@longzai-intelligence-oxlint/tsdoc-plugin": "0.2.18",
139
- "@longzai-intelligence-oxlint/tsdown-config-plugin": "0.2.18",
140
- "@longzai-intelligence-oxlint/tsup-config-plugin": "0.2.18",
141
- "@longzai-intelligence-oxlint/typeorm-plugin": "0.2.18",
142
- "@longzai-intelligence-oxlint/typescript-eslint-plugin": "0.2.18",
143
- "@longzai-intelligence-oxlint/utils": "0.2.18",
144
- "@longzai-intelligence-oxlint/vitest-config-plugin": "0.2.18",
145
- "@longzai-intelligence-oxlint/zod-plugin": "0.2.18",
119
+ "@longzai-intelligence-oxlint/architecture-core-plugin": "0.2.20",
120
+ "@longzai-intelligence-oxlint/architecture-electron-plugin": "0.2.20",
121
+ "@longzai-intelligence-oxlint/architecture-library-plugin": "0.2.20",
122
+ "@longzai-intelligence-oxlint/code-style-plugin": "0.2.20",
123
+ "@longzai-intelligence-oxlint/config": "0.2.20",
124
+ "@longzai-intelligence-oxlint/composer-plugin": "0.2.20",
125
+ "@longzai-intelligence-oxlint/core": "0.2.20",
126
+ "@longzai-intelligence-oxlint/design-rules-plugin": "0.2.20",
127
+ "@longzai-intelligence-oxlint/elysia-route-plugin": "0.2.20",
128
+ "@longzai-intelligence-oxlint/eslint-config-plugin": "0.2.20",
129
+ "@longzai-intelligence-oxlint/file-naming-plugin": "0.2.20",
130
+ "@longzai-intelligence-oxlint/lzi-builder-config-plugin": "0.2.20",
131
+ "@longzai-intelligence-oxlint/lzi-config-plugin": "0.2.20",
132
+ "@longzai-intelligence-oxlint/nestjs-route-plugin": "0.2.20",
133
+ "@longzai-intelligence-oxlint/package-json-plugin": "0.2.20",
134
+ "@longzai-intelligence-oxlint/perfectionist-plugin": "0.2.20",
135
+ "@longzai-intelligence-oxlint/react-plugin": "0.2.20",
136
+ "@longzai-intelligence-oxlint/schema-type-separation-plugin": "0.2.20",
137
+ "@longzai-intelligence-oxlint/stylistic-plugin": "0.2.20",
138
+ "@longzai-intelligence-oxlint/tsconfig-plugin": "0.2.20",
139
+ "@longzai-intelligence-oxlint/tsdoc-plugin": "0.2.20",
140
+ "@longzai-intelligence-oxlint/tsdown-config-plugin": "0.2.20",
141
+ "@longzai-intelligence-oxlint/tsup-config-plugin": "0.2.20",
142
+ "@longzai-intelligence-oxlint/typeorm-plugin": "0.2.20",
143
+ "@longzai-intelligence-oxlint/typescript-eslint-plugin": "0.2.20",
144
+ "@longzai-intelligence-oxlint/utils": "0.2.20",
145
+ "@longzai-intelligence-oxlint/vitest-config-plugin": "0.2.20",
146
+ "@longzai-intelligence-oxlint/zod-plugin": "0.2.20",
146
147
  "@vitest/coverage-v8": "^4.1.10"
147
148
  },
148
149
  "peerDependencies": {
@@ -1,15 +0,0 @@
1
- import "./rolldown-runtime-BqT_7tdF.js";
2
- import { t as PresetOptions } from "./preset-options.types-BWSmiunG.js";
3
- import { t as OxlintConfig } from "./index-lrryBFJ6.js";
4
- /**
5
- * 创建 Oxlint Base 配置
6
- *
7
- * @param options - 预设选项,包含额外的规则、覆盖和忽略模式
8
- * @returns Oxlint 配置对象
9
- */
10
- declare function defineConfig(options?: PresetOptions): OxlintConfig;
11
- /**
12
- * 默认 Oxlint Base 配置实例
13
- */
14
- declare const oxlintBaseConfig: OxlintConfig;
15
- export { oxlintBaseConfig as n, defineConfig as t };
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t}from"./base.entry-ihV3q_2I.js";import{defineConfig as n}from"./react.js";const r=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/architecture-electron-plugin/no-custom-ipc-utility":`error`,"@longzai-intelligence-oxlint/architecture-electron-plugin/no-implementation-in-renderer":`error`,"@longzai-intelligence-oxlint/architecture-electron-plugin/platform-leak":`error`}}];function i(i){let a=n();return{extends:[a],jsPlugins:[e(`architecture-electron`)],overrides:[...r,...i?.overrides??[]],...i?.rules?{rules:i.rules}:{},ignorePatterns:t([...a.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{a as n,i as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{defineConfig as t}from"./react.js";const n=[`app/routes.ts`,`app/routes/**`],r=[`app/root.tsx`,`app/routes/**`];function i(i){let a=[...i?.typeSuffixBaseSkipPatterns??[],...n],o=[...i?.fileNamingBaseSkipPatterns??[],...r],s={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:a}]}},c={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:o}]}},l=t();return{extends:[l],overrides:[s,c,...i?.overrides??[]],...i?.rules?{rules:i.rules}:{},ignorePatterns:e([...l.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{n as i,a as n,r,i as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{a as e,s as t,t as n}from"./base.entry-ihV3q_2I.js";import"./node.js";const r=[{files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/nestjs-route-plugin/order":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/no-duplicates":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/require-route-constant":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/prefer-typed-controller":`warn`,"@longzai-intelligence-oxlint/nestjs-route-plugin/require-typed-response":`error`,"@longzai-intelligence-oxlint/nestjs-route-plugin/enforce-typed-handler-return":`error`,"@longzai-intelligence-oxlint/architecture-core-plugin/no-restricted-import-in-paths":[`error`,{restrictions:[{importSource:`@nestjs/common`,importNames:[`BadRequestException`,`NotFoundException`,`ForbiddenException`,`UnauthorizedException`,`ConflictException`,`HttpException`],forbiddenPaths:[`*.service.ts`],message:`Service 层禁止导入 NestJS HTTP 异常,请使用 Result<T, DomainError> 透传领域错误,由 Handler 层解包`}]}]}}];function i(i){let a=n();return{extends:[a],jsPlugins:[e(`nestjs-route`)],overrides:[...r,...i?.overrides??[]],...i?.rules?{rules:i.rules}:{},ignorePatterns:t([...a.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{a as n,i as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{defineConfig as t}from"./react.js";const n=[`**/page.ts`,`**/layout.ts`,`**/loading.ts`,`**/error.ts`,`**/not-found.ts`,`**/template.ts`,`**/default.ts`,`**/global-error.ts`,`**/middleware.ts`,`**/route.ts`,`**/instrumentation.ts`],r=[`**/page.tsx`,`**/layout.tsx`,`**/loading.tsx`,`**/error.tsx`,`**/not-found.tsx`,`**/template.tsx`,`**/default.tsx`,`**/global-error.tsx`],i=[...n,...r];function a(n){let r=[...n?.typeSuffixBaseSkipPatterns??[],...i],a=[...n?.fileNamingBaseSkipPatterns??[],...i],o={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:r}]}},s={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:a}]}},c=t();return{extends:[c],plugins:[`nextjs`],overrides:[o,s,...n?.overrides??[]],...n?.rules?{rules:n.rules}:{},ignorePatterns:e([...c.ignorePatterns??[],...n?.ignorePatterns??[]])}}const o=a();export{o as n,i as r,a as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{defineConfig as t}from"./react.js";const n=[`babel.config.js`,`metro.config.js`,`jest.config.js`];function r(r){let i=t();return{extends:[i],...r,ignorePatterns:e([...i.ignorePatterns??[],...n,...r?.ignorePatterns??[]])}}const i=r();export{i as n,n as r,r as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime-BqT_7tdF.js";import{s as e}from"./base.entry-ihV3q_2I.js";import{defineConfig as t}from"./react.js";const n=[`src/app.ts`,`config/dev.ts`,`config/prod.ts`],r=[`src/app.tsx`];function i(i){let a=[...i?.typeSuffixBaseSkipPatterns??[],...n],o=[...i?.fileNamingBaseSkipPatterns??[],...r],s={files:[`**/*.ts`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/require-type-suffix":[`error`,{skipPatterns:a}]}},c={files:[`**/*.tsx`],rules:{"@longzai-intelligence-oxlint/file-naming-plugin/file-naming":[`error`,{skipPatterns:o}]}},l=t();return{extends:[l],overrides:[s,c,...i?.overrides??[]],...i?.rules?{rules:i.rules}:{},ignorePatterns:e([...l.ignorePatterns??[],...i?.ignorePatterns??[]])}}const a=i();export{n as i,a as n,r,i as t};