@biomejs/backend-jsonrpc 1.1.0 → 1.1.2-nightly.9c28238

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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/backend-jsonrpc","version":"1.1.0","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.1.0","@biomejs/cli-win32-arm64":"1.1.0","@biomejs/cli-darwin-x64":"1.1.0","@biomejs/cli-darwin-arm64":"1.1.0","@biomejs/cli-linux-x64":"1.1.0","@biomejs/cli-linux-arm64":"1.1.0"}}
1
+ {"name":"@biomejs/backend-jsonrpc","version":"1.1.2-nightly.9c28238","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.1.2-nightly.9c28238","@biomejs/cli-win32-arm64":"1.1.2-nightly.9c28238","@biomejs/cli-darwin-x64":"1.1.2-nightly.9c28238","@biomejs/cli-darwin-arm64":"1.1.2-nightly.9c28238","@biomejs/cli-linux-x64":"1.1.2-nightly.9c28238","@biomejs/cli-linux-arm64":"1.1.2-nightly.9c28238"}}
package/src/command.ts CHANGED
@@ -14,16 +14,16 @@ export function getCommand(): string | null {
14
14
 
15
15
  const PLATFORMS: PlatformPaths = {
16
16
  win32: {
17
- x64: "@biomejs/cli-win32-x64/rome.exe",
18
- arm64: "@biomejs/cli-win32-arm64/rome.exe",
17
+ x64: "@biomejs/cli-win32-x64/biome.exe",
18
+ arm64: "@biomejs/cli-win32-arm64/biome.exe",
19
19
  },
20
20
  darwin: {
21
- x64: "@biomejs/cli-darwin-x64/rome",
22
- arm64: "@biomejs/cli-darwin-arm64/rome",
21
+ x64: "@biomejs/cli-darwin-x64/biome",
22
+ arm64: "@biomejs/cli-darwin-arm64/biome",
23
23
  },
24
24
  linux: {
25
- x64: "@biomejs/cli-linux-x64/rome",
26
- arm64: "@biomejs/cli-linux-arm64/rome",
25
+ x64: "@biomejs/cli-linux-x64/biome",
26
+ arm64: "@biomejs/cli-linux-arm64/biome",
27
27
  },
28
28
  };
29
29
 
package/src/workspace.ts CHANGED
@@ -128,6 +128,10 @@ If defined here, they should not emit diagnostics.
128
128
  * Options applied to JSON files
129
129
  */
130
130
  export interface JsonConfiguration {
131
+ /**
132
+ * Formatting options
133
+ */
134
+ formatter?: JsonFormatter;
131
135
  /**
132
136
  * Parsing options
133
137
  */
@@ -195,10 +199,26 @@ export interface JavascriptFormatter {
195
199
  * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
196
200
  */
197
201
  arrowParentheses?: ArrowParentheses;
202
+ /**
203
+ * Control the formatter for JavaScript (and its super languages) files.
204
+ */
205
+ enabled?: boolean;
206
+ /**
207
+ * The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
208
+ */
209
+ indentSize?: number;
210
+ /**
211
+ * The indent style applied to JavaScript (and its super languages) files.
212
+ */
213
+ indentStyle?: PlainIndentStyle;
198
214
  /**
199
215
  * The type of quotes used in JSX. Defaults to double.
200
216
  */
201
217
  jsxQuoteStyle?: QuoteStyle;
218
+ /**
219
+ * What's the max width of a line, applied to JavaScript (and its super languages) files. Defaults to 80.
220
+ */
221
+ lineWidth?: LineWidth;
202
222
  /**
203
223
  * When properties in objects are quoted. Defaults to asNeeded.
204
224
  */
@@ -228,6 +248,24 @@ These decorators belong to an old proposal, and they are subject to change.
228
248
  */
229
249
  unsafeParameterDecoratorsEnabled?: boolean;
230
250
  }
251
+ export interface JsonFormatter {
252
+ /**
253
+ * Control the formatter for JSON (and its super languages) files.
254
+ */
255
+ enabled?: boolean;
256
+ /**
257
+ * The size of the indentation applied to JSON (and its super languages) files. Default to 2.
258
+ */
259
+ indent_size?: number;
260
+ /**
261
+ * The indent style applied to JSON (and its super languages) files.
262
+ */
263
+ indent_style?: PlainIndentStyle;
264
+ /**
265
+ * What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.
266
+ */
267
+ line_width?: LineWidth;
268
+ }
231
269
  /**
232
270
  * Options that changes how the JSON parser behaves
233
271
  */
@@ -580,9 +618,9 @@ export interface Nursery {
580
618
  */
581
619
  noBannedTypes?: RuleConfiguration;
582
620
  /**
583
- * Disallow arrow functions where they could be confused with comparisons.
621
+ * Disallow void type outside of generic or return types.
584
622
  */
585
- noConfusingArrow?: RuleConfiguration;
623
+ noConfusingVoidType?: RuleConfiguration;
586
624
  /**
587
625
  * Disallow constant expressions in conditions
588
626
  */
@@ -1214,10 +1252,10 @@ export type Category =
1214
1252
  | "lint/correctness/noVoidTypeReturn"
1215
1253
  | "lint/correctness/useValidForDirection"
1216
1254
  | "lint/correctness/useYield"
1255
+ | "lint/nursery/noConfusingVoidType"
1217
1256
  | "lint/nursery/noAccumulatingSpread"
1218
1257
  | "lint/nursery/noAriaUnsupportedElements"
1219
1258
  | "lint/nursery/noBannedTypes"
1220
- | "lint/nursery/noConfusingArrow"
1221
1259
  | "lint/nursery/noConstantCondition"
1222
1260
  | "lint/nursery/noControlCharactersInRegex"
1223
1261
  | "lint/nursery/noDuplicateJsonKeys"