@crowdin/apps-biome-config 1.0.0 → 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/CHANGELOG.md +4 -0
- package/README.md +21 -11
- package/biome.json +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -10,6 +10,15 @@ npm install --save-dev @crowdin/apps-biome-config
|
|
|
10
10
|
|
|
11
11
|
Biome is a pinned peer dependency and installs with this package. Do not add `@biomejs/biome` separately.
|
|
12
12
|
|
|
13
|
+
With pnpm, add to `pnpm-workspace.yaml`:
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
publicHoistPattern:
|
|
17
|
+
- '@biomejs/biome'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
pnpm does not link the `biome` command of a peer dependency that it installs automatically. Hoisting links it and lets editor extensions find Biome.
|
|
21
|
+
|
|
13
22
|
`biome.json`:
|
|
14
23
|
|
|
15
24
|
```json
|
|
@@ -52,17 +61,18 @@ git update-index --again
|
|
|
52
61
|
|
|
53
62
|
Only settings that differ from Biome's defaults. Each one needs a reason here.
|
|
54
63
|
|
|
55
|
-
| Setting
|
|
56
|
-
|
|
|
57
|
-
| `vcs.useIgnoreFile`
|
|
58
|
-
| `files.ignoreUnknown`
|
|
59
|
-
| `formatter.indentStyle`
|
|
60
|
-
| `formatter.lineWidth`
|
|
61
|
-
| `javascript.formatter.quoteStyle`
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
|
|
|
64
|
+
| Setting | Value | Biome default | Why |
|
|
65
|
+
| --------------------------------------- | -------- | ------------- | ------------------------------------------------------------------------------------------------------- |
|
|
66
|
+
| `vcs.useIgnoreFile` | `true` | `false` | Skips what `.gitignore` skips. |
|
|
67
|
+
| `files.ignoreUnknown` | `true` | `false` | No errors on unsupported file types. |
|
|
68
|
+
| `formatter.indentStyle` | `space` | `tab` | Same look in every editor and review tool. |
|
|
69
|
+
| `formatter.lineWidth` | 120 | 80 | Room for TypeScript signatures, still fits side-by-side diffs. |
|
|
70
|
+
| `javascript.formatter.quoteStyle` | `single` | `double` | No escaping in strings that contain HTML, JSON or quoted text. |
|
|
71
|
+
| `assist.actions.source.organizeImports` | `off` | `on` | Sorting moves imports with side effects, such as Sentry setup, below the code that must run after them. |
|
|
72
|
+
| `linter.rules.style.useThrowOnlyError` | `error` | off | Throwing a string or object loses the stack trace. |
|
|
73
|
+
| `yaml.formatter.enabled` | `false` | `true` | Helm chart templates are not valid YAML until rendered; formatting breaks `{{ }}` expressions. |
|
|
74
|
+
| `css.parser.tailwindDirectives` | `true` | `false` | Parses Tailwind at-rules such as `@theme` and `@apply`. |
|
|
75
|
+
| `--error-on-warnings` (CI) | on | off | Warnings that never fail the build get ignored. |
|
|
66
76
|
|
|
67
77
|
## License
|
|
68
78
|
|
package/biome.json
CHANGED