@get-coral/biome-config 0.2.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.
Files changed (3) hide show
  1. package/README.md +22 -0
  2. package/base.jsonc +59 -0
  3. package/package.json +20 -0
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @get-coral/biome-config
2
+
3
+ Shared Biome defaults used across Coral repositories.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add -D @get-coral/biome-config
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ In your repository `biome.json`:
14
+
15
+ ```json
16
+ {
17
+ "$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
18
+ "extends": ["./node_modules/@get-coral/biome-config/base.jsonc"]
19
+ }
20
+ ```
21
+
22
+ Add repository-specific includes and overrides in your local `biome.json`.
package/base.jsonc ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "formatter": {
3
+ "enabled": true,
4
+ "lineWidth": 100,
5
+ "lineEnding": "lf"
6
+ },
7
+ "assist": {
8
+ "actions": {
9
+ "source": {
10
+ "organizeImports": "on"
11
+ }
12
+ }
13
+ },
14
+ "linter": {
15
+ "enabled": true,
16
+ "rules": {
17
+ "recommended": true,
18
+ "suspicious": {
19
+ "noDebugger": "error",
20
+ "noConsole": "warn",
21
+ "noDoubleEquals": "warn"
22
+ },
23
+ "style": {
24
+ "useConst": "error",
25
+ "useTemplate": "warn"
26
+ },
27
+ "complexity": {
28
+ "noExcessiveCognitiveComplexity": {
29
+ "level": "warn",
30
+ "options": {
31
+ "maxAllowedComplexity": 18
32
+ }
33
+ }
34
+ }
35
+ }
36
+ },
37
+ "javascript": {
38
+ "formatter": {
39
+ "quoteStyle": "double",
40
+ "jsxQuoteStyle": "double",
41
+ "trailingCommas": "all",
42
+ "semicolons": "always",
43
+ "arrowParentheses": "always",
44
+ "bracketSpacing": true
45
+ }
46
+ },
47
+ "overrides": [
48
+ {
49
+ "includes": ["**/*.test.*", "**/*.spec.*"],
50
+ "linter": {
51
+ "rules": {
52
+ "suspicious": {
53
+ "noConsole": "off"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ]
59
+ }
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@get-coral/biome-config",
3
+ "version": "0.2.0",
4
+ "description": "Shared Biome configuration for Coral repositories",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "files": [
11
+ "base.jsonc",
12
+ "README.md"
13
+ ],
14
+ "exports": {
15
+ "./base.jsonc": "./base.jsonc"
16
+ },
17
+ "peerDependencies": {
18
+ "@biomejs/biome": ">=2.4.0"
19
+ }
20
+ }