oxlint-plugin-arch 0.12.4 → 0.12.5

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.
@@ -21,4 +21,5 @@ export interface BackendRegistryOptions {
21
21
  services: string;
22
22
  skip?: string[];
23
23
  object?: string;
24
+ file?: string;
24
25
  }
@@ -4,6 +4,7 @@ export interface BoundariesOptions {
4
4
  backend: string[];
5
5
  packages: string | string[];
6
6
  roles?: string[];
7
+ surfaces?: string[];
7
8
  services?: string[];
8
9
  portable?: boolean;
9
10
  backendPackages: string[];
@@ -32,10 +33,12 @@ export interface BoundariesNextOptions extends Partial<Pick<BoundariesOptions, '
32
33
  clientPackages?: string[];
33
34
  hookPackages?: string[];
34
35
  publicEnv?: string;
36
+ serverHooks?: string[];
35
37
  }
36
38
  export interface BoundariesTanstackOptions extends BoundariesNextOptions {
37
39
  rpc?: string[];
38
40
  startPackages?: string[];
41
+ renderers?: string[];
39
42
  rscPackages?: string[];
40
43
  }
41
44
  export type BoundariesIdentifier = Extract<ESTree.Node, {
@@ -67,6 +70,10 @@ export interface BoundariesTokenOwnerTarget {
67
70
  value: string;
68
71
  message?: string;
69
72
  }
73
+ export interface BoundariesRpcDatabaseOptions {
74
+ message?: string;
75
+ methods?: string[];
76
+ }
70
77
  export interface BoundariesDenyOptions {
71
78
  imports?: Record<string, string>;
72
79
  calls?: Record<string, string>;
@@ -4,6 +4,9 @@ export type CodeConstructorEntry = string | {
4
4
  name: string;
5
5
  message?: string;
6
6
  };
7
+ export interface CodeBranchOnceOptions {
8
+ min?: number;
9
+ }
7
10
  export interface CodeConstructorOptions {
8
11
  constructors: CodeConstructorEntry[];
9
12
  calls?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { ESTree } from '@oxlint/plugins';
2
2
  export interface CommentsOptions {
3
- why?: boolean;
3
+ why?: boolean | string;
4
4
  allow?: string[];
5
5
  jsdoc?: boolean;
6
6
  members?: 'off' | 'also' | 'only';
@@ -2,7 +2,7 @@ import type { NamingExportsStem } from './naming.types.ts';
2
2
  import type { OptionsPattern } from './options.types.ts';
3
3
  import type { ESTree } from '@oxlint/plugins';
4
4
  export interface FilesComponentsOnlyOptions {
5
- filename?: boolean;
5
+ filename?: boolean | 'each';
6
6
  roles?: string[];
7
7
  types?: boolean;
8
8
  deny?: OptionsPattern;
@@ -19,6 +19,10 @@ export interface FilesConstantsOnlyBinding {
19
19
  export interface FilesDomainConstantsOptions {
20
20
  services?: boolean;
21
21
  data?: boolean;
22
+ pattern?: OptionsPattern;
23
+ folders?: string[];
24
+ roles?: string[];
25
+ file?: string;
22
26
  }
23
27
  export interface FilesExportsOptions extends Pick<NamingExportsStem, 'stem' | 'roles' | 'separators'> {
24
28
  names?: string[];
@@ -78,6 +82,7 @@ export interface FilesTypesOnlyImport {
78
82
  }
79
83
  export interface FilesExternalsOptions {
80
84
  packages?: string[];
85
+ files?: OptionsPattern;
81
86
  }
82
87
  export interface FilesExternalsManifest {
83
88
  dependencies?: Record<string, string>;
@@ -7,7 +7,7 @@ export interface LayoutEdit {
7
7
  }
8
8
  export interface LayoutCallArgumentsOptions {
9
9
  min?: number;
10
- indent?: number;
10
+ indent?: SourceIndent;
11
11
  split?: boolean;
12
12
  hug?: {
13
13
  max: number;
@@ -15,6 +15,7 @@ export interface LayoutCallArgumentsOptions {
15
15
  join?: {
16
16
  max: number;
17
17
  nesting?: number;
18
+ items?: number;
18
19
  keep?: string[];
19
20
  };
20
21
  }
@@ -46,11 +47,18 @@ export interface LayoutChainLink {
46
47
  export interface LayoutJsxAttributesOptions {
47
48
  min?: number;
48
49
  indent?: SourceIndent;
50
+ join?: {
51
+ max: number;
52
+ };
49
53
  }
50
54
  export interface LayoutObjectOptions {
51
55
  min?: number;
52
56
  scope?: LayoutObjectScope;
53
57
  indent?: SourceIndent;
58
+ join?: {
59
+ max: number;
60
+ keep?: string[];
61
+ };
54
62
  }
55
63
  export type LayoutObjectScope = 'call-args' | 'all';
56
64
  export interface LayoutPaddingOptions {
@@ -60,7 +68,7 @@ export interface LayoutPaddingOptions {
60
68
  export type LayoutPaddingKind = 'variable' | 'block' | 'control' | 'return' | 'other';
61
69
  export interface LayoutTernaryOptions {
62
70
  max?: number;
63
- indent?: number;
71
+ indent?: SourceIndent;
64
72
  fit?: boolean;
65
73
  branch?: {
66
74
  max: number;
@@ -3,6 +3,7 @@ import type { DeclarationsCandidate } from './declarations.types.ts';
3
3
  import type { ESTree } from '@oxlint/plugins';
4
4
  export interface ReactPropsOptions {
5
5
  prefix?: boolean;
6
+ suffix?: string;
6
7
  }
7
8
  export interface ReactPropsComponent {
8
9
  candidate: DeclarationsCandidate;
@@ -1,8 +1,14 @@
1
1
  import type { AstFunction } from './ast.types.ts';
2
2
  import type { OptionsPattern } from './options.types.ts';
3
3
  import type { ESTree } from '@oxlint/plugins';
4
+ export interface TestsConcurrentDbOptions {
5
+ message?: string;
6
+ fixtures?: string[];
7
+ callees?: string[];
8
+ }
4
9
  export interface TestsModifiersOptions {
5
10
  functions?: string[];
11
+ modifiers?: string[];
6
12
  }
7
13
  export interface TestsAssertionsOptions extends TestsModifiersOptions {
8
14
  assertions?: string[];
@@ -29,6 +35,7 @@ export interface TestsAssertionsState {
29
35
  }
30
36
  export interface TestsTitlesOptions {
31
37
  callees: string[];
38
+ modifiers?: string[];
32
39
  deny?: OptionsPattern;
33
40
  require?: OptionsPattern;
34
41
  flags?: string;
@@ -14,6 +14,10 @@ export interface TypesInlineOptions {
14
14
  functions?: boolean;
15
15
  min?: number;
16
16
  }
17
+ export interface TypesServiceOptions {
18
+ suffix?: string;
19
+ factory?: string;
20
+ }
17
21
  export interface TypesNamespaceImportOptions {
18
22
  max: number;
19
23
  names: Record<string, string>;
@@ -18,5 +18,6 @@ export declare function sourceIndentUnit(indent?: SourceIndent): string;
18
18
  export declare function sourceNewline(text: string): string;
19
19
  export declare function sourceLineStart(text: string, offset: number): number;
20
20
  export declare function sourceLineEnd(text: string, offset: number): number;
21
+ export declare function sourceJoinedWidth(text: string, start: number, joined: string, end: number): number;
21
22
  export declare function sourceItemGaps(open: number, items: readonly PluginsTypes.Ranged[], close: number): PluginsTypes.Range[];
22
23
  export declare function sourceRespace(fixer: PluginsTypes.Fixer, text: string, gaps: PluginsTypes.Range[], spacing: (index: number, last: boolean) => string): PluginsTypes.Fix[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-arch",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "Configurable architecture rules for Oxlint JavaScript plugins.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",