biome-config-oy 1.0.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/LICENSE +21 -0
- package/README.md +33 -0
- package/biome.json +49 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Onur Yıldırım
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# biome-config-oy
|
|
2
|
+
|
|
3
|
+
Shared [Biome](https://biomejs.dev) (lint + format) base config. Replaces the
|
|
4
|
+
retired `eslint-config-oy` (the projects moved from ESLint to Biome).
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```jsonc
|
|
9
|
+
// biome.json
|
|
10
|
+
{
|
|
11
|
+
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
|
|
12
|
+
"extends": ["biome-config-oy"],
|
|
13
|
+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
|
14
|
+
"files": { "includes": ["src/**/*.ts", "test/**/*.ts", "*.ts"] }
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Install alongside Biome:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npm i -D @biomejs/biome biome-config-oy
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Conventions
|
|
25
|
+
|
|
26
|
+
- 2-space indent, single quotes, semicolons, no trailing commas, width 100.
|
|
27
|
+
- `recommended` rules on, with project-style exceptions disabled
|
|
28
|
+
(`noExplicitAny`, `noImplicitAnyLet`, `noConfusingVoidType`, `noSparseArray`,
|
|
29
|
+
`useTemplate`, `noNonNullAssertion`, `noParameterAssign`, `noArguments`,
|
|
30
|
+
`noUnusedFunctionParameters`, `noVoidTypeReturn`).
|
|
31
|
+
- Import organization enabled.
|
|
32
|
+
|
|
33
|
+
Each project sets its own `files.includes` and `vcs`.
|
package/biome.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
|
|
3
|
+
"formatter": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"indentStyle": "space",
|
|
6
|
+
"indentWidth": 2,
|
|
7
|
+
"lineWidth": 100
|
|
8
|
+
},
|
|
9
|
+
"linter": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"rules": {
|
|
12
|
+
"recommended": true,
|
|
13
|
+
"suspicious": {
|
|
14
|
+
"noExplicitAny": "off",
|
|
15
|
+
"noImplicitAnyLet": "off",
|
|
16
|
+
"noConfusingVoidType": "off",
|
|
17
|
+
"noSparseArray": "off"
|
|
18
|
+
},
|
|
19
|
+
"style": {
|
|
20
|
+
"useTemplate": "off",
|
|
21
|
+
"noNonNullAssertion": "off",
|
|
22
|
+
"noParameterAssign": "off"
|
|
23
|
+
},
|
|
24
|
+
"complexity": {
|
|
25
|
+
"noBannedTypes": "off",
|
|
26
|
+
"noArguments": "off"
|
|
27
|
+
},
|
|
28
|
+
"correctness": {
|
|
29
|
+
"noUnusedFunctionParameters": "off",
|
|
30
|
+
"noUnusedPrivateClassMembers": "off",
|
|
31
|
+
"noVoidTypeReturn": "off"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"javascript": {
|
|
36
|
+
"formatter": {
|
|
37
|
+
"quoteStyle": "single",
|
|
38
|
+
"semicolons": "always",
|
|
39
|
+
"trailingCommas": "none"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"assist": {
|
|
43
|
+
"actions": {
|
|
44
|
+
"source": {
|
|
45
|
+
"organizeImports": "on"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "biome-config-oy",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared Biome (lint + format) config for my projects.",
|
|
5
|
+
"repository": "onury/biome-config-oy",
|
|
6
|
+
"author": "Onur Yildirim <onur@cutepilot.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "biome.json",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"biome.json",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"biome",
|
|
19
|
+
"biome-config",
|
|
20
|
+
"lint",
|
|
21
|
+
"linter",
|
|
22
|
+
"format",
|
|
23
|
+
"formatter",
|
|
24
|
+
"config"
|
|
25
|
+
],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@biomejs/biome": ">=2.5.0"
|
|
28
|
+
}
|
|
29
|
+
}
|