@biomejs/biome 2.0.0-beta.5 → 2.0.0-beta.6

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.
@@ -24,8 +24,7 @@
24
24
  },
25
25
  "extends": {
26
26
  "description": "A list of paths to other JSON files, used to extends the current configuration.",
27
- "type": ["array", "null"],
28
- "items": { "type": "string" }
27
+ "anyOf": [{ "$ref": "#/definitions/Extends" }, { "type": "null" }]
29
28
  },
30
29
  "files": {
31
30
  "description": "The configuration of the filesystem",
@@ -420,6 +419,13 @@
420
419
  { "type": "null" }
421
420
  ]
422
421
  },
422
+ "noArguments": {
423
+ "description": "Disallow the use of arguments.",
424
+ "anyOf": [
425
+ { "$ref": "#/definitions/RuleConfiguration" },
426
+ { "type": "null" }
427
+ ]
428
+ },
423
429
  "noBannedTypes": {
424
430
  "description": "Disallow primitive type aliases and misleading types.",
425
431
  "anyOf": [
@@ -427,6 +433,13 @@
427
433
  { "type": "null" }
428
434
  ]
429
435
  },
436
+ "noCommaOperator": {
437
+ "description": "Disallow comma operator.",
438
+ "anyOf": [
439
+ { "$ref": "#/definitions/RuleConfiguration" },
440
+ { "type": "null" }
441
+ ]
442
+ },
430
443
  "noEmptyTypeParameters": {
431
444
  "description": "Disallow empty type parameters in type aliases and interfaces.",
432
445
  "anyOf": [
@@ -1362,6 +1375,12 @@
1362
1375
  }
1363
1376
  ]
1364
1377
  },
1378
+ "Extends": {
1379
+ "anyOf": [
1380
+ { "type": "array", "items": { "type": "string" } },
1381
+ { "type": "string" }
1382
+ ]
1383
+ },
1365
1384
  "FilenameCase": {
1366
1385
  "description": "Supported cases for file names.",
1367
1386
  "oneOf": [
@@ -1426,6 +1445,11 @@
1426
1445
  "description": "The configuration of the filesystem",
1427
1446
  "type": "object",
1428
1447
  "properties": {
1448
+ "experimentalScannerIgnores": {
1449
+ "description": "Set of file and folder names that should be unconditionally ignored by Biome's scanner.\n\nBiome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.\n\nThis is considered an advanced feature that users _should_ not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.\n\nEntries must be file or folder *names*. Specific paths and globs are not supported.\n\nExamples where this may be useful:\n\n```jsonc { \"files\": { \"experimentalScannerIgnores\": [ // You almost certainly don't want to scan your `.git` // folder, which is why it's already ignored by default: \".git\",\n\n// But the scanner does scan `node_modules` by default. If // you *really* don't want this, you can ignore it like // this: \"node_modules\",\n\n// But it's probably better to ignore a specific dependency. // For instance, one that happens to be particularly slow to // scan: \"RedisCommander.d.ts\", ], } } ```\n\nPlease be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.",
1450
+ "type": ["array", "null"],
1451
+ "items": { "type": "string" }
1452
+ },
1429
1453
  "ignoreUnknown": {
1430
1454
  "description": "Tells Biome to not emit diagnostics when handling files that doesn't know",
1431
1455
  "anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
@@ -2262,7 +2286,7 @@
2262
2286
  "enum": ["namespaceLike"]
2263
2287
  },
2264
2288
  {
2265
- "description": "TypeScript mamespaces",
2289
+ "description": "TypeScript namespaces",
2266
2290
  "type": "string",
2267
2291
  "enum": ["namespace"]
2268
2292
  },
@@ -2758,6 +2782,13 @@
2758
2782
  { "type": "null" }
2759
2783
  ]
2760
2784
  },
2785
+ "noReactPropAssign": {
2786
+ "description": "Disallow assigning to React component props.",
2787
+ "anyOf": [
2788
+ { "$ref": "#/definitions/RuleConfiguration" },
2789
+ { "type": "null" }
2790
+ ]
2791
+ },
2761
2792
  "noRestrictedElements": {
2762
2793
  "description": "Disallow the use of configured elements.",
2763
2794
  "anyOf": [
@@ -2848,6 +2879,13 @@
2848
2879
  { "type": "null" }
2849
2880
  ]
2850
2881
  },
2882
+ "useConsistentResponse": {
2883
+ "description": "Use static Response methods instead of new Response() constructor when possible.",
2884
+ "anyOf": [
2885
+ { "$ref": "#/definitions/RuleFixConfiguration" },
2886
+ { "type": "null" }
2887
+ ]
2888
+ },
2851
2889
  "useExhaustiveSwitchCases": {
2852
2890
  "description": "Require switch-case statements to be exhaustive.",
2853
2891
  "anyOf": [
@@ -2883,6 +2921,13 @@
2883
2921
  { "type": "null" }
2884
2922
  ]
2885
2923
  },
2924
+ "useIndexOf": {
2925
+ "description": "Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.",
2926
+ "anyOf": [
2927
+ { "$ref": "#/definitions/RuleFixConfiguration" },
2928
+ { "type": "null" }
2929
+ ]
2930
+ },
2886
2931
  "useIterableCallbackReturn": {
2887
2932
  "description": "Enforce consistent return values in iterable callbacks.",
2888
2933
  "anyOf": [
@@ -2890,6 +2935,13 @@
2890
2935
  { "type": "null" }
2891
2936
  ]
2892
2937
  },
2938
+ "useJsonImportAttribute": {
2939
+ "description": "Enforces the use of with { type: \"json\" } for JSON module imports.",
2940
+ "anyOf": [
2941
+ { "$ref": "#/definitions/RuleFixConfiguration" },
2942
+ { "type": "null" }
2943
+ ]
2944
+ },
2893
2945
  "useNamedOperation": {
2894
2946
  "description": "Enforce specifying the name of GraphQL operations.",
2895
2947
  "anyOf": [
@@ -2911,6 +2963,13 @@
2911
2963
  { "type": "null" }
2912
2964
  ]
2913
2965
  },
2966
+ "useObjectSpread": {
2967
+ "description": "Prefer object spread over Object.assign() when constructing new objects.",
2968
+ "anyOf": [
2969
+ { "$ref": "#/definitions/RuleFixConfiguration" },
2970
+ { "type": "null" }
2971
+ ]
2972
+ },
2914
2973
  "useParseIntRadix": {
2915
2974
  "description": "Enforce the consistent use of the radix argument when using parseInt().",
2916
2975
  "anyOf": [
@@ -2938,6 +2997,13 @@
2938
2997
  { "$ref": "#/definitions/RuleConfiguration" },
2939
2998
  { "type": "null" }
2940
2999
  ]
3000
+ },
3001
+ "useUniqueElementIds": {
3002
+ "description": "Prevent the usage of static string literal id attribute on elements.",
3003
+ "anyOf": [
3004
+ { "$ref": "#/definitions/RuleConfiguration" },
3005
+ { "type": "null" }
3006
+ ]
2941
3007
  }
2942
3008
  },
2943
3009
  "additionalProperties": false
@@ -3145,6 +3211,10 @@
3145
3211
  { "$ref": "#/definitions/OverrideLinterConfiguration" },
3146
3212
  { "type": "null" }
3147
3213
  ]
3214
+ },
3215
+ "plugins": {
3216
+ "description": "Specific configuration for additional plugins",
3217
+ "anyOf": [{ "$ref": "#/definitions/Plugins" }, { "type": "null" }]
3148
3218
  }
3149
3219
  },
3150
3220
  "additionalProperties": false
@@ -4222,20 +4292,6 @@
4222
4292
  "description": "A list of rules that belong to this group",
4223
4293
  "type": "object",
4224
4294
  "properties": {
4225
- "noArguments": {
4226
- "description": "Disallow the use of arguments.",
4227
- "anyOf": [
4228
- { "$ref": "#/definitions/RuleConfiguration" },
4229
- { "type": "null" }
4230
- ]
4231
- },
4232
- "noCommaOperator": {
4233
- "description": "Disallow comma operator.",
4234
- "anyOf": [
4235
- { "$ref": "#/definitions/RuleConfiguration" },
4236
- { "type": "null" }
4237
- ]
4238
- },
4239
4295
  "noCommonJs": {
4240
4296
  "description": "Disallow use of CommonJs module system in favor of ESM style imports.",
4241
4297
  "anyOf": [
@@ -5355,7 +5411,7 @@
5355
5411
  "properties": {
5356
5412
  "syntax": {
5357
5413
  "description": "The preferred syntax to enforce.",
5358
- "default": "explicit",
5414
+ "default": "shorthand",
5359
5415
  "allOf": [{ "$ref": "#/definitions/ObjectPropertySyntax" }]
5360
5416
  }
5361
5417
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
4
4
  "bin": {
5
5
  "biome": "bin/biome"
6
6
  },
@@ -46,13 +46,13 @@
46
46
  "provenance": true
47
47
  },
48
48
  "optionalDependencies": {
49
- "@biomejs/cli-win32-x64": "2.0.0-beta.5",
50
- "@biomejs/cli-win32-arm64": "2.0.0-beta.5",
51
- "@biomejs/cli-darwin-x64": "2.0.0-beta.5",
52
- "@biomejs/cli-darwin-arm64": "2.0.0-beta.5",
53
- "@biomejs/cli-linux-x64": "2.0.0-beta.5",
54
- "@biomejs/cli-linux-arm64": "2.0.0-beta.5",
55
- "@biomejs/cli-linux-x64-musl": "2.0.0-beta.5",
56
- "@biomejs/cli-linux-arm64-musl": "2.0.0-beta.5"
49
+ "@biomejs/cli-win32-x64": "2.0.0-beta.6",
50
+ "@biomejs/cli-win32-arm64": "2.0.0-beta.6",
51
+ "@biomejs/cli-darwin-x64": "2.0.0-beta.6",
52
+ "@biomejs/cli-darwin-arm64": "2.0.0-beta.6",
53
+ "@biomejs/cli-linux-x64": "2.0.0-beta.6",
54
+ "@biomejs/cli-linux-arm64": "2.0.0-beta.6",
55
+ "@biomejs/cli-linux-x64-musl": "2.0.0-beta.6",
56
+ "@biomejs/cli-linux-arm64-musl": "2.0.0-beta.6"
57
57
  }
58
58
  }