@seanningtatum/software-factory-biome-config 0.0.0-stage → 0.3.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/biome.json +131 -0
- package/package.json +15 -4
- package/README.md +0 -3
package/biome.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"root": false,
|
|
4
|
+
"vcs": {
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true
|
|
8
|
+
},
|
|
9
|
+
"formatter": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"indentStyle": "space",
|
|
12
|
+
"indentWidth": 2,
|
|
13
|
+
"lineWidth": 100
|
|
14
|
+
},
|
|
15
|
+
"javascript": {
|
|
16
|
+
"formatter": {
|
|
17
|
+
"quoteStyle": "double",
|
|
18
|
+
"semicolons": "always"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"assist": {
|
|
22
|
+
"actions": {
|
|
23
|
+
"source": {
|
|
24
|
+
"organizeImports": "on"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"linter": {
|
|
29
|
+
"enabled": true,
|
|
30
|
+
"rules": {
|
|
31
|
+
"preset": "recommended",
|
|
32
|
+
"complexity": {
|
|
33
|
+
"noExcessiveCognitiveComplexity": {
|
|
34
|
+
"level": "error",
|
|
35
|
+
"options": {
|
|
36
|
+
"maxAllowedComplexity": 15
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"correctness": {
|
|
41
|
+
"noUnusedImports": "error",
|
|
42
|
+
"noUnusedVariables": "error"
|
|
43
|
+
},
|
|
44
|
+
"performance": {
|
|
45
|
+
"noBarrelFile": "error",
|
|
46
|
+
"noReExportAll": "error"
|
|
47
|
+
},
|
|
48
|
+
"style": {
|
|
49
|
+
"noDefaultExport": "error",
|
|
50
|
+
"useImportType": "error",
|
|
51
|
+
"useExportType": "error",
|
|
52
|
+
"useFilenamingConvention": {
|
|
53
|
+
"level": "error",
|
|
54
|
+
"options": {
|
|
55
|
+
"filenameCases": ["kebab-case"],
|
|
56
|
+
"requireAscii": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"noRestrictedImports": {
|
|
60
|
+
"level": "error",
|
|
61
|
+
"options": {
|
|
62
|
+
"paths": {
|
|
63
|
+
"zod": "Use Effect Schema (effect/Schema) for validation.",
|
|
64
|
+
"posthog-js": "Send events through the Analytics service; only its adapter talks to PostHog.",
|
|
65
|
+
"posthog-node": "Send events through the Analytics service; only its adapter talks to PostHog.",
|
|
66
|
+
"@sentry/browser": "Report errors through the ErrorReporter service.",
|
|
67
|
+
"@sentry/cloudflare": "Report errors through the ErrorReporter service."
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"suspicious": {
|
|
73
|
+
"noConsole": "error",
|
|
74
|
+
"useArraySortCompare": "error",
|
|
75
|
+
"noExplicitAny": "error"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"overrides": [
|
|
80
|
+
{
|
|
81
|
+
"includes": [
|
|
82
|
+
"**/routes/**",
|
|
83
|
+
"**/*.config.ts",
|
|
84
|
+
"**/vite.config.ts",
|
|
85
|
+
"**/server.ts",
|
|
86
|
+
"**/scripts/**",
|
|
87
|
+
"**/bin/**"
|
|
88
|
+
],
|
|
89
|
+
"linter": {
|
|
90
|
+
"rules": {
|
|
91
|
+
"style": {
|
|
92
|
+
"noDefaultExport": "off"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"includes": ["**/routes/**", "**/routeTree.gen.ts", "**/scripts/**"],
|
|
99
|
+
"linter": {
|
|
100
|
+
"rules": {
|
|
101
|
+
"style": {
|
|
102
|
+
"useFilenamingConvention": "off"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"includes": [
|
|
109
|
+
"**/scripts/**",
|
|
110
|
+
"**/bin/**",
|
|
111
|
+
"**/apps/cli/**",
|
|
112
|
+
"**/packages/lint/**",
|
|
113
|
+
"**/packages/blocks/**",
|
|
114
|
+
"**/e2e/**",
|
|
115
|
+
"**/*.test.ts"
|
|
116
|
+
],
|
|
117
|
+
"linter": {
|
|
118
|
+
"rules": {
|
|
119
|
+
"suspicious": {
|
|
120
|
+
"noConsole": "off"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"css": {
|
|
127
|
+
"parser": {
|
|
128
|
+
"tailwindDirectives": true
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanningtatum/software-factory-biome-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Shared Biome rules for software-factory projects",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"biome.json"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./biome.json",
|
|
12
|
+
"./biome": "./biome.json"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@biomejs/biome": "^2.6.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/README.md
DELETED