@sablier/devkit 1.4.0 → 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.
Files changed (2) hide show
  1. package/biome/ui.jsonc +64 -3
  2. 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
- // Extends the base configuration with UI-specific rules for accessibility,
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
- "extends": ["./base.jsonc"],
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/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.4.0",
6
+ "version": "1.4.1",
7
7
  "author": {
8
8
  "name": "Sablier Labs Ltd",
9
9
  "url": "https://sablier.com"