@sablier/devkit 1.4.0 → 1.5.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/ui.jsonc +64 -3
- package/just/base.just +11 -5
- package/package.json +1 -1
package/biome/ui.jsonc
CHANGED
|
@@ -1,23 +1,57 @@
|
|
|
1
1
|
// Sablier Devkit UI configuration for Biome v2
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
// Tailwind CSS class sorting, and CSS modules support.
|
|
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
|
+
// }
|
|
5
15
|
{
|
|
6
16
|
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
|
|
7
|
-
"
|
|
17
|
+
"assist": {
|
|
18
|
+
"enabled": true,
|
|
19
|
+
"actions": {
|
|
20
|
+
"source": {
|
|
21
|
+
"organizeImports": "on",
|
|
22
|
+
"useSortedKeys": "on"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
8
26
|
"css": {
|
|
9
27
|
"parser": {
|
|
10
28
|
"cssModules": true,
|
|
11
29
|
"tailwindDirectives": true
|
|
12
30
|
}
|
|
13
31
|
},
|
|
32
|
+
"files": {
|
|
33
|
+
"maxSize": 5242880 // 5MB
|
|
34
|
+
},
|
|
35
|
+
"formatter": {
|
|
36
|
+
"enabled": true,
|
|
37
|
+
"formatWithErrors": true,
|
|
38
|
+
"indentStyle": "space",
|
|
39
|
+
"lineWidth": 100
|
|
40
|
+
},
|
|
14
41
|
"linter": {
|
|
42
|
+
"enabled": true,
|
|
15
43
|
"rules": {
|
|
16
44
|
"a11y": {
|
|
17
45
|
"noSvgWithoutTitle": "off",
|
|
18
46
|
"useKeyWithClickEvents": "off"
|
|
19
47
|
},
|
|
48
|
+
"correctness": {
|
|
49
|
+
"noUnusedImports": "off",
|
|
50
|
+
"noUnusedVariables": "error",
|
|
51
|
+
"useExhaustiveDependencies": "error"
|
|
52
|
+
},
|
|
20
53
|
"nursery": {
|
|
54
|
+
"noFloatingPromises": "error",
|
|
21
55
|
"useSortedClasses": {
|
|
22
56
|
"fix": "safe",
|
|
23
57
|
"level": "warn",
|
|
@@ -26,7 +60,34 @@
|
|
|
26
60
|
"functions": ["clsx", "cva", "cn", "tv", "tw", "tw.*"]
|
|
27
61
|
}
|
|
28
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"recommended": true,
|
|
65
|
+
"style": {
|
|
66
|
+
"useImportType": {
|
|
67
|
+
"level": "warn",
|
|
68
|
+
"options": {
|
|
69
|
+
"style": "separatedType"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"useTemplate": "off"
|
|
29
73
|
}
|
|
30
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
|
|
31
92
|
}
|
|
32
93
|
}
|
package/just/base.just
CHANGED
|
@@ -77,7 +77,7 @@ alias bw := biome-write
|
|
|
77
77
|
@full-check:
|
|
78
78
|
just _run-with-status biome-check
|
|
79
79
|
just _run-with-status prettier-check
|
|
80
|
-
just _run-with-status
|
|
80
|
+
just _run-with-status type-check
|
|
81
81
|
echo ""
|
|
82
82
|
echo '{{ GREEN }}All code checks passed!{{ NORMAL }}'
|
|
83
83
|
alias fc := full-check
|
|
@@ -120,12 +120,18 @@ alias pc := prettier-check
|
|
|
120
120
|
na prettier --write --cache --no-error-on-unmatched-pattern {{ globs }}
|
|
121
121
|
alias pw := prettier-write
|
|
122
122
|
|
|
123
|
-
# Type check with TypeScript
|
|
123
|
+
# Type check with TypeScript (tsgo default, falls back to tsc if unavailable)
|
|
124
124
|
[group("checks")]
|
|
125
125
|
[no-cd]
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
[script("bash")]
|
|
127
|
+
type-check compiler="tsgo" project="tsconfig.json":
|
|
128
|
+
cmd="{{ compiler }}"
|
|
129
|
+
if [[ "$cmd" == "tsgo" ]] && [[ ! -x "node_modules/.bin/tsgo" ]]; then
|
|
130
|
+
cmd="tsc"
|
|
131
|
+
fi
|
|
132
|
+
na "$cmd" --noEmit --project {{ project }}
|
|
133
|
+
alias tc := type-check
|
|
134
|
+
alias tsc-check := type-check
|
|
129
135
|
|
|
130
136
|
# Private recipe to run a check with formatted output
|
|
131
137
|
[no-cd]
|
package/package.json
CHANGED