@yuu1111/biome-config 2.0.1 → 2.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.ja.md CHANGED
@@ -12,66 +12,80 @@ bun add -D @yuu1111/biome-config
12
12
 
13
13
  ## Usage
14
14
 
15
- ### Base
15
+ `biome` をextendsし、Projectに必要なrule層を足す
16
16
 
17
17
  ```json
18
18
  {
19
19
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
20
- "extends": ["@yuu1111/biome-config/biome"]
20
+ "extends": [
21
+ "@yuu1111/biome-config/biome",
22
+ "@yuu1111/biome-config/plugins/core"
23
+ ]
21
24
  }
22
25
  ```
23
26
 
24
- base設定はrecommended ruleを有効にし、barrel fileとre-export-allをerror、nested ternary、空block文、過剰なcognitive complexityをwarningにする
25
-
26
- ```ts
27
- const size = small ? "s" : medium ? "m" : "l"
28
- ```
29
-
30
- ### React
31
-
32
- CSS/Tailwind対応を含む
27
+ ## Presets
28
+
29
+ | Preset | 用途 |
30
+ |--------|------|
31
+ | `biome` | formatter、lint rule、VCS連携 |
32
+ | `react` | `biome` にCSSとTailwindを足す |
33
+ | `plugins/core` | 汎用のrule plugin 7つ |
34
+ | `plugins/network` | `fetch` のrule plugin 2つ |
35
+ | `plugins/discord` | Discordのrule plugin 1つ |
36
+
37
+ `biome` と `react` は完結した設定で、`plugins/*` はruleだけを足す
38
+ `biome` か `react` の後ろへ並べ、presetをextendsするまでそれぞれのruleは無効になる
39
+
40
+ ### biome
41
+
42
+ | Setting | 値 |
43
+ |---------|-----|
44
+ | `vcs` | git、`useIgnoreFile` |
45
+ | `formatter` | 有効、`indentStyle: "tab"` |
46
+ | `javascript.formatter.quoteStyle` | `double` |
47
+ | `json.formatter.expand` | `always` |
48
+ | `assist.source.organizeImports` | `on` |
49
+ | `linter.rules.recommended` | `true` |
50
+ | `nursery.noFloatingPromises` | `warn` |
51
+ | `performance.noBarrelFile`、`performance.noReExportAll` | `error` |
52
+ | `complexity.noExcessiveCognitiveComplexity` | `warn` |
53
+ | `style.noNestedTernary`、`style.useErrorCause` | `warn` |
54
+ | `suspicious.noEmptyBlockStatements` | `warn` |
33
55
 
34
56
  ```json
35
57
  {
36
58
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
37
- "extends": ["@yuu1111/biome-config/react"]
59
+ "extends": ["@yuu1111/biome-config/biome"]
38
60
  }
39
61
  ```
40
62
 
41
- ### Custom rule presets
63
+ ### react
42
64
 
43
- Custom ruleはopt-in baseまたはReact設定の後ろに、必要な層のpresetを並べる
65
+ CSSのformatterとlinterを足し、Tailwind directiveを有効にする
44
66
 
45
67
  ```json
46
68
  {
47
69
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
48
- "extends": [
49
- "@yuu1111/biome-config/biome",
50
- "@yuu1111/biome-config/plugins/core",
51
- "@yuu1111/biome-config/plugins/network"
52
- ]
70
+ "extends": ["@yuu1111/biome-config/react"]
53
71
  }
54
72
  ```
55
73
 
56
- - `plugins/core` はforwarding export、未完成実装、型安全の迂回、安全でないerrno assertion、無意味なtest、pass-through wrapper、副作用目的のternaryを検査する
57
- - `plugins/network` は `fetch` に `AbortSignal` を要求し、手動で予約したabort timeoutの後始末を検査する
58
- - `plugins/discord` は動的なDiscord messageに明示的なmention処理があるかを検査する
59
-
60
- presetは他の層を含まないため、Projectに必要な層をすべて並べる
61
-
62
- #### Core rules
63
-
64
- - `no-reexports` は既存bindingを転送するだけのexport(`export type Alias = Imported`、`export default imported`、`export const wrapped = imported` など)をwarningにする `export ... from` の形はbaseのbarrel file ruleが担当する
65
- - `no-incomplete-implementation` はplaceholderのthrowをerror、logだけのcatch、`null`・`[]`・`{}` へ置き換えたrejected promiseとcatchしたerrorをwarningにする
66
- - `no-type-safety-bypass` は `as unknown as T` をerror、`Record<string, unknown>` のassertion、未検証のJSON assertion、静的な `Reflect.get`、receiver無しの `Reflect.apply` をwarningにする
67
- - `no-unsafe-errno-assertion` はcatchした値を検証せず `NodeJS.ErrnoException` のassertion経由で `code` を直接読むコードをwarningにする
68
- - `no-meaningless-test` はidentifierやliteralを自分自身と比較する `toBe`・`toEqual`・`toStrictEqual` をerror、空の `test`・`it` callbackをwarningにする
69
- - `no-useless-abstraction` は同じ引数を別の関数へ渡すだけの名前付き単一引数arrow functionをwarningにする 同じ形のasync版も含む
70
- - `no-ternary-statement` は `flag ? enable() : disable()` のような文としてのternaryをwarningにする if/elseの方が明確な箇所が対象
74
+ ### plugins/core
71
75
 
72
- ruleは意図的に狭く保つ 検証、変換、log、cache、transaction開始などの処理を行うwrapperはpass-through wrapperとして報告しない 準備やassertionのあるtestは空として扱わない
76
+ | Rule | 重大度 | Default | 検出対象 |
77
+ |------|----------|---------|---------|
78
+ | `no-reexports` | warn | false | 既存bindingを転送するだけのexport(`export type Alias = Imported` など)、`export ... from` の形はbaseのbarrel file ruleが担当する |
79
+ | `no-incomplete-implementation` | error, warn | false | placeholderのthrowはerror、logだけのcatch、`null`・`[]`・`{}` へ置き換えたrejected promiseとcatchしたerrorはwarn |
80
+ | `no-type-safety-bypass` | error, warn | false | `as unknown as T` はerror、`Record<string, unknown>` のassertion、未検証のJSON assertion、静的な `Reflect.get`、receiver無しの `Reflect.apply` はwarn |
81
+ | `no-unsafe-errno-assertion` | warn | false | catchした値を検証せず `NodeJS.ErrnoException` のassertion経由で `code` を読むコード |
82
+ | `no-meaningless-test` | error, warn | false | identifierやliteralを自分自身と比較する `toBe`・`toEqual`・`toStrictEqual` はerror、空の `test`・`it` callbackはwarn |
83
+ | `no-useless-abstraction` | warn | false | 同じ引数を別の関数へ渡すだけの名前付き単一引数arrow function(async版も含む) |
84
+ | `no-ternary-statement` | warn | false | `flag ? enable() : disable()` のような文としてのternary |
73
85
 
74
- `plugins/core` が報告する例
86
+ ruleは意図的に狭く保つ
87
+ 検証、変換、log、cache、transaction開始などの処理を行うwrapperはpass-through wrapperとして報告しない
88
+ 準備やassertionのあるtestは空として扱わない
75
89
 
76
90
  ```ts
77
91
  throw new Error("Not implemented")
@@ -96,53 +110,72 @@ flag ? enable() : disable()
96
110
  cacheRequest.catch(() => null)
97
111
  ```
98
112
 
99
- #### Network rule
113
+ ### plugins/network
100
114
 
101
- - `require-fetch-abort-signal` は `fetch` 呼び出しが `signal` optionを省いているとwarningにする
102
- - `require-abort-timeout-cleanup` は `setTimeout` callbackで `fetch` をabortしていながらそのtimerをclearしない関数をwarningにする
115
+ | Rule | 重大度 | Default | 検出対象 |
116
+ |------|----------|---------|---------|
117
+ | `require-fetch-abort-signal` | warn | false | `signal` optionを省いた `fetch` 呼び出し |
118
+ | `require-abort-timeout-cleanup` | warn | false | `setTimeout` callbackで `fetch` をabortしながらそのtimerをclearしない関数 |
103
119
 
104
- #### Discord rule
120
+ ### plugins/discord
105
121
 
106
- `no-unsafe-dynamic-discord-message` は明示的な `allowedMentions` policy無しで動的なmessage内容を送るとwarningにする
122
+ | Rule | 重大度 | Default | 検出対象 |
123
+ |------|----------|---------|---------|
124
+ | `no-unsafe-dynamic-discord-message` | warn | false | 明示的な `allowedMentions` policy無しで送る動的なmessage内容 |
107
125
 
108
- #### Project-scoped rule
126
+ ## Scoped rules
109
127
 
110
- `no-adapter-import` は `integrations/` か `adapters/` を含むpathをmoduleがimportするとerrorにする 保護する層がProject固有のためpresetを持たない Project自身の設定で宣言し、`includes` で絞る
128
+ | Rule | 重大度 | Default | 検出対象 |
129
+ |------|----------|---------|---------|
130
+ | `no-adapter-import` | error | false | `integrations/` か `adapters/` を含むpathのimport |
131
+ | `no-direct-response` | error | false | 対象層での `new Response(...)`、`Response.json(...)`、`Response.redirect(...)` |
132
+
133
+ 対象層を選ぶ `includes` を必要とするため共有presetでは持てない
134
+ Project自身の設定で宣言する
135
+
136
+ ### no-adapter-import
111
137
 
112
138
  ```json
113
139
  {
114
- "plugins": [
115
- {
116
- "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
117
- "includes": ["**/src/modules/authorization/**"]
118
- }
119
- ]
140
+ "plugins": [
141
+ {
142
+ "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
143
+ "includes": ["**/src/modules/authorization/**"]
144
+ }
145
+ ]
120
146
  }
121
147
  ```
122
148
 
123
- pluginは `includes` に一致したfileだけで走るため、同じimportはadapter側と統合層へ到達してよい層では有効なままになる pluginのpatternはfileのfull pathと照合されるため、`src/modules/authorization` のようなpathへ一致させるには `**/` から始める必要がある
149
+ pluginは `includes` に一致したfileだけで走る
150
+ そのためadapter側と、統合層へ到達してよい層では同じimportが有効なままになる
151
+ patternはfileのfull pathと照合されるため、`src/modules/authorization` のようなpathへ一致させるには `**/` から始める
124
152
 
125
- 統合moduleへ到達してよい層はpatternから外す 自身のadapter実装を `adapters/` に置くmoduleはそのディレクトリを除外しないと、ruleがadapter自身を報告する
153
+ pluginの `path` はfile pathとして解決される
154
+ そのため上記のように `node_modules` 経由のpathを書く
155
+ `@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit` のようなpackage specifierはplugin packageとして解決され、`.grit` fileへは到達しない
156
+
157
+ 統合moduleへ到達してよい層はpatternから外す
158
+ 自身のadapter実装を `adapters/` に置くmoduleは、そのディレクトリを除外しないとruleがadapter自身を報告する
126
159
 
127
160
  ```json
128
161
  {
129
- "includes": [
130
- "**/src/modules/authorization/**",
131
- "!**/src/modules/authorization/adapters/**"
132
- ]
162
+ "includes": [
163
+ "**/src/modules/authorization/**",
164
+ "!**/src/modules/authorization/adapters/**"
165
+ ]
133
166
  }
134
167
  ```
135
168
 
136
- `no-direct-response` は対象層での `new Response(...)`、`Response.json(...)`、`Response.redirect(...)` をerrorにする すべてのresponseを共有helper経由で組み立てる層へ絞る
169
+ ### no-direct-response
137
170
 
138
171
  ```json
139
172
  {
140
- "plugins": [
141
- {
142
- "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
143
- "includes": ["**/src/worker/routes/**"]
144
- }
145
- ]
173
+ "plugins": [
174
+ {
175
+ "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
176
+ "includes": ["**/src/worker/routes/**"]
177
+ }
178
+ ]
146
179
  }
147
180
  ```
148
181
 
package/README.md CHANGED
@@ -12,66 +12,80 @@ bun add -D @yuu1111/biome-config
12
12
 
13
13
  ## Usage
14
14
 
15
- ### Base
15
+ Extend `biome` and add the rule layers the project needs:
16
16
 
17
17
  ```json
18
18
  {
19
19
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
20
- "extends": ["@yuu1111/biome-config/biome"]
20
+ "extends": [
21
+ "@yuu1111/biome-config/biome",
22
+ "@yuu1111/biome-config/plugins/core"
23
+ ]
21
24
  }
22
25
  ```
23
26
 
24
- The base configuration enables the recommended rules, errors on barrel files and re-export-all, and warns about nested ternaries, empty block statements, and excessive cognitive complexity:
25
-
26
- ```ts
27
- const size = small ? "s" : medium ? "m" : "l"
28
- ```
29
-
30
- ### React
31
-
32
- CSS/Tailwind support included.
27
+ ## Presets
28
+
29
+ | Preset | Use case |
30
+ |--------|----------|
31
+ | `biome` | Formatter, lint rules, and VCS integration |
32
+ | `react` | `biome` plus CSS and Tailwind |
33
+ | `plugins/core` | Seven general-purpose rule plugins |
34
+ | `plugins/network` | Two `fetch` rule plugins |
35
+ | `plugins/discord` | One Discord rule plugin |
36
+
37
+ `biome` and `react` are complete configurations.
38
+ The `plugins/*` presets only add rules, so list them after `biome` or `react`; their rules are off until the preset is extended.
39
+
40
+ ### biome
41
+
42
+ | Setting | Value |
43
+ |---------|-------|
44
+ | `vcs` | git, `useIgnoreFile` |
45
+ | `formatter` | enabled, `indentStyle: "tab"` |
46
+ | `javascript.formatter.quoteStyle` | `double` |
47
+ | `json.formatter.expand` | `always` |
48
+ | `assist.source.organizeImports` | `on` |
49
+ | `linter.rules.recommended` | `true` |
50
+ | `nursery.noFloatingPromises` | `warn` |
51
+ | `performance.noBarrelFile`, `performance.noReExportAll` | `error` |
52
+ | `complexity.noExcessiveCognitiveComplexity` | `warn` |
53
+ | `style.noNestedTernary`, `style.useErrorCause` | `warn` |
54
+ | `suspicious.noEmptyBlockStatements` | `warn` |
33
55
 
34
56
  ```json
35
57
  {
36
58
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
37
- "extends": ["@yuu1111/biome-config/react"]
59
+ "extends": ["@yuu1111/biome-config/biome"]
38
60
  }
39
61
  ```
40
62
 
41
- ### Custom rule presets
63
+ ### react
42
64
 
43
- Custom rules are opt-in. Each preset holds one layer of rules; add the layers the project needs after the base or React configuration:
65
+ Adds the CSS formatter and linter, with the Tailwind directives enabled.
44
66
 
45
67
  ```json
46
68
  {
47
69
  "$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
48
- "extends": [
49
- "@yuu1111/biome-config/biome",
50
- "@yuu1111/biome-config/plugins/core",
51
- "@yuu1111/biome-config/plugins/network"
52
- ]
70
+ "extends": ["@yuu1111/biome-config/react"]
53
71
  }
54
72
  ```
55
73
 
56
- - `plugins/core` checks forwarding exports, incomplete implementations, type-safety bypasses, unsafe errno assertions, meaningless tests, pass-through wrappers, and ternaries used for side effects
57
- - `plugins/network` requires an `AbortSignal` for `fetch` and checks cleanup for manually scheduled abort timeouts
58
- - `plugins/discord` checks dynamic Discord messages for explicit mention handling
59
-
60
- A preset does not include the other layers, so list every layer the project needs.
61
-
62
- #### Core rules
63
-
64
- - `no-reexports` warns about exports that only forward an existing binding, such as `export type Alias = Imported`, `export default imported`, or `export const wrapped = imported`; the `export ... from` forms are covered by the base barrel-file rules
65
- - `no-incomplete-implementation` errors on placeholder throws and warns about catch blocks that only log, and rejected promises or caught errors replaced with `null`, `[]`, or `{}`
66
- - `no-type-safety-bypass` errors on `as unknown as T` and warns about `Record<string, unknown>` assertions, unchecked JSON assertions, static `Reflect.get`, and receiver-free `Reflect.apply`
67
- - `no-unsafe-errno-assertion` warns when code reads `code` directly through a `NodeJS.ErrnoException` assertion without validating the caught value
68
- - `no-meaningless-test` errors on `toBe`, `toEqual`, or `toStrictEqual` comparisons where an identifier or literal is compared with itself, and warns about empty `test` or `it` callbacks
69
- - `no-useless-abstraction` warns about named single-argument arrow functions that only pass the same argument to another function, including the equivalent async form
70
- - `no-ternary-statement` warns when a ternary operator is used as a standalone statement, such as `flag ? enable() : disable()`, where an if/else statement is clearer
74
+ ### plugins/core
71
75
 
72
- The rules intentionally stay narrow. A wrapper that validates, transforms, logs, caches, starts a transaction, or performs another operation is not reported as a pass-through wrapper. Tests with setup or assertions are not treated as empty.
76
+ | Rule | Severity | Default | Detects |
77
+ |------|----------|---------|---------|
78
+ | `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-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 |
80
+ | `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 |
81
+ | `no-unsafe-errno-assertion` | warn | false | Reading `code` through a `NodeJS.ErrnoException` assertion without validating the caught value |
82
+ | `no-meaningless-test` | error, warn | false | A `toBe`, `toEqual`, or `toStrictEqual` comparison of an identifier or literal with itself, as an error; an empty `test` or `it` callback, as a warning |
83
+ | `no-useless-abstraction` | warn | false | A named single-argument arrow function that only passes the same argument to another function, including the async form |
84
+ | `no-ternary-statement` | warn | false | A ternary operator used as a standalone statement, such as `flag ? enable() : disable()` |
73
85
 
74
- Examples reported by `plugins/core`:
86
+ The rules stay narrow.
87
+ A wrapper that validates, transforms, logs, caches, starts a transaction, or performs another operation is not reported as a pass-through wrapper.
88
+ A test with setup or assertions is not treated as empty.
75
89
 
76
90
  ```ts
77
91
  throw new Error("Not implemented")
@@ -96,53 +110,70 @@ Suppress an intentional exception with a reason:
96
110
  cacheRequest.catch(() => null)
97
111
  ```
98
112
 
99
- #### Network rule
113
+ ### plugins/network
100
114
 
101
- - `require-fetch-abort-signal` warns when a `fetch` call omits the `signal` option
102
- - `require-abort-timeout-cleanup` warns when a function uses a `setTimeout` callback to abort a `fetch` request but does not clear that timer
115
+ | Rule | Severity | Default | Detects |
116
+ |------|----------|---------|---------|
117
+ | `require-fetch-abort-signal` | warn | false | A `fetch` call that omits the `signal` option |
118
+ | `require-abort-timeout-cleanup` | warn | false | A function that aborts a `fetch` request from a `setTimeout` callback but never clears the timer |
103
119
 
104
- #### Discord rule
120
+ ### plugins/discord
105
121
 
106
- `no-unsafe-dynamic-discord-message` warns when dynamic message content is sent without an explicit `allowedMentions` policy.
122
+ | Rule | Severity | Default | Detects |
123
+ |------|----------|---------|---------|
124
+ | `no-unsafe-dynamic-discord-message` | warn | false | Dynamic message content sent without an explicit `allowedMentions` policy |
107
125
 
108
- #### Project-scoped rule
126
+ ## Scoped rules
109
127
 
110
- `no-adapter-import` errors when a module imports a path that contains `integrations/` or `adapters/`. It has no preset because the layer it protects is specific to the project. Declare it in the project's own configuration and narrow it with `includes`:
128
+ | Rule | Severity | Default | Detects |
129
+ |------|----------|---------|---------|
130
+ | `no-adapter-import` | error | false | An import of a path that contains `integrations/` or `adapters/` |
131
+ | `no-direct-response` | error | false | `new Response(...)`, `Response.json(...)`, or `Response.redirect(...)` in the scoped layer |
132
+
133
+ They need `includes` to name the layer they protect, so a shared preset cannot carry them.
134
+ Declare them in the project's own configuration.
135
+
136
+ ### no-adapter-import
111
137
 
112
138
  ```json
113
139
  {
114
- "plugins": [
115
- {
116
- "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
117
- "includes": ["**/src/modules/authorization/**"]
118
- }
119
- ]
140
+ "plugins": [
141
+ {
142
+ "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
143
+ "includes": ["**/src/modules/authorization/**"]
144
+ }
145
+ ]
120
146
  }
121
147
  ```
122
148
 
123
- The plugin runs only on the files that match `includes`, so the same import stays valid in the adapters and in the layers that are allowed to reach them. A plugin pattern is matched against the full file path, so it has to start with `**/` to match a path such as `src/modules/authorization`.
149
+ The plugin runs only on the files that match `includes`, so the same import stays valid in the adapters and in the layers that are allowed to reach them.
150
+ A plugin pattern is matched against the full file path, so it has to start with `**/` to match a path such as `src/modules/authorization`.
124
151
 
125
- Leave the layer that is allowed to reach the integration modules out of the pattern. A module that keeps its own adapter implementations under an `adapters/` directory has to exclude that directory, or the rule reports the adapters themselves:
152
+ Biome resolves a plugin `path` as a file path, so reference the rule through `node_modules` as shown above.
153
+ A package specifier such as `@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit` is resolved as a plugin package instead.
154
+
155
+ Leave the layer that is allowed to reach the integration modules out of the pattern.
156
+ A module that keeps its own adapter implementations under an `adapters/` directory has to exclude that directory, or the rule reports the adapters themselves:
126
157
 
127
158
  ```json
128
159
  {
129
- "includes": [
130
- "**/src/modules/authorization/**",
131
- "!**/src/modules/authorization/adapters/**"
132
- ]
160
+ "includes": [
161
+ "**/src/modules/authorization/**",
162
+ "!**/src/modules/authorization/adapters/**"
163
+ ]
133
164
  }
134
165
  ```
135
166
 
136
- `no-direct-response` errors on `new Response(...)`, `Response.json(...)` and `Response.redirect(...)` inside the scoped layer. Scope it to the layer that has to build every response through the shared helper:
167
+ ### no-direct-response
137
168
 
138
169
  ```json
139
170
  {
140
- "plugins": [
141
- {
142
- "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
143
- "includes": ["**/src/worker/routes/**"]
144
- }
145
- ]
171
+ "plugins": [
172
+ {
173
+ "path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
174
+ "includes": ["**/src/worker/routes/**"]
175
+ }
176
+ ]
146
177
  }
147
178
  ```
148
179
 
package/base.json CHANGED
@@ -21,12 +21,16 @@
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
+ "noNestedTernary": "warn",
33
+ "useErrorCause": "warn"
30
34
  },
31
35
  "suspicious": {
32
36
  "noEmptyBlockStatements": "warn"
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@yuu1111/biome-config",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Shared Biome configuration",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/yuu1111/configs.git",
8
- "directory": "packages/biome-config"
8
+ "directory": "packages/config/biome-config"
9
9
  },
10
10
  "exports": {
11
11
  "./biome": "./base.json",
package/react.json CHANGED
@@ -21,12 +21,16 @@
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
+ "noNestedTernary": "warn",
33
+ "useErrorCause": "warn"
30
34
  },
31
35
  "suspicious": {
32
36
  "noEmptyBlockStatements": "warn"