@cetusprotocol/deepbook-utils 1.0.5 → 1.1.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/.editorconfig CHANGED
@@ -8,7 +8,7 @@ indent_style = space
8
8
 
9
9
  indent_size = 2
10
10
 
11
- end_of_line = lfgit
11
+ end_of_line = lf
12
12
 
13
13
  insert_final_newline = true
14
14
 
package/biome.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "files": {
9
+ "ignoreUnknown": false,
10
+ "ignore": [
11
+ "*.js",
12
+ "examples/**",
13
+ "dist/**",
14
+ "node_modules/**",
15
+ ".DS_Store",
16
+ ".env.local",
17
+ ".env.*.local",
18
+ "*.log*",
19
+ ".idea",
20
+ ".vscode",
21
+ "*.suo",
22
+ "*.ntvs*",
23
+ "*.njsproj",
24
+ "*.sln",
25
+ "*.sw?",
26
+ "package.json",
27
+ "package-lock.json",
28
+ "*.md"
29
+ ]
30
+ },
31
+ "formatter": {
32
+ "enabled": true,
33
+ "indentStyle": "space",
34
+ "indentWidth": 2,
35
+ "lineWidth": 140
36
+ },
37
+ "organizeImports": {
38
+ "enabled": true
39
+ },
40
+ "linter": {
41
+ "enabled": true,
42
+ "rules": {
43
+ "recommended": true,
44
+ "complexity": {
45
+ "noBannedTypes": "off",
46
+ "noUselessTypeConstraint": "off",
47
+ "noForEach": "off",
48
+ "useOptionalChain": "off",
49
+ "noStaticOnlyClass": "off",
50
+ "noUselessTernary": "off"
51
+ },
52
+ "correctness": {
53
+ "noUnusedImports": "warn",
54
+ "useExhaustiveDependencies": "off",
55
+ "noUnusedVariables": "off"
56
+ },
57
+ "style": {
58
+ "noParameterAssign": "off",
59
+ "noImplicitBoolean": "off",
60
+ "useConst": "warn",
61
+ "useNamingConvention": {
62
+ "level": "off"
63
+ },
64
+ "noUnusedTemplateLiteral": "off",
65
+ "noNonNullAssertion": "off",
66
+ "useTemplate": "off",
67
+ "useExponentiationOperator": "off",
68
+ "noUselessElse": "off",
69
+ "useDefaultParameterLast": "off"
70
+ },
71
+ "suspicious": {
72
+ "noExplicitAny": "off",
73
+ "noShadowRestrictedNames": "off",
74
+ "noArrayIndexKey": "off",
75
+ "noAssignInExpressions": "off",
76
+ "noEmptyBlockStatements": "off",
77
+ "noPrototypeBuiltins": "off",
78
+ "noImplicitAnyLet": "off"
79
+ },
80
+ "performance": {
81
+ "noDelete": "off"
82
+ }
83
+ }
84
+ },
85
+ "javascript": {
86
+ "formatter": {
87
+ "quoteStyle": "single",
88
+ "semicolons": "asNeeded",
89
+ "trailingCommas": "es5"
90
+ },
91
+ "globals": ["describe", "it", "test", "expect", "beforeEach", "afterEach", "beforeAll", "afterAll", "jest"]
92
+ },
93
+ "json": {
94
+ "formatter": {
95
+ "trailingCommas": "none"
96
+ }
97
+ }
98
+ }