@biomejs/biome 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.
@@ -716,10 +716,32 @@
716
716
  { "type": "null" }
717
717
  ]
718
718
  },
719
+ "enabled": {
720
+ "description": "Control the formatter for JavaScript (and its super languages) files.",
721
+ "type": ["boolean", "null"]
722
+ },
723
+ "indentSize": {
724
+ "description": "The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.",
725
+ "type": ["integer", "null"],
726
+ "format": "uint8",
727
+ "minimum": 0.0
728
+ },
729
+ "indentStyle": {
730
+ "description": "The indent style applied to JavaScript (and its super languages) files.",
731
+ "anyOf": [
732
+ { "$ref": "#/definitions/PlainIndentStyle" },
733
+ { "type": "null" }
734
+ ]
735
+ },
719
736
  "jsxQuoteStyle": {
720
737
  "description": "The type of quotes used in JSX. Defaults to double.",
721
738
  "anyOf": [{ "$ref": "#/definitions/QuoteStyle" }, { "type": "null" }]
722
739
  },
740
+ "lineWidth": {
741
+ "description": "What's the max width of a line, applied to JavaScript (and its super languages) files. Defaults to 80.",
742
+ "default": 80,
743
+ "anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
744
+ },
723
745
  "quoteProperties": {
724
746
  "description": "When properties in objects are quoted. Defaults to asNeeded.",
725
747
  "anyOf": [
@@ -764,6 +786,13 @@
764
786
  "description": "Options applied to JSON files",
765
787
  "type": "object",
766
788
  "properties": {
789
+ "formatter": {
790
+ "description": "Formatting options",
791
+ "anyOf": [
792
+ { "$ref": "#/definitions/JsonFormatter" },
793
+ { "type": "null" }
794
+ ]
795
+ },
767
796
  "parser": {
768
797
  "description": "Parsing options",
769
798
  "anyOf": [{ "$ref": "#/definitions/JsonParser" }, { "type": "null" }]
@@ -771,6 +800,34 @@
771
800
  },
772
801
  "additionalProperties": false
773
802
  },
803
+ "JsonFormatter": {
804
+ "type": "object",
805
+ "properties": {
806
+ "enabled": {
807
+ "description": "Control the formatter for JSON (and its super languages) files.",
808
+ "type": ["boolean", "null"]
809
+ },
810
+ "indent_size": {
811
+ "description": "The size of the indentation applied to JSON (and its super languages) files. Default to 2.",
812
+ "type": ["integer", "null"],
813
+ "format": "uint8",
814
+ "minimum": 0.0
815
+ },
816
+ "indent_style": {
817
+ "description": "The indent style applied to JSON (and its super languages) files.",
818
+ "anyOf": [
819
+ { "$ref": "#/definitions/PlainIndentStyle" },
820
+ { "type": "null" }
821
+ ]
822
+ },
823
+ "line_width": {
824
+ "description": "What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.",
825
+ "default": 80,
826
+ "anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
827
+ }
828
+ },
829
+ "additionalProperties": false
830
+ },
774
831
  "JsonParser": {
775
832
  "description": "Options that changes how the JSON parser behaves",
776
833
  "type": "object",
@@ -852,8 +909,8 @@
852
909
  { "type": "null" }
853
910
  ]
854
911
  },
855
- "noConfusingArrow": {
856
- "description": "Disallow arrow functions where they could be confused with comparisons.",
912
+ "noConfusingVoidType": {
913
+ "description": "Disallow void type outside of generic or return types.",
857
914
  "anyOf": [
858
915
  { "$ref": "#/definitions/RuleConfiguration" },
859
916
  { "type": "null" }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.1.0","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"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/biome","version":"1.1.2-nightly.9c28238","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"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"}}
@@ -2,16 +2,16 @@ const { platform, arch } = process;
2
2
 
3
3
  const PLATFORMS = {
4
4
  win32: {
5
- x64: "@biomejs/cli-win32-x64/rome.exe",
6
- arm64: "@biomejs/cli-win32-arm64/rome.exe",
5
+ x64: "@biomejs/cli-win32-x64/biome.exe",
6
+ arm64: "@biomejs/cli-win32-arm64/biome.exe",
7
7
  },
8
8
  darwin: {
9
- x64: "@biomejs/cli-darwin-x64/rome",
10
- arm64: "@biomejs/cli-darwin-arm64/rome",
9
+ x64: "@biomejs/cli-darwin-x64/biome",
10
+ arm64: "@biomejs/cli-darwin-arm64/biome",
11
11
  },
12
12
  linux: {
13
- x64: "@biomejs/cli-linux-x64/rome",
14
- arm64: "@biomejs/cli-linux-arm64/rome",
13
+ x64: "@biomejs/cli-linux-x64/biome",
14
+ arm64: "@biomejs/cli-linux-arm64/biome",
15
15
  },
16
16
  };
17
17
 
@@ -22,13 +22,13 @@ if (binName) {
22
22
  binPath = require.resolve(binName);
23
23
  } catch {
24
24
  console.warn(
25
- `The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`,
25
+ `The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`
26
26
  );
27
27
  }
28
28
  } else {
29
29
  console.warn(
30
30
  "The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. " +
31
31
  "You can still use the CLI by cloning the biomejs/biome repo from GitHub, " +
32
- "and follow the instructions there to build the CLI for your platform.",
32
+ "and follow the instructions there to build the CLI for your platform."
33
33
  );
34
34
  }