@biomejs/backend-jsonrpc 0.2.0 → 0.2.3
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 +1 -1
- package/src/workspace.ts +12 -2
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/backend-jsonrpc","version":"0.2.
|
|
1
|
+
{"name":"@biomejs/backend-jsonrpc","version":"0.2.3","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":"0.2.3","@biomejs/cli-win32-arm64":"0.2.3","@biomejs/cli-darwin-x64":"0.2.3","@biomejs/cli-darwin-arm64":"0.2.3","@biomejs/cli-linux-x64":"0.2.3","@biomejs/cli-linux-arm64":"0.2.3"}}
|
package/src/workspace.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface UpdateSettingsParams {
|
|
|
20
20
|
configuration: Configuration;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The configuration that is contained inside the file `
|
|
23
|
+
* The configuration that is contained inside the file `biome.json`
|
|
24
24
|
*/
|
|
25
25
|
export interface Configuration {
|
|
26
26
|
/**
|
|
@@ -170,7 +170,7 @@ export interface VcsConfiguration {
|
|
|
170
170
|
*/
|
|
171
171
|
enabled?: boolean;
|
|
172
172
|
/**
|
|
173
|
-
* The folder where Biome should check for VCS files. By default, Biome will use the same folder where `
|
|
173
|
+
* The folder where Biome should check for VCS files. By default, Biome will use the same folder where `biome.json` was found.
|
|
174
174
|
|
|
175
175
|
If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
|
|
176
176
|
*/
|
|
@@ -639,6 +639,10 @@ export interface Nursery {
|
|
|
639
639
|
* Disallow empty exports that don't change anything in a module file.
|
|
640
640
|
*/
|
|
641
641
|
noUselessEmptyExport?: RuleConfiguration;
|
|
642
|
+
/**
|
|
643
|
+
* Disallow useless this aliasing.
|
|
644
|
+
*/
|
|
645
|
+
noUselessThisAlias?: RuleConfiguration;
|
|
642
646
|
/**
|
|
643
647
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
644
648
|
*/
|
|
@@ -659,6 +663,10 @@ export interface Nursery {
|
|
|
659
663
|
* Enforce all dependencies are correctly specified.
|
|
660
664
|
*/
|
|
661
665
|
useExhaustiveDependencies?: RuleConfiguration;
|
|
666
|
+
/**
|
|
667
|
+
* Enforce get methods to always return a value.
|
|
668
|
+
*/
|
|
669
|
+
useGetterReturn?: RuleConfiguration;
|
|
662
670
|
/**
|
|
663
671
|
* Enforce the use of import type when an import only has specifiers with type qualifier.
|
|
664
672
|
*/
|
|
@@ -1220,10 +1228,12 @@ export type Category =
|
|
|
1220
1228
|
| "lint/nursery/noStaticOnlyClass"
|
|
1221
1229
|
| "lint/nursery/noUnsafeDeclarationMerging"
|
|
1222
1230
|
| "lint/nursery/noUselessEmptyExport"
|
|
1231
|
+
| "lint/nursery/noUselessThisAlias"
|
|
1223
1232
|
| "lint/nursery/noVoid"
|
|
1224
1233
|
| "lint/nursery/useAriaPropTypes"
|
|
1225
1234
|
| "lint/nursery/useArrowFunction"
|
|
1226
1235
|
| "lint/nursery/useExhaustiveDependencies"
|
|
1236
|
+
| "lint/nursery/useGetterReturn"
|
|
1227
1237
|
| "lint/nursery/useGroupedTypeImport"
|
|
1228
1238
|
| "lint/nursery/useHookAtTopLevel"
|
|
1229
1239
|
| "lint/nursery/useImportRestrictions"
|