@biomejs/backend-jsonrpc 1.3.1 → 1.3.3-nightly.8475169

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/workspace.ts +18 -5
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/backend-jsonrpc","version":"1.3.1","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.3.1","@biomejs/cli-win32-arm64":"1.3.1","@biomejs/cli-darwin-x64":"1.3.1","@biomejs/cli-darwin-arm64":"1.3.1","@biomejs/cli-linux-x64":"1.3.1","@biomejs/cli-linux-arm64":"1.3.1"}}
1
+ {"name":"@biomejs/backend-jsonrpc","version":"1.3.3-nightly.8475169","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.3.3-nightly.8475169","@biomejs/cli-win32-arm64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-x64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-arm64":"1.3.3-nightly.8475169","@biomejs/cli-linux-x64":"1.3.3-nightly.8475169","@biomejs/cli-linux-arm64":"1.3.3-nightly.8475169"}}
package/src/workspace.ts CHANGED
@@ -185,9 +185,7 @@ export interface OrganizeImports {
185
185
  */
186
186
  include?: StringSet;
187
187
  }
188
- export interface Overrides {
189
- list: OverridePattern[];
190
- }
188
+ export type Overrides = OverridePattern[];
191
189
  /**
192
190
  * Set of properties to integrate Biome with a VCS software.
193
191
  */
@@ -766,6 +764,10 @@ export interface Nursery {
766
764
  * Disallow shorthand assign when variable appears on both sides.
767
765
  */
768
766
  noMisrefactoredShorthandAssign?: RuleConfiguration;
767
+ /**
768
+ * Disallow this and super in static contexts.
769
+ */
770
+ noThisInStatic?: RuleConfiguration;
769
771
  /**
770
772
  * Disallow unused imports.
771
773
  */
@@ -1204,8 +1206,7 @@ export type PossibleOptions =
1204
1206
  | ComplexityOptions
1205
1207
  | HooksOptions
1206
1208
  | NamingConventionOptions
1207
- | RestrictedGlobalsOptions
1208
- | null;
1209
+ | RestrictedGlobalsOptions;
1209
1210
  /**
1210
1211
  * Options for the rule `noExcessiveCognitiveComplexity`.
1211
1212
  */
@@ -1266,6 +1267,10 @@ export interface Hooks {
1266
1267
  * Supported cases for TypeScript `enum` member names.
1267
1268
  */
1268
1269
  export type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1270
+ export interface ProjectFeaturesParams {
1271
+ manifest_path: RomePath;
1272
+ }
1273
+ export interface ProjectFeaturesResult {}
1269
1274
  export interface OpenFileParams {
1270
1275
  content: string;
1271
1276
  language_hint?: Language;
@@ -1435,6 +1440,7 @@ export type Category =
1435
1440
  | "lint/nursery/noInvalidNewBuiltin"
1436
1441
  | "lint/nursery/noMisleadingInstantiator"
1437
1442
  | "lint/nursery/noMisrefactoredShorthandAssign"
1443
+ | "lint/nursery/noThisInStatic"
1438
1444
  | "lint/nursery/noUnusedImports"
1439
1445
  | "lint/nursery/noUselessElse"
1440
1446
  | "lint/nursery/noUselessLoneBlockStatements"
@@ -1527,6 +1533,7 @@ export type Category =
1527
1533
  | "organizeImports"
1528
1534
  | "migrate"
1529
1535
  | "deserialize"
1536
+ | "project"
1530
1537
  | "internalError/io"
1531
1538
  | "internalError/fs"
1532
1539
  | "internalError/panic"
@@ -1777,6 +1784,9 @@ export interface RenameResult {
1777
1784
  export interface Workspace {
1778
1785
  fileFeatures(params: SupportsFeatureParams): Promise<SupportsFeatureResult>;
1779
1786
  updateSettings(params: UpdateSettingsParams): Promise<void>;
1787
+ projectFeatures(
1788
+ params: ProjectFeaturesParams,
1789
+ ): Promise<ProjectFeaturesResult>;
1780
1790
  openFile(params: OpenFileParams): Promise<void>;
1781
1791
  changeFile(params: ChangeFileParams): Promise<void>;
1782
1792
  closeFile(params: CloseFileParams): Promise<void>;
@@ -1806,6 +1816,9 @@ export function createWorkspace(transport: Transport): Workspace {
1806
1816
  updateSettings(params) {
1807
1817
  return transport.request("biome/update_settings", params);
1808
1818
  },
1819
+ projectFeatures(params) {
1820
+ return transport.request("biome/project_features", params);
1821
+ },
1809
1822
  openFile(params) {
1810
1823
  return transport.request("biome/open_file", params);
1811
1824
  },