@yuu1111/biome-config 2.0.2 → 2.2.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.ja.md CHANGED
@@ -47,9 +47,11 @@ bun add -D @yuu1111/biome-config
47
47
  | `json.formatter.expand` | `always` |
48
48
  | `assist.source.organizeImports` | `on` |
49
49
  | `linter.rules.recommended` | `true` |
50
+ | `nursery.noFloatingPromises` | `warn` |
50
51
  | `performance.noBarrelFile`、`performance.noReExportAll` | `error` |
51
52
  | `complexity.noExcessiveCognitiveComplexity` | `warn` |
52
- | `style.noNestedTernary` | `warn` |
53
+ | `style.noExportedImports` | `error` |
54
+ | `style.noNestedTernary`、`style.useErrorCause` | `warn` |
53
55
  | `suspicious.noEmptyBlockStatements` | `warn` |
54
56
 
55
57
  ```json
@@ -74,7 +76,7 @@ CSSのformatterとlinterを足し、Tailwind directiveを有効にする
74
76
 
75
77
  | Rule | 重大度 | Default | 検出対象 |
76
78
  |------|----------|---------|---------|
77
- | `no-reexports` | warn | false | 既存bindingを転送するだけのexport(`export type Alias = Imported` など)、`export ... from` の形はbaseのbarrel file ruleが担当する |
79
+ | `no-reexports` | warn | false | 既存bindingを転送するだけのexport(`export type Alias = Imported` など)、`export { imported }` はbaseの `style.noExportedImports`、`export ... from` の形はbaseのbarrel file ruleが担当する |
78
80
  | `no-incomplete-implementation` | error, warn | false | placeholderのthrowはerror、logだけのcatch、`null`・`[]`・`{}` へ置き換えたrejected promiseとcatchしたerrorはwarn |
79
81
  | `no-type-safety-bypass` | error, warn | false | `as unknown as T` はerror、`Record<string, unknown>` のassertion、未検証のJSON assertion、静的な `Reflect.get`、receiver無しの `Reflect.apply` はwarn |
80
82
  | `no-unsafe-errno-assertion` | warn | false | catchした値を検証せず `NodeJS.ErrnoException` のassertion経由で `code` を読むコード |
package/README.md CHANGED
@@ -47,9 +47,11 @@ The `plugins/*` presets only add rules, so list them after `biome` or `react`; t
47
47
  | `json.formatter.expand` | `always` |
48
48
  | `assist.source.organizeImports` | `on` |
49
49
  | `linter.rules.recommended` | `true` |
50
+ | `nursery.noFloatingPromises` | `warn` |
50
51
  | `performance.noBarrelFile`, `performance.noReExportAll` | `error` |
51
52
  | `complexity.noExcessiveCognitiveComplexity` | `warn` |
52
- | `style.noNestedTernary` | `warn` |
53
+ | `style.noExportedImports` | `error` |
54
+ | `style.noNestedTernary`, `style.useErrorCause` | `warn` |
53
55
  | `suspicious.noEmptyBlockStatements` | `warn` |
54
56
 
55
57
  ```json
@@ -74,7 +76,7 @@ Adds the CSS formatter and linter, with the Tailwind directives enabled.
74
76
 
75
77
  | Rule | Severity | Default | Detects |
76
78
  |------|----------|---------|---------|
77
- | `no-reexports` | warn | false | An export that only forwards an existing binding, such as `export type Alias = Imported` or `export default imported`; the `export ... from` forms are covered by the base barrel-file rules |
79
+ | `no-reexports` | warn | false | An export that only forwards an existing binding, such as `export type Alias = Imported` or `export default imported`; `export { imported }` is caught by the base `style.noExportedImports` and the `export ... from` forms by the base barrel-file rules |
78
80
  | `no-incomplete-implementation` | error, warn | false | A placeholder throw, as an error; a catch block that only logs, or a rejected promise or caught error replaced with `null`, `[]`, or `{}`, as a warning |
79
81
  | `no-type-safety-bypass` | error, warn | false | `as unknown as T`, as an error; a `Record<string, unknown>` assertion, an unchecked JSON assertion, static `Reflect.get`, or a receiver-free `Reflect.apply`, as a warning |
80
82
  | `no-unsafe-errno-assertion` | warn | false | Reading `code` through a `NodeJS.ErrnoException` assertion without validating the caught value |
package/base.json CHANGED
@@ -21,12 +21,17 @@
21
21
  "complexity": {
22
22
  "noExcessiveCognitiveComplexity": "warn"
23
23
  },
24
+ "nursery": {
25
+ "noFloatingPromises": "warn"
26
+ },
24
27
  "performance": {
25
28
  "noBarrelFile": "error",
26
29
  "noReExportAll": "error"
27
30
  },
28
31
  "style": {
29
- "noNestedTernary": "warn"
32
+ "noExportedImports": "error",
33
+ "noNestedTernary": "warn",
34
+ "useErrorCause": "warn"
30
35
  },
31
36
  "suspicious": {
32
37
  "noEmptyBlockStatements": "warn"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuu1111/biome-config",
3
- "version": "2.0.2",
3
+ "version": "2.2.0",
4
4
  "description": "Shared Biome configuration",
5
5
  "repository": {
6
6
  "type": "git",
package/react.json CHANGED
@@ -21,12 +21,17 @@
21
21
  "complexity": {
22
22
  "noExcessiveCognitiveComplexity": "warn"
23
23
  },
24
+ "nursery": {
25
+ "noFloatingPromises": "warn"
26
+ },
24
27
  "performance": {
25
28
  "noBarrelFile": "error",
26
29
  "noReExportAll": "error"
27
30
  },
28
31
  "style": {
29
- "noNestedTernary": "warn"
32
+ "noExportedImports": "error",
33
+ "noNestedTernary": "warn",
34
+ "useErrorCause": "warn"
30
35
  },
31
36
  "suspicious": {
32
37
  "noEmptyBlockStatements": "warn"