@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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ Import sorting is off. It moved imports with side effects, such as Sentry setup, below the code that must run after them.
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  First release.
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 | Value | Biome default | Why |
56
- | -------------------------------------- | -------- | ------------- | ---------------------------------------------------------------------------------------------- |
57
- | `vcs.useIgnoreFile` | `true` | `false` | Skips what `.gitignore` skips. |
58
- | `files.ignoreUnknown` | `true` | `false` | No errors on unsupported file types. |
59
- | `formatter.indentStyle` | `space` | `tab` | Same look in every editor and review tool. |
60
- | `formatter.lineWidth` | 120 | 80 | Room for TypeScript signatures, still fits side-by-side diffs. |
61
- | `javascript.formatter.quoteStyle` | `single` | `double` | No escaping in strings that contain HTML, JSON or quoted text. |
62
- | `linter.rules.style.useThrowOnlyError` | `error` | off | Throwing a string or object loses the stack trace. |
63
- | `yaml.formatter.enabled` | `false` | `true` | Helm chart templates are not valid YAML until rendered; formatting breaks `{{ }}` expressions. |
64
- | `css.parser.tailwindDirectives` | `true` | `false` | Parses Tailwind at-rules such as `@theme` and `@apply`. |
65
- | `--error-on-warnings` (CI) | on | off | Warnings that never fail the build get ignored. |
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
@@ -27,6 +27,13 @@
27
27
  "enabled": false
28
28
  }
29
29
  },
30
+ "assist": {
31
+ "actions": {
32
+ "source": {
33
+ "organizeImports": "off"
34
+ }
35
+ }
36
+ },
30
37
  "linter": {
31
38
  "rules": {
32
39
  "style": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/apps-biome-config",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Shared Biome configuration for Crowdin apps",
5
5
  "license": "MIT",
6
6
  "repository": {