adamantite 0.1.1 → 0.2.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/README.md +2 -2
- package/biome.jsonc +15 -18
- package/package.json +1 -1
- package/presets/tsconfig.json +3 -4
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<h1 align="center">💠 <code>adamantite</code></h1>
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<em><strong>
|
|
5
|
+
<em><strong>Bulletproof your code.</strong></em>
|
|
6
6
|
</p>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Opinionated linting, formatting, and type-safety presets for modern TypeScript applications. Designed for humans and AI.
|
package/biome.jsonc
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// ---------------------------- FORMATTER -----------------------------
|
|
5
5
|
// These are the generic settings that apply to all files in the project.
|
|
6
6
|
"formatter": {
|
|
7
7
|
"enabled": true,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"bracketSpacing": true
|
|
21
21
|
},
|
|
22
22
|
|
|
23
|
-
//
|
|
23
|
+
// ------------------------------ ASSIST ------------------------------
|
|
24
24
|
// Help with code organization.
|
|
25
25
|
"assist": {
|
|
26
26
|
"actions": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
|
|
45
|
-
//
|
|
45
|
+
// ------------------------------ LINTER ------------------------------
|
|
46
46
|
|
|
47
47
|
"linter": {
|
|
48
48
|
"enabled": true,
|
|
@@ -102,8 +102,7 @@
|
|
|
102
102
|
"useWhile": "error"
|
|
103
103
|
},
|
|
104
104
|
"correctness": {
|
|
105
|
-
//
|
|
106
|
-
|
|
105
|
+
// ----------------------- JavaScript ------------------------
|
|
107
106
|
"noChildrenProp": "error",
|
|
108
107
|
"noConstantCondition": "error",
|
|
109
108
|
"noConstantMathMinMaxClamp": "error",
|
|
@@ -147,7 +146,7 @@
|
|
|
147
146
|
"useValidTypeof": "error",
|
|
148
147
|
"useYield": "error",
|
|
149
148
|
|
|
150
|
-
//
|
|
149
|
+
// --------------------------- CSS ---------------------------
|
|
151
150
|
"noInvalidDirectionInLinearGradient": "error",
|
|
152
151
|
"noInvalidGridAreas": "error",
|
|
153
152
|
"noInvalidPositionAtImportRule": "error",
|
|
@@ -162,8 +161,7 @@
|
|
|
162
161
|
"noUnmatchableAnbSelector": "error"
|
|
163
162
|
},
|
|
164
163
|
"nursery": {
|
|
165
|
-
//
|
|
166
|
-
|
|
164
|
+
// ----------------------- JavaScript ------------------------
|
|
167
165
|
"noAwaitInLoop": "error",
|
|
168
166
|
"noBitwiseOperators": "error",
|
|
169
167
|
"noConstantBinaryExpression": "error",
|
|
@@ -212,13 +210,13 @@
|
|
|
212
210
|
"noImportCycles": "off",
|
|
213
211
|
"noUnresolvedImports": "off",
|
|
214
212
|
|
|
215
|
-
//
|
|
213
|
+
// --------------------------- CSS ---------------------------
|
|
216
214
|
"noImportantStyles": "error",
|
|
217
215
|
// Disabling this rule since we need custom at-rules for Tailwind
|
|
218
216
|
"noUnknownAtRule": "off"
|
|
219
217
|
},
|
|
220
218
|
"performance": {
|
|
221
|
-
//
|
|
219
|
+
// ----------------------- JavaScript ------------------------
|
|
222
220
|
|
|
223
221
|
"noAccumulatingSpread": "error",
|
|
224
222
|
"noBarrelFile": "off",
|
|
@@ -230,15 +228,14 @@
|
|
|
230
228
|
"useTopLevelRegex": "error"
|
|
231
229
|
},
|
|
232
230
|
"security": {
|
|
233
|
-
//
|
|
234
|
-
|
|
231
|
+
// ----------------------- JavaScript ------------------------
|
|
235
232
|
"noBlankTarget": "error",
|
|
236
233
|
"noDangerouslySetInnerHtml": "error",
|
|
237
234
|
"noDangerouslySetInnerHtmlWithChildren": "error",
|
|
238
235
|
"noGlobalEval": "error"
|
|
239
236
|
},
|
|
240
237
|
"style": {
|
|
241
|
-
//
|
|
238
|
+
// ----------------------- JavaScript ------------------------
|
|
242
239
|
"noCommonJs": "off",
|
|
243
240
|
"noDefaultExport": "off",
|
|
244
241
|
"noDoneCallback": "error",
|
|
@@ -305,7 +302,7 @@
|
|
|
305
302
|
"useThrowOnlyError": "error",
|
|
306
303
|
"useTrimStartEnd": "error",
|
|
307
304
|
|
|
308
|
-
//
|
|
305
|
+
// --------------------------- CSS ---------------------------
|
|
309
306
|
"noDescendingSpecificity": "error",
|
|
310
307
|
"noValueAtRule": "error"
|
|
311
308
|
},
|
|
@@ -384,7 +381,7 @@
|
|
|
384
381
|
"useNumberToFixedDigitsArgument": "error",
|
|
385
382
|
"useStrictMode": "error",
|
|
386
383
|
|
|
387
|
-
//
|
|
384
|
+
// --------------------------- CSS ---------------------------
|
|
388
385
|
"noDuplicateAtImportRules": "error",
|
|
389
386
|
"noDuplicateCustomProperties": "error",
|
|
390
387
|
"noDuplicateFontNames": "error",
|
|
@@ -396,7 +393,7 @@
|
|
|
396
393
|
}
|
|
397
394
|
}
|
|
398
395
|
},
|
|
399
|
-
//
|
|
396
|
+
// ---------------------------- JAVASCRIPT ----------------------------
|
|
400
397
|
// Options for JavaScript and TypeScript files.
|
|
401
398
|
"javascript": {
|
|
402
399
|
"formatter": {
|
|
@@ -415,7 +412,7 @@
|
|
|
415
412
|
"trailingCommas": "es5"
|
|
416
413
|
}
|
|
417
414
|
},
|
|
418
|
-
//
|
|
415
|
+
// ------------------------------- CSS -------------------------------
|
|
419
416
|
"css": {
|
|
420
417
|
"formatter": {
|
|
421
418
|
"quoteStyle": "double"
|
|
@@ -425,7 +422,7 @@
|
|
|
425
422
|
"cssModules": false
|
|
426
423
|
}
|
|
427
424
|
},
|
|
428
|
-
//
|
|
425
|
+
// ------------------------------ JSON -------------------------------
|
|
429
426
|
"json": {
|
|
430
427
|
"assist": {
|
|
431
428
|
"enabled": true
|
package/package.json
CHANGED
package/presets/tsconfig.json
CHANGED
|
@@ -9,14 +9,13 @@
|
|
|
9
9
|
"resolveJsonModule": true,
|
|
10
10
|
"moduleDetection": "force",
|
|
11
11
|
|
|
12
|
-
// Strictness and best practices
|
|
12
|
+
// Strictness and best practices. We only recommend settings that are not
|
|
13
|
+
// covered by linting rules.
|
|
13
14
|
"strict": true,
|
|
14
15
|
"noUncheckedIndexedAccess": true,
|
|
15
|
-
"noFallthroughCasesInSwitch": true,
|
|
16
16
|
"noImplicitOverride": true,
|
|
17
17
|
"forceConsistentCasingInFileNames": true,
|
|
18
|
-
"
|
|
19
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
18
|
+
"noImplicitAny": true,
|
|
20
19
|
"noImplicitThis": true,
|
|
21
20
|
"noImplicitReturns": true
|
|
22
21
|
}
|