@biomejs/biome 1.3.1 → 1.3.3-nightly.8475169
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 +37 -12
- package/configuration_schema.json +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,30 +26,55 @@
|
|
|
26
26
|
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
|
-
**Biome**
|
|
29
|
+
**Biome** is a toolchain for web projects, it aims to provide developer tools to maintain the health of said projects.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
It aims to support [all main languages][language-support] of modern web development.
|
|
31
|
+
### Installation
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
```shell
|
|
34
|
+
npm install --save-dev --save-exact @biomejs/biome
|
|
35
|
+
```
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
Building upon a shared base allows us to provide a cohesive experience for processing code, displaying errors, parallelizing work, caching, and configuration.
|
|
37
|
+
### Usage
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
```shell
|
|
40
|
+
# format files
|
|
41
|
+
npx @biomejs/biome format --write ./src
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
# lint files
|
|
44
|
+
npx @biomejs/biome lint ./src
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
# run format, lint, etc. and apply the safe suggestions
|
|
47
|
+
npx @biomejs/biome check --apply ./src
|
|
48
|
+
|
|
49
|
+
# check all files against format, lint, etc. in CI environments
|
|
50
|
+
npx @biomejs/biome ci ./src
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If you want to give Biome a run without installing it, use the [online playground](https://biomejs.dev/playground/), compiled to WebAssembly.
|
|
47
54
|
|
|
48
55
|
## Documentation
|
|
49
56
|
|
|
50
57
|
Check out our [homepage][biomejs] to learn more about Biome,
|
|
51
58
|
or directly head to the [Getting Started guide][getting-started] to start using Biome.
|
|
52
59
|
|
|
60
|
+
## About Biome
|
|
61
|
+
|
|
62
|
+
**Biome** formats and lints your code in a [fraction of a second][bench].
|
|
63
|
+
|
|
64
|
+
**Biome** [doesn't require Node.js](https://biomejs.dev/guides/manual-installation/) to function.
|
|
65
|
+
|
|
66
|
+
**Biome** has first-class LSP support, with a sophisticated parser that represents the source text in full fidelity and top-notch error recovery.
|
|
67
|
+
|
|
68
|
+
**Biome** supports JavaScript, TypeScript, JSON, and more. It aims to support [all main languages][language-support] of modern web development.
|
|
69
|
+
|
|
70
|
+
**Biome** has sane defaults and it doesn't require configuration.
|
|
71
|
+
|
|
72
|
+
**Biome** helps you as much as possible by displaying detailed and contextualized diagnostics. Read more about our [project philosophy][biome-philosophy].
|
|
73
|
+
|
|
74
|
+
**Biome** unifies functionality that has previously been separate tools. Building upon a shared base allows us to provide a cohesive experience for processing code, displaying errors, parallelize work, caching, and configuration.
|
|
75
|
+
|
|
76
|
+
**Biome** is [MIT licensed](https://github.com/biomejs/biome/tree/main/LICENSE) and moderated under the [Contributor Covenant Code of Conduct](https://github.com/biomejs/biome/tree/main/CODE_OF_CONDUCT.md).
|
|
77
|
+
|
|
53
78
|
[bench]: https://github.com/biomejs/biome/blob/main/benchmark/README.md
|
|
54
79
|
[biomejs]: https://biomejs.dev/
|
|
55
80
|
[biome-philosophy]: https://biomejs.dev/internals/philosophy/
|
|
@@ -1086,6 +1086,13 @@
|
|
|
1086
1086
|
{ "type": "null" }
|
|
1087
1087
|
]
|
|
1088
1088
|
},
|
|
1089
|
+
"noThisInStatic": {
|
|
1090
|
+
"description": "Disallow this and super in static contexts.",
|
|
1091
|
+
"anyOf": [
|
|
1092
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1093
|
+
{ "type": "null" }
|
|
1094
|
+
]
|
|
1095
|
+
},
|
|
1089
1096
|
"noUnusedImports": {
|
|
1090
1097
|
"description": "Disallow unused imports.",
|
|
1091
1098
|
"anyOf": [
|
|
@@ -1284,14 +1291,8 @@
|
|
|
1284
1291
|
"additionalProperties": false
|
|
1285
1292
|
},
|
|
1286
1293
|
"Overrides": {
|
|
1287
|
-
"type": "
|
|
1288
|
-
"
|
|
1289
|
-
"list": {
|
|
1290
|
-
"type": "array",
|
|
1291
|
-
"items": { "$ref": "#/definitions/OverridePattern" }
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
"additionalProperties": false
|
|
1294
|
+
"type": "array",
|
|
1295
|
+
"items": { "$ref": "#/definitions/OverridePattern" }
|
|
1295
1296
|
},
|
|
1296
1297
|
"Performance": {
|
|
1297
1298
|
"description": "A list of rules that belong to this group",
|
|
@@ -1344,8 +1345,7 @@
|
|
|
1344
1345
|
{
|
|
1345
1346
|
"description": "Options for `noRestrictedGlobals` rule",
|
|
1346
1347
|
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
1347
|
-
}
|
|
1348
|
-
{ "description": "No options available", "type": "null" }
|
|
1348
|
+
}
|
|
1349
1349
|
]
|
|
1350
1350
|
},
|
|
1351
1351
|
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.3.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.3.3-nightly.8475169","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.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.3-nightly.8475169","@biomejs/cli-win32-arm64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-x64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-arm64":"1.3.3-nightly.8475169","@biomejs/cli-linux-x64":"1.3.3-nightly.8475169","@biomejs/cli-linux-arm64":"1.3.3-nightly.8475169"}}
|