adamantite 0.14.2 → 0.15.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/package.json CHANGED
@@ -1,32 +1,38 @@
1
1
  {
2
2
  "name": "adamantite",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "description": "An strict and opinionated set of presets for modern TypeScript applications",
5
5
  "keywords": [
6
6
  "adamantite",
7
- "typescript",
8
7
  "biome",
9
- "preset",
10
8
  "formatter",
11
- "linter"
9
+ "linter",
10
+ "preset",
11
+ "typescript"
12
12
  ],
13
13
  "homepage": "https://github.com/adelrodriguez/adamantite",
14
14
  "bugs": {
15
15
  "url": "https://github.com/adelrodriguez/adamantite/issues"
16
16
  },
17
+ "license": "MIT",
18
+ "author": "Adel Rodriguez <hello@adelrodriguez.com>",
17
19
  "repository": {
18
20
  "type": "git",
19
21
  "url": "https://github.com/adelrodriguez/adamantite.git"
20
22
  },
21
- "license": "MIT",
22
- "author": "Adel Rodriguez <hello@adelrodriguez.com>",
23
- "type": "module",
24
- "main": "presets/biome.jsonc",
25
23
  "bin": {
26
24
  "adamantite": "bin/adamantite"
27
25
  },
26
+ "files": [
27
+ "bin",
28
+ "dist",
29
+ "presets"
30
+ ],
31
+ "type": "module",
32
+ "main": "presets/biome.jsonc",
28
33
  "imports": {
29
- "#*": "./src/*"
34
+ "#*": "./src/*",
35
+ "#presets/*": "./presets/*"
30
36
  },
31
37
  "exports": {
32
38
  ".": "./presets/biome.jsonc",
@@ -34,27 +40,25 @@
34
40
  "./tsconfig": "./presets/tsconfig.json",
35
41
  "./presets/*": "./presets/*"
36
42
  },
37
- "files": [
38
- "bin",
39
- "dist",
40
- "presets"
41
- ],
42
43
  "scripts": {
43
44
  "build": "bunup",
44
45
  "bump:deps": "bun update --interactive",
45
- "check": "bun --bun run src/index.ts check",
46
+ "check": "bun run src/index.ts check",
46
47
  "dev": "bunup --watch",
47
- "fix": "bun --bun run src/index.ts fix",
48
+ "fix": "bun run src/index.ts fix",
49
+ "format": "bun run src/index.ts format",
48
50
  "release": "changeset publish",
49
51
  "test": "bun test",
52
+ "test:coverage": "bun test --coverage",
50
53
  "test:watch": "bun --watch test",
51
54
  "typecheck": "tsc --noEmit",
52
55
  "version": "changeset version"
53
56
  },
54
57
  "dependencies": {
55
- "@clack/prompts": "0.11.0",
58
+ "@clack/prompts": "1.0.0-alpha.9",
59
+ "consola": "3.4.2",
56
60
  "defu": "6.1.4",
57
- "faultier": "^1.0.4",
61
+ "faultier": "^1.1.0",
58
62
  "jsonc-parser": "3.3.1",
59
63
  "neverthrow": "8.2.0",
60
64
  "nypm": "0.6.2",
@@ -66,6 +70,7 @@
66
70
  "@types/bun": "1.3.5",
67
71
  "@types/yargs": "17.0.35",
68
72
  "bunup": "0.16.11",
73
+ "oxfmt": "0.20.0",
69
74
  "sherif": "1.9.0",
70
75
  "type-fest": "5.3.1",
71
76
  "typescript": "5.9.3"
@@ -1,25 +1,6 @@
1
1
  {
2
2
  "$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
3
3
  "root": false,
4
- // ---------------------------- FORMATTER -----------------------------
5
- // These are the generic settings that apply to all files in the project.
6
- "formatter": {
7
- "enabled": true,
8
-
9
- // Format the code even if there are errors.
10
- "formatWithErrors": true,
11
- // Use spaces for indentation.
12
- "indentStyle": "space",
13
- // Use 2 spaces for indentation.
14
- "indentWidth": 2,
15
- // Use the system line ending.
16
- "lineEnding": "auto",
17
- // The expected line width for most editors.
18
- "lineWidth": 100,
19
- // Don't force attributes to be on the same line as the element.
20
- "attributePosition": "auto",
21
- "bracketSpacing": true
22
- },
23
4
 
24
5
  // ------------------------------ ASSIST ------------------------------
25
6
  // Help with code organization.
@@ -28,23 +9,15 @@
28
9
 
29
10
  "actions": {
30
11
  "source": {
31
- // Sort imports in a certain order. We prioritize runtime imports
32
- // first (Bun, Node, etc.). Then external packages, and finally
33
- // aliased imports.
34
- "organizeImports": {
35
- "level": "on",
36
- "options": {
37
- "groups": [":BUN:", ":NODE:", ":PACKAGE:", ":ALIAS:"]
38
- }
39
- },
12
+ "organizeImports": "off",
40
13
  // Enforce that the attributes of a JSX element are sorted.
41
14
  "useSortedAttributes": "on",
42
15
  // Enforce that CSS properties are sorted.
43
16
  "useSortedProperties": "on",
44
17
  // Don't sort the keys of an object.
45
- "useSortedKeys": "off"
46
- }
47
- }
18
+ "useSortedKeys": "off",
19
+ },
20
+ },
48
21
  },
49
22
 
50
23
  // ------------------------------ LINTER ------------------------------
@@ -92,7 +65,7 @@
92
65
  "useValidLang": "error",
93
66
 
94
67
  // --------------------------- CSS ---------------------------
95
- "useGenericFontNames": "error"
68
+ "useGenericFontNames": "error",
96
69
  },
97
70
  "complexity": {
98
71
  // ----------------------- JavaScript ------------------------
@@ -105,8 +78,8 @@
105
78
  "noExcessiveCognitiveComplexity": {
106
79
  "level": "warn",
107
80
  "options": {
108
- "maxAllowedComplexity": 40
109
- }
81
+ "maxAllowedComplexity": 40,
82
+ },
110
83
  },
111
84
  "noExcessiveNestedTestSuites": "error",
112
85
  "noStaticOnlyClass": "error",
@@ -138,7 +111,7 @@
138
111
  "useWhile": "error",
139
112
 
140
113
  // --------------------------- CSS ---------------------------
141
- "noImportantStyles": "error"
114
+ "noImportantStyles": "error",
142
115
  },
143
116
  "correctness": {
144
117
  // ----------------------- JavaScript ------------------------
@@ -205,7 +178,7 @@
205
178
  "noUnknownPseudoElement": "error",
206
179
  "noUnknownTypeSelector": "error",
207
180
  "noUnknownUnit": "error",
208
- "noUnmatchableAnbSelector": "error"
181
+ "noUnmatchableAnbSelector": "error",
209
182
  },
210
183
  "nursery": {
211
184
  // ----------------------- JavaScript ------------------------
@@ -222,9 +195,9 @@
222
195
  "level": "error",
223
196
  "options": {
224
197
  "attributes": ["className"],
225
- "functions": ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"]
226
- }
227
- }
198
+ "functions": ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"],
199
+ },
200
+ },
228
201
  },
229
202
  "performance": {
230
203
  // ----------------------- JavaScript ------------------------
@@ -234,14 +207,14 @@
234
207
  "noDynamicNamespaceImportAccess": "error",
235
208
  "useTopLevelRegex": "error",
236
209
  "noUnwantedPolyfillio": "error",
237
- "useGoogleFontPreconnect": "error"
210
+ "useGoogleFontPreconnect": "error",
238
211
  },
239
212
  "security": {
240
213
  // ----------------------- JavaScript ------------------------
241
214
  "noBlankTarget": "error",
242
215
  "noDangerouslySetInnerHtml": "error",
243
216
  "noDangerouslySetInnerHtmlWithChildren": "error",
244
- "noGlobalEval": "error"
217
+ "noGlobalEval": "error",
245
218
  },
246
219
  "style": {
247
220
  // ----------------------- JavaScript ------------------------
@@ -285,8 +258,8 @@
285
258
  "options": {
286
259
  "filenameCases": ["kebab-case"],
287
260
  "requireAscii": false,
288
- "match": "[+_\\-\\[]*[a-z0-9]+[a-z0-9\\-_.\\$\\[\\]]*[.][a-z]+"
289
- }
261
+ "match": "[+_\\-\\[]*[a-z0-9]+[a-z0-9\\-_.\\$\\[\\]]*[.][a-z]+",
262
+ },
290
263
  },
291
264
  "useConsistentObjectDefinitions": "error",
292
265
  "useForOf": "error",
@@ -312,7 +285,7 @@
312
285
 
313
286
  // --------------------------- CSS ---------------------------
314
287
  "noDescendingSpecificity": "error",
315
- "noValueAtRule": "error"
288
+ "noValueAtRule": "error",
316
289
  },
317
290
  "suspicious": {
318
291
  "noApproximativeNumericConstant": "error",
@@ -412,86 +385,55 @@
412
385
  // --------------------------- JSON ---------------------------
413
386
  "noBiomeFirstException": "error",
414
387
  "noQuickfixBiome": "error",
415
- "useBiomeIgnoreFolder": "error"
416
- }
417
- }
388
+ "useBiomeIgnoreFolder": "error",
389
+ },
390
+ },
418
391
  },
419
- // ---------------------------- JAVASCRIPT ----------------------------
420
- // Options for JavaScript and TypeScript files.
421
392
  "javascript": {
422
393
  "formatter": {
423
- "enabled": true,
424
-
425
- "arrowParentheses": "always",
426
- "attributePosition": "auto",
427
- "bracketSameLine": false,
428
- "bracketSpacing": true,
429
- "expand": "auto",
430
- "jsxQuoteStyle": "double",
431
- "quoteProperties": "asNeeded",
432
- "quoteStyle": "double",
433
- // Only use semicolons to clear up ambiguity. We are of the opinion that
434
- // JavaScript code without semicolons is more elegant.
435
- "semicolons": "asNeeded",
436
- "trailingCommas": "es5"
437
- }
394
+ "enabled": false,
395
+ },
438
396
  },
439
397
  // ------------------------------- CSS -------------------------------
440
398
  "css": {
441
399
  "formatter": {
442
- "quoteStyle": "double"
400
+ "enabled": false,
443
401
  },
444
402
  "parser": {
445
403
  "allowWrongLineComments": false,
446
404
  "cssModules": false,
447
- "tailwindDirectives": true
448
- }
405
+ "tailwindDirectives": true,
406
+ },
449
407
  },
450
408
  // ------------------------------ JSON -------------------------------
451
409
  "json": {
452
410
  "assist": {
453
- "enabled": true
411
+ "enabled": false,
454
412
  },
455
413
  "formatter": {
456
- "enabled": true,
457
- "indentStyle": "space",
458
- "indentWidth": 2,
459
- "lineEnding": "auto",
460
- "lineWidth": 80,
461
- "trailingCommas": "none"
414
+ "enabled": false,
462
415
  },
463
416
  "linter": {
464
- "enabled": true
465
- }
417
+ "enabled": true,
418
+ },
466
419
  },
467
420
  "html": {
468
421
  "assist": {
469
- "enabled": true
470
- },
471
- "experimentalFullSupportEnabled": true,
472
- "formatter": {
473
422
  "enabled": true,
474
-
475
- "attributePosition": "auto",
476
- "bracketSameLine": false,
477
- "indentStyle": "space",
478
- "indentScriptAndStyle": true,
479
- "lineEnding": "auto",
480
- "selfCloseVoidElements": "always",
481
- "whitespaceSensitivity": "strict"
482
423
  },
424
+ "experimentalFullSupportEnabled": true,
483
425
  "linter": {
484
- "enabled": true
426
+ "enabled": true,
485
427
  },
486
428
  "parser": {
487
- "interpolation": true
488
- }
429
+ "interpolation": true,
430
+ },
489
431
  },
490
432
  "vcs": {
491
433
  "enabled": true,
492
434
 
493
435
  "clientKind": "git",
494
436
  "defaultBranch": "main",
495
- "useIgnoreFile": true
496
- }
437
+ "useIgnoreFile": true,
438
+ },
497
439
  }
@@ -0,0 +1,37 @@
1
+ {
2
+ "arrowParens": "always",
3
+ "bracketSameLine": false,
4
+ "bracketSpacing": true,
5
+ "embeddedLanguageFormatting": "auto",
6
+ "endOfLine": "lf",
7
+ "experimentalSortImports": {
8
+ "groups": [
9
+ ["value-builtin", "type-import"],
10
+ ["value-external"],
11
+ ["type-internal"],
12
+ ["value-internal"],
13
+ ["type-subpath"],
14
+ ["value-subpath"],
15
+ ["type-parent", "type-sibling", "type-index"],
16
+ ["value-parent", "value-sibling", "value-index"],
17
+ ["unknown"]
18
+ ],
19
+ "ignoreCase": true,
20
+ "newlinesBetween": false,
21
+ "partitionByNewline": true,
22
+ "order": "asc",
23
+ "partitionByComment": true,
24
+ "sortSideEffects": false
25
+ },
26
+ "insertFinalNewline": true,
27
+ "jsxSingleQuote": false,
28
+ "objectWrap": "preserve",
29
+ "printWidth": 100,
30
+ "quoteProps": "as-needed",
31
+ "semi": false,
32
+ "singleAttributePerLine": false,
33
+ "singleQuote": false,
34
+ "tabWidth": 2,
35
+ "trailingComma": "es5",
36
+ "useTabs": false
37
+ }