@sablier/devkit 1.3.5 → 1.4.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/{biome.jsonc → biome/base.jsonc} +1 -7
- package/biome/ui.jsonc +93 -0
- package/package.json +5 -4
|
@@ -26,12 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"css": {
|
|
30
|
-
"parser": {
|
|
31
|
-
"cssModules": true,
|
|
32
|
-
"tailwindDirectives": true
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
29
|
"files": {
|
|
36
30
|
"maxSize": 5242880 // 5MB
|
|
37
31
|
},
|
|
@@ -39,7 +33,7 @@
|
|
|
39
33
|
"enabled": true,
|
|
40
34
|
"formatWithErrors": true,
|
|
41
35
|
"indentStyle": "space",
|
|
42
|
-
"lineWidth":
|
|
36
|
+
"lineWidth": 100
|
|
43
37
|
},
|
|
44
38
|
"linter": {
|
|
45
39
|
"enabled": true,
|
package/biome/ui.jsonc
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// Sablier Devkit UI configuration for Biome v2
|
|
2
|
+
//
|
|
3
|
+
// Standalone configuration with base rules plus UI-specific rules for
|
|
4
|
+
// accessibility, Tailwind CSS class sorting, and CSS modules support.
|
|
5
|
+
//
|
|
6
|
+
// IMPORTANT: Consumers must add their own `files.includes` patterns to specify
|
|
7
|
+
// which files to lint and format. For example:
|
|
8
|
+
//
|
|
9
|
+
// {
|
|
10
|
+
// "extends": ["@sablier/devkit/biome/ui"],
|
|
11
|
+
// "files": {
|
|
12
|
+
// "includes": ["**/*.{css,js,jsx,json,ts,tsx}", "!node_modules"]
|
|
13
|
+
// }
|
|
14
|
+
// }
|
|
15
|
+
{
|
|
16
|
+
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
|
|
17
|
+
"assist": {
|
|
18
|
+
"enabled": true,
|
|
19
|
+
"actions": {
|
|
20
|
+
"source": {
|
|
21
|
+
"organizeImports": "on",
|
|
22
|
+
"useSortedKeys": "on"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"css": {
|
|
27
|
+
"parser": {
|
|
28
|
+
"cssModules": true,
|
|
29
|
+
"tailwindDirectives": true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": {
|
|
33
|
+
"maxSize": 5242880 // 5MB
|
|
34
|
+
},
|
|
35
|
+
"formatter": {
|
|
36
|
+
"enabled": true,
|
|
37
|
+
"formatWithErrors": true,
|
|
38
|
+
"indentStyle": "space",
|
|
39
|
+
"lineWidth": 100
|
|
40
|
+
},
|
|
41
|
+
"linter": {
|
|
42
|
+
"enabled": true,
|
|
43
|
+
"rules": {
|
|
44
|
+
"a11y": {
|
|
45
|
+
"noSvgWithoutTitle": "off",
|
|
46
|
+
"useKeyWithClickEvents": "off"
|
|
47
|
+
},
|
|
48
|
+
"correctness": {
|
|
49
|
+
"noUnusedImports": "off",
|
|
50
|
+
"noUnusedVariables": "error",
|
|
51
|
+
"useExhaustiveDependencies": "error"
|
|
52
|
+
},
|
|
53
|
+
"nursery": {
|
|
54
|
+
"noFloatingPromises": "error",
|
|
55
|
+
"useSortedClasses": {
|
|
56
|
+
"fix": "safe",
|
|
57
|
+
"level": "warn",
|
|
58
|
+
"options": {
|
|
59
|
+
"attributes": ["classList"],
|
|
60
|
+
"functions": ["clsx", "cva", "cn", "tv", "tw", "tw.*"]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"recommended": true,
|
|
65
|
+
"style": {
|
|
66
|
+
"useImportType": {
|
|
67
|
+
"level": "warn",
|
|
68
|
+
"options": {
|
|
69
|
+
"style": "separatedType"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"useTemplate": "off"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"overrides": [
|
|
77
|
+
{
|
|
78
|
+
"assist": {
|
|
79
|
+
"actions": {
|
|
80
|
+
"source": {
|
|
81
|
+
"useSortedKeys": "off"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"includes": ["**/*.{json,json5,jsonc}"]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"vcs": {
|
|
89
|
+
"clientKind": "git",
|
|
90
|
+
"enabled": true,
|
|
91
|
+
"useIgnoreFile": true
|
|
92
|
+
}
|
|
93
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Configuration files and reusable scripts for Sablier repositories",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.4.1",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Sablier Labs Ltd",
|
|
9
9
|
"url": "https://sablier.com"
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
"url": "https://github.com/sablier-labs/devkit/issues"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@biomejs/biome": "^2.3.
|
|
15
|
+
"@biomejs/biome": "^2.3.7",
|
|
16
16
|
"prettier": "^3.6.2"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
|
-
"./biome": "./biome.jsonc",
|
|
19
|
+
"./biome": "./biome/base.jsonc",
|
|
20
|
+
"./biome/ui": "./biome/ui.jsonc",
|
|
20
21
|
"./prettier": "./.prettierrc.json",
|
|
21
22
|
"./tsconfig/base": "./tsconfig/base.json",
|
|
22
23
|
"./tsconfig/build": "./tsconfig/build.json",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"node": ">=20"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
|
-
"biome
|
|
30
|
+
"biome/",
|
|
30
31
|
".prettierrc.json",
|
|
31
32
|
"just/",
|
|
32
33
|
"tsconfig/"
|