@biomejs/biome 2.3.1 → 2.3.2

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.
@@ -3577,6 +3577,23 @@
3577
3577
  "type": "object",
3578
3578
  "additionalProperties": false
3579
3579
  },
3580
+ "NoIncrementDecrementConfiguration": {
3581
+ "anyOf": [
3582
+ { "$ref": "#/definitions/RulePlainConfiguration" },
3583
+ { "$ref": "#/definitions/RuleWithNoIncrementDecrementOptions" }
3584
+ ]
3585
+ },
3586
+ "NoIncrementDecrementOptions": {
3587
+ "type": "object",
3588
+ "properties": {
3589
+ "allowForLoopAfterthoughts": {
3590
+ "description": "Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.",
3591
+ "default": false,
3592
+ "type": "boolean"
3593
+ }
3594
+ },
3595
+ "additionalProperties": false
3596
+ },
3580
3597
  "NoInferrableTypesConfiguration": {
3581
3598
  "anyOf": [
3582
3599
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -5116,6 +5133,13 @@
5116
5133
  { "type": "null" }
5117
5134
  ]
5118
5135
  },
5136
+ "noIncrementDecrement": {
5137
+ "description": "Disallows the usage of the unary operators ++ and --.",
5138
+ "anyOf": [
5139
+ { "$ref": "#/definitions/NoIncrementDecrementConfiguration" },
5140
+ { "type": "null" }
5141
+ ]
5142
+ },
5119
5143
  "noJsxLiterals": {
5120
5144
  "description": "Disallow string literals inside JSX elements.",
5121
5145
  "anyOf": [
@@ -7586,6 +7610,21 @@
7586
7610
  },
7587
7611
  "additionalProperties": false
7588
7612
  },
7613
+ "RuleWithNoIncrementDecrementOptions": {
7614
+ "type": "object",
7615
+ "required": ["level"],
7616
+ "properties": {
7617
+ "level": {
7618
+ "description": "The severity of the emitted diagnostics by the rule",
7619
+ "allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
7620
+ },
7621
+ "options": {
7622
+ "description": "Rule's options",
7623
+ "allOf": [{ "$ref": "#/definitions/NoIncrementDecrementOptions" }]
7624
+ }
7625
+ },
7626
+ "additionalProperties": false
7627
+ },
7589
7628
  "RuleWithNoInferrableTypesOptions": {
7590
7629
  "type": "object",
7591
7630
  "required": ["level"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
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.3.1",
50
- "@biomejs/cli-win32-arm64": "2.3.1",
51
- "@biomejs/cli-darwin-x64": "2.3.1",
52
- "@biomejs/cli-darwin-arm64": "2.3.1",
53
- "@biomejs/cli-linux-x64": "2.3.1",
54
- "@biomejs/cli-linux-arm64": "2.3.1",
55
- "@biomejs/cli-linux-x64-musl": "2.3.1",
56
- "@biomejs/cli-linux-arm64-musl": "2.3.1"
49
+ "@biomejs/cli-win32-x64": "2.3.2",
50
+ "@biomejs/cli-win32-arm64": "2.3.2",
51
+ "@biomejs/cli-darwin-x64": "2.3.2",
52
+ "@biomejs/cli-darwin-arm64": "2.3.2",
53
+ "@biomejs/cli-linux-x64": "2.3.2",
54
+ "@biomejs/cli-linux-arm64": "2.3.2",
55
+ "@biomejs/cli-linux-x64-musl": "2.3.2",
56
+ "@biomejs/cli-linux-arm64-musl": "2.3.2"
57
57
  }
58
58
  }