@yuu1111/biome-config 2.0.1 → 2.0.2
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 +94 -62
- package/README.md +92 -62
- package/package.json +2 -2
package/README.ja.md
CHANGED
|
@@ -12,66 +12,79 @@ bun add -D @yuu1111/biome-config
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
|
|
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": [
|
|
20
|
+
"extends": [
|
|
21
|
+
"@yuu1111/biome-config/biome",
|
|
22
|
+
"@yuu1111/biome-config/plugins/core"
|
|
23
|
+
]
|
|
21
24
|
}
|
|
22
25
|
```
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
+
| `performance.noBarrelFile`、`performance.noReExportAll` | `error` |
|
|
51
|
+
| `complexity.noExcessiveCognitiveComplexity` | `warn` |
|
|
52
|
+
| `style.noNestedTernary` | `warn` |
|
|
53
|
+
| `suspicious.noEmptyBlockStatements` | `warn` |
|
|
33
54
|
|
|
34
55
|
```json
|
|
35
56
|
{
|
|
36
57
|
"$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
|
|
37
|
-
"extends": ["@yuu1111/biome-config/
|
|
58
|
+
"extends": ["@yuu1111/biome-config/biome"]
|
|
38
59
|
}
|
|
39
60
|
```
|
|
40
61
|
|
|
41
|
-
###
|
|
62
|
+
### react
|
|
42
63
|
|
|
43
|
-
|
|
64
|
+
CSSのformatterとlinterを足し、Tailwind directiveを有効にする
|
|
44
65
|
|
|
45
66
|
```json
|
|
46
67
|
{
|
|
47
68
|
"$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
|
-
]
|
|
69
|
+
"extends": ["@yuu1111/biome-config/react"]
|
|
53
70
|
}
|
|
54
71
|
```
|
|
55
72
|
|
|
56
|
-
|
|
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の方が明確な箇所が対象
|
|
73
|
+
### plugins/core
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
| Rule | 重大度 | Default | 検出対象 |
|
|
76
|
+
|------|----------|---------|---------|
|
|
77
|
+
| `no-reexports` | warn | false | 既存bindingを転送するだけのexport(`export type Alias = Imported` など)、`export ... from` の形はbaseのbarrel file ruleが担当する |
|
|
78
|
+
| `no-incomplete-implementation` | error, warn | false | placeholderのthrowはerror、logだけのcatch、`null`・`[]`・`{}` へ置き換えたrejected promiseとcatchしたerrorはwarn |
|
|
79
|
+
| `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
|
+
| `no-unsafe-errno-assertion` | warn | false | catchした値を検証せず `NodeJS.ErrnoException` のassertion経由で `code` を読むコード |
|
|
81
|
+
| `no-meaningless-test` | error, warn | false | identifierやliteralを自分自身と比較する `toBe`・`toEqual`・`toStrictEqual` はerror、空の `test`・`it` callbackはwarn |
|
|
82
|
+
| `no-useless-abstraction` | warn | false | 同じ引数を別の関数へ渡すだけの名前付き単一引数arrow function(async版も含む) |
|
|
83
|
+
| `no-ternary-statement` | warn | false | `flag ? enable() : disable()` のような文としてのternary |
|
|
73
84
|
|
|
74
|
-
|
|
85
|
+
ruleは意図的に狭く保つ
|
|
86
|
+
検証、変換、log、cache、transaction開始などの処理を行うwrapperはpass-through wrapperとして報告しない
|
|
87
|
+
準備やassertionのあるtestは空として扱わない
|
|
75
88
|
|
|
76
89
|
```ts
|
|
77
90
|
throw new Error("Not implemented")
|
|
@@ -96,53 +109,72 @@ flag ? enable() : disable()
|
|
|
96
109
|
cacheRequest.catch(() => null)
|
|
97
110
|
```
|
|
98
111
|
|
|
99
|
-
|
|
112
|
+
### plugins/network
|
|
100
113
|
|
|
101
|
-
|
|
102
|
-
|
|
114
|
+
| Rule | 重大度 | Default | 検出対象 |
|
|
115
|
+
|------|----------|---------|---------|
|
|
116
|
+
| `require-fetch-abort-signal` | warn | false | `signal` optionを省いた `fetch` 呼び出し |
|
|
117
|
+
| `require-abort-timeout-cleanup` | warn | false | `setTimeout` callbackで `fetch` をabortしながらそのtimerをclearしない関数 |
|
|
103
118
|
|
|
104
|
-
|
|
119
|
+
### plugins/discord
|
|
105
120
|
|
|
106
|
-
|
|
121
|
+
| Rule | 重大度 | Default | 検出対象 |
|
|
122
|
+
|------|----------|---------|---------|
|
|
123
|
+
| `no-unsafe-dynamic-discord-message` | warn | false | 明示的な `allowedMentions` policy無しで送る動的なmessage内容 |
|
|
107
124
|
|
|
108
|
-
|
|
125
|
+
## Scoped rules
|
|
109
126
|
|
|
110
|
-
|
|
127
|
+
| Rule | 重大度 | Default | 検出対象 |
|
|
128
|
+
|------|----------|---------|---------|
|
|
129
|
+
| `no-adapter-import` | error | false | `integrations/` か `adapters/` を含むpathのimport |
|
|
130
|
+
| `no-direct-response` | error | false | 対象層での `new Response(...)`、`Response.json(...)`、`Response.redirect(...)` |
|
|
131
|
+
|
|
132
|
+
対象層を選ぶ `includes` を必要とするため共有presetでは持てない
|
|
133
|
+
Project自身の設定で宣言する
|
|
134
|
+
|
|
135
|
+
### no-adapter-import
|
|
111
136
|
|
|
112
137
|
```json
|
|
113
138
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
139
|
+
"plugins": [
|
|
140
|
+
{
|
|
141
|
+
"path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
|
|
142
|
+
"includes": ["**/src/modules/authorization/**"]
|
|
143
|
+
}
|
|
144
|
+
]
|
|
120
145
|
}
|
|
121
146
|
```
|
|
122
147
|
|
|
123
|
-
pluginは `includes` に一致したfile
|
|
148
|
+
pluginは `includes` に一致したfileだけで走る
|
|
149
|
+
そのためadapter側と、統合層へ到達してよい層では同じimportが有効なままになる
|
|
150
|
+
patternはfileのfull pathと照合されるため、`src/modules/authorization` のようなpathへ一致させるには `**/` から始める
|
|
124
151
|
|
|
125
|
-
|
|
152
|
+
pluginの `path` はfile pathとして解決される
|
|
153
|
+
そのため上記のように `node_modules` 経由のpathを書く
|
|
154
|
+
`@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit` のようなpackage specifierはplugin packageとして解決され、`.grit` fileへは到達しない
|
|
155
|
+
|
|
156
|
+
統合moduleへ到達してよい層はpatternから外す
|
|
157
|
+
自身のadapter実装を `adapters/` に置くmoduleは、そのディレクトリを除外しないとruleがadapter自身を報告する
|
|
126
158
|
|
|
127
159
|
```json
|
|
128
160
|
{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
161
|
+
"includes": [
|
|
162
|
+
"**/src/modules/authorization/**",
|
|
163
|
+
"!**/src/modules/authorization/adapters/**"
|
|
164
|
+
]
|
|
133
165
|
}
|
|
134
166
|
```
|
|
135
167
|
|
|
136
|
-
|
|
168
|
+
### no-direct-response
|
|
137
169
|
|
|
138
170
|
```json
|
|
139
171
|
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
172
|
+
"plugins": [
|
|
173
|
+
{
|
|
174
|
+
"path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
|
|
175
|
+
"includes": ["**/src/worker/routes/**"]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
146
178
|
}
|
|
147
179
|
```
|
|
148
180
|
|
package/README.md
CHANGED
|
@@ -12,66 +12,79 @@ bun add -D @yuu1111/biome-config
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
|
|
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": [
|
|
20
|
+
"extends": [
|
|
21
|
+
"@yuu1111/biome-config/biome",
|
|
22
|
+
"@yuu1111/biome-config/plugins/core"
|
|
23
|
+
]
|
|
21
24
|
}
|
|
22
25
|
```
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
+
| `performance.noBarrelFile`, `performance.noReExportAll` | `error` |
|
|
51
|
+
| `complexity.noExcessiveCognitiveComplexity` | `warn` |
|
|
52
|
+
| `style.noNestedTernary` | `warn` |
|
|
53
|
+
| `suspicious.noEmptyBlockStatements` | `warn` |
|
|
33
54
|
|
|
34
55
|
```json
|
|
35
56
|
{
|
|
36
57
|
"$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
|
|
37
|
-
"extends": ["@yuu1111/biome-config/
|
|
58
|
+
"extends": ["@yuu1111/biome-config/biome"]
|
|
38
59
|
}
|
|
39
60
|
```
|
|
40
61
|
|
|
41
|
-
###
|
|
62
|
+
### react
|
|
42
63
|
|
|
43
|
-
|
|
64
|
+
Adds the CSS formatter and linter, with the Tailwind directives enabled.
|
|
44
65
|
|
|
45
66
|
```json
|
|
46
67
|
{
|
|
47
68
|
"$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
|
-
]
|
|
69
|
+
"extends": ["@yuu1111/biome-config/react"]
|
|
53
70
|
}
|
|
54
71
|
```
|
|
55
72
|
|
|
56
|
-
|
|
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
|
|
73
|
+
### plugins/core
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
| Rule | Severity | Default | Detects |
|
|
76
|
+
|------|----------|---------|---------|
|
|
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 |
|
|
78
|
+
| `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
|
+
| `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
|
+
| `no-unsafe-errno-assertion` | warn | false | Reading `code` through a `NodeJS.ErrnoException` assertion without validating the caught value |
|
|
81
|
+
| `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 |
|
|
82
|
+
| `no-useless-abstraction` | warn | false | A named single-argument arrow function that only passes the same argument to another function, including the async form |
|
|
83
|
+
| `no-ternary-statement` | warn | false | A ternary operator used as a standalone statement, such as `flag ? enable() : disable()` |
|
|
73
84
|
|
|
74
|
-
|
|
85
|
+
The rules stay narrow.
|
|
86
|
+
A wrapper that validates, transforms, logs, caches, starts a transaction, or performs another operation is not reported as a pass-through wrapper.
|
|
87
|
+
A test with setup or assertions is not treated as empty.
|
|
75
88
|
|
|
76
89
|
```ts
|
|
77
90
|
throw new Error("Not implemented")
|
|
@@ -96,53 +109,70 @@ Suppress an intentional exception with a reason:
|
|
|
96
109
|
cacheRequest.catch(() => null)
|
|
97
110
|
```
|
|
98
111
|
|
|
99
|
-
|
|
112
|
+
### plugins/network
|
|
100
113
|
|
|
101
|
-
|
|
102
|
-
|
|
114
|
+
| Rule | Severity | Default | Detects |
|
|
115
|
+
|------|----------|---------|---------|
|
|
116
|
+
| `require-fetch-abort-signal` | warn | false | A `fetch` call that omits the `signal` option |
|
|
117
|
+
| `require-abort-timeout-cleanup` | warn | false | A function that aborts a `fetch` request from a `setTimeout` callback but never clears the timer |
|
|
103
118
|
|
|
104
|
-
|
|
119
|
+
### plugins/discord
|
|
105
120
|
|
|
106
|
-
|
|
121
|
+
| Rule | Severity | Default | Detects |
|
|
122
|
+
|------|----------|---------|---------|
|
|
123
|
+
| `no-unsafe-dynamic-discord-message` | warn | false | Dynamic message content sent without an explicit `allowedMentions` policy |
|
|
107
124
|
|
|
108
|
-
|
|
125
|
+
## Scoped rules
|
|
109
126
|
|
|
110
|
-
|
|
127
|
+
| Rule | Severity | Default | Detects |
|
|
128
|
+
|------|----------|---------|---------|
|
|
129
|
+
| `no-adapter-import` | error | false | An import of a path that contains `integrations/` or `adapters/` |
|
|
130
|
+
| `no-direct-response` | error | false | `new Response(...)`, `Response.json(...)`, or `Response.redirect(...)` in the scoped layer |
|
|
131
|
+
|
|
132
|
+
They need `includes` to name the layer they protect, so a shared preset cannot carry them.
|
|
133
|
+
Declare them in the project's own configuration.
|
|
134
|
+
|
|
135
|
+
### no-adapter-import
|
|
111
136
|
|
|
112
137
|
```json
|
|
113
138
|
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
139
|
+
"plugins": [
|
|
140
|
+
{
|
|
141
|
+
"path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit",
|
|
142
|
+
"includes": ["**/src/modules/authorization/**"]
|
|
143
|
+
}
|
|
144
|
+
]
|
|
120
145
|
}
|
|
121
146
|
```
|
|
122
147
|
|
|
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.
|
|
148
|
+
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.
|
|
149
|
+
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
150
|
|
|
125
|
-
|
|
151
|
+
Biome resolves a plugin `path` as a file path, so reference the rule through `node_modules` as shown above.
|
|
152
|
+
A package specifier such as `@yuu1111/biome-config/plugins/scoped/no-adapter-import.grit` is resolved as a plugin package instead.
|
|
153
|
+
|
|
154
|
+
Leave the layer that is allowed to reach the integration modules out of the pattern.
|
|
155
|
+
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
156
|
|
|
127
157
|
```json
|
|
128
158
|
{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
159
|
+
"includes": [
|
|
160
|
+
"**/src/modules/authorization/**",
|
|
161
|
+
"!**/src/modules/authorization/adapters/**"
|
|
162
|
+
]
|
|
133
163
|
}
|
|
134
164
|
```
|
|
135
165
|
|
|
136
|
-
|
|
166
|
+
### no-direct-response
|
|
137
167
|
|
|
138
168
|
```json
|
|
139
169
|
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
170
|
+
"plugins": [
|
|
171
|
+
{
|
|
172
|
+
"path": "./node_modules/@yuu1111/biome-config/plugins/scoped/no-direct-response.grit",
|
|
173
|
+
"includes": ["**/src/worker/routes/**"]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
146
176
|
}
|
|
147
177
|
```
|
|
148
178
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuu1111/biome-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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",
|