@biomejs/biome 0.2.3 → 1.1.0
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/README.md +2 -2
- package/bin/biome +4 -1
- package/configuration_schema.json +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,6 @@ or directly head to the [Getting Started guide][getting-started] to start using
|
|
|
52
52
|
|
|
53
53
|
[bench]: https://github.com/biomejs/biome/blob/main/benchmark/README.md
|
|
54
54
|
[biomejs]: https://biomejs.dev/
|
|
55
|
-
[biome-philosophy]: https://biomejs.dev/
|
|
56
|
-
[language-support]: https://biomejs.dev/internals/
|
|
55
|
+
[biome-philosophy]: https://biomejs.dev/internals/philosophy/
|
|
56
|
+
[language-support]: https://biomejs.dev/internals/language-support/
|
|
57
57
|
[getting-started]: https://biomejs.dev/guides/getting-started/
|
package/bin/biome
CHANGED
|
@@ -18,6 +18,7 @@ const PLATFORMS = {
|
|
|
18
18
|
|
|
19
19
|
const binPath = env.ROME_BINARY || PLATFORMS?.[platform]?.[arch];
|
|
20
20
|
if (binPath) {
|
|
21
|
+
const packageManager = detectPackageManager();
|
|
21
22
|
const result = require("child_process").spawnSync(
|
|
22
23
|
require.resolve(binPath),
|
|
23
24
|
process.argv.slice(2),
|
|
@@ -28,7 +29,9 @@ if (binPath) {
|
|
|
28
29
|
...env,
|
|
29
30
|
JS_RUNTIME_VERSION: version,
|
|
30
31
|
JS_RUNTIME_NAME: release.name,
|
|
31
|
-
|
|
32
|
+
...(packageManager != null
|
|
33
|
+
? { NODE_PACKAGE_MANAGER: packageManager }
|
|
34
|
+
: {}),
|
|
32
35
|
},
|
|
33
36
|
},
|
|
34
37
|
);
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
"type": ["boolean", "null"]
|
|
596
596
|
},
|
|
597
597
|
"maxSize": {
|
|
598
|
-
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance
|
|
598
|
+
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
|
|
599
599
|
"default": null,
|
|
600
600
|
"type": ["integer", "null"],
|
|
601
601
|
"format": "uint64",
|
|
@@ -989,6 +989,13 @@
|
|
|
989
989
|
{ "type": "null" }
|
|
990
990
|
]
|
|
991
991
|
},
|
|
992
|
+
"useCollapsedElseIf": {
|
|
993
|
+
"description": "Enforce using else if instead of nested if in else clauses.",
|
|
994
|
+
"anyOf": [
|
|
995
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
996
|
+
{ "type": "null" }
|
|
997
|
+
]
|
|
998
|
+
},
|
|
992
999
|
"useExhaustiveDependencies": {
|
|
993
1000
|
"description": "Enforce all dependencies are correctly specified.",
|
|
994
1001
|
"anyOf": [
|
|
@@ -1401,7 +1408,7 @@
|
|
|
1401
1408
|
]
|
|
1402
1409
|
},
|
|
1403
1410
|
"useTemplate": {
|
|
1404
|
-
"description": "
|
|
1411
|
+
"description": "Prefer template literals over string concatenation.",
|
|
1405
1412
|
"anyOf": [
|
|
1406
1413
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1407
1414
|
{ "type": "null" }
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"
|
|
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"}}
|