@kcconfigs/biome 0.0.1

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/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@kcconfigs/biome",
3
+ "version": "0.0.1",
4
+ "description": "Common biome configuration for kc's",
5
+ "devDependencies": {
6
+ "@biomejs/biome": "2.3.8"
7
+ },
8
+ "peerDependencies": {
9
+ "@biomejs/biome": "^2.0.0"
10
+ },
11
+ "main": "./src/biome.default.json",
12
+ "exports": {
13
+ "./default": "./src/biome.default.json",
14
+ "./base": "./src/biome.base.json"
15
+ },
16
+ "license": "AGPL-3.0-only",
17
+ "homepage": "https://github.com/kc-workspace/kcws/tree/main/packages/@kcconfigs/biome",
18
+ "repository": {
19
+ "type": "git",
20
+ "directory": "@kcconfigs/biome",
21
+ "url": "git+https://github.com/kc-workspace/kcws.git"
22
+ },
23
+ "author": {
24
+ "name": "Kamontat Chantrachirathumrong",
25
+ "email": "kcws@kc.in.th",
26
+ "url": "https://github.com/kamontat"
27
+ },
28
+ "keywords": [
29
+ "linter",
30
+ "formatter",
31
+ "config",
32
+ "biome"
33
+ ],
34
+ "files": [
35
+ "CHANGELOG.json",
36
+ "CHANGELOG.md",
37
+ "src"
38
+ ],
39
+ "engines": {
40
+ "node": ">=14"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "fix": "biome check --fix --unsafe",
47
+ "format": "biome format --fix",
48
+ "format:check": "biome format",
49
+ "lint": "biome lint --fix --unsafe",
50
+ "lint:check": "biome lint"
51
+ }
52
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3
+ "root": false,
4
+ "vcs": {
5
+ "enabled": true,
6
+ "clientKind": "git",
7
+ "useIgnoreFile": true,
8
+ "defaultBranch": "main"
9
+ },
10
+ "files": {
11
+ "ignoreUnknown": false
12
+ },
13
+ "formatter": {
14
+ "enabled": true,
15
+ "indentStyle": "tab",
16
+ "indentWidth": 2,
17
+ "lineWidth": 120,
18
+ "attributePosition": "auto",
19
+ "lineEnding": "lf"
20
+ },
21
+ "linter": {
22
+ "enabled": true,
23
+ "domains": {
24
+ "test": "recommended"
25
+ },
26
+ "rules": {
27
+ "recommended": true
28
+ }
29
+ },
30
+ "assist": {
31
+ "enabled": true,
32
+ "actions": {
33
+ "source": {
34
+ "recommended": true,
35
+ "organizeImports": {
36
+ "level": "on",
37
+ "options": {
38
+ "identifierOrder": "natural",
39
+ "groups": [
40
+ { "type": true },
41
+ ":BLANK_LINE:",
42
+ [":NODE:", ":BUN:"],
43
+ [":PACKAGE:", ":PACKAGE_WITH_PROTOCOL:", ":URL:"],
44
+ ":BLANK_LINE:",
45
+ [":ALIAS:", ":PATH:"]
46
+ ]
47
+ }
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "javascript": {
53
+ "formatter": {
54
+ "quoteStyle": "double",
55
+ "semicolons": "asNeeded",
56
+ "bracketSameLine": true
57
+ }
58
+ },
59
+ "html": {
60
+ "formatter": {
61
+ "bracketSameLine": true
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3
+ "extends": ["./base/biome.json"]
4
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3
+ "extends": ["./biome.base.json"],
4
+ "files": {
5
+ "includes": [
6
+ "**",
7
+ "!reports/test-results",
8
+ "!reports/coverage",
9
+ "!dist",
10
+ "!dist.*",
11
+ "!.*.old"
12
+ ]
13
+ },
14
+ "formatter": {
15
+ "useEditorconfig": true
16
+ }
17
+ }