@utoo/lint 0.2.9 → 0.3.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.
package/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface LintSuppression {
17
17
  justification: string;
18
18
  }
19
19
 
20
- export interface LintDiagnostic extends Omit<LintMessage, "severity" | "suppressions"> {
20
+ export interface LintDiagnostic extends Omit<LintMessage, "severity"> {
21
21
  severity: "warning" | "error";
22
22
  suppression?: LintSuppression;
23
23
  }
@@ -67,13 +67,24 @@ export interface PluginObject {
67
67
  [key: string]: unknown;
68
68
  }
69
69
 
70
+ export interface JestPluginSettings {
71
+ version?: string | number;
72
+ globalAliases?: Record<string, string[]>;
73
+ [key: string]: unknown;
74
+ }
75
+
76
+ export interface SharedSettings {
77
+ jest?: JestPluginSettings;
78
+ [key: string]: unknown;
79
+ }
80
+
70
81
  export interface ConfigObject {
71
82
  name?: string;
72
83
  files?: Array<string | string[]>;
73
84
  ignores?: string[];
74
85
  rules?: Record<string, RuleConfig>;
75
86
  plugins?: Record<string, PluginObject>;
76
- settings?: Record<string, unknown>;
87
+ settings?: SharedSettings;
77
88
  languageOptions?: {
78
89
  parser?: unknown;
79
90
  parserOptions?: Record<string, unknown>;
@@ -93,6 +104,8 @@ export interface LintOptions {
93
104
  cwd?: string;
94
105
  binary?: string;
95
106
  env?: Record<string, string | undefined>;
107
+ /** Maximum bytes captured from each native stdout/stderr stream. Defaults to 64 MiB. */
108
+ maxBuffer?: number;
96
109
  threads?: number;
97
110
  rules?: string[] | string;
98
111
  format?: "text" | "json" | string;