@nivalis/biome-config 0.1.3 → 0.1.4

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3
3
  "assist": {
4
4
  "enabled": true,
5
5
  "actions": {
@@ -337,7 +337,7 @@
337
337
  "noCommaOperator": "error",
338
338
  "noEmptyTypeParameters": "error",
339
339
  "noUselessTypeConstraint": "error",
340
- "noExcessiveCognitiveComplexity": "error",
340
+ "noExcessiveCognitiveComplexity": "warn",
341
341
  "noExcessiveNestedTestSuites": "error",
342
342
  "noExtraBooleanCast": "error",
343
343
  "noFlatMapIdentity": "error",
@@ -453,7 +453,7 @@
453
453
  "noNonNullAssertedOptionalChain": "error",
454
454
  "noQwikUseVisibleTask": "error",
455
455
  "noShadow": "error",
456
- "noUnnecessaryConditions": "error",
456
+ "noUnnecessaryConditions": "info",
457
457
  "noUselessUndefined": "error",
458
458
  "noVueDataObjectDeclaration": "error",
459
459
  "noVueReservedKeys": "error",
@@ -461,6 +461,7 @@
461
461
  "useAnchorHref": "error",
462
462
  "useConsistentTypeDefinitions": {
463
463
  "level": "error",
464
+ "fix": "safe",
464
465
  "options": {
465
466
  "style": "type"
466
467
  }
@@ -523,7 +524,11 @@
523
524
  "noRestrictedImports": "error",
524
525
  "noYodaExpression": "error",
525
526
  "useArrayLiterals": "error",
526
- "useBlockStatements": "error",
527
+ "useBlockStatements": {
528
+ "level": "error",
529
+ "fix": "safe",
530
+ "options": {}
531
+ },
527
532
  "useCollapsedElseIf": "error",
528
533
  "useConsistentBuiltinInstantiation": "error",
529
534
  "useConst": "warn",
@@ -552,6 +557,7 @@
552
557
  "useAtIndex": "error",
553
558
  "useConsistentArrayType": {
554
559
  "level": "error",
560
+ "fix": "safe",
555
561
  "options": {
556
562
  "syntax": "generic"
557
563
  }
@@ -561,7 +567,7 @@
561
567
  "useEnumInitializers": "error",
562
568
  "useExportType": "error",
563
569
  "useFilenamingConvention": {
564
- "level": "error",
570
+ "level": "warn",
565
571
  "options": {
566
572
  "requireAscii": true,
567
573
  "filenameCases": ["kebab-case"],
@@ -571,7 +577,7 @@
571
577
  "useGraphqlNamingConvention": "error",
572
578
  "useImportType": "error",
573
579
  "useLiteralEnumMembers": "error",
574
- "noMagicNumbers": "error",
580
+ "noMagicNumbers": { "level": "warn", "options": {} },
575
581
  "useNodeAssertStrict": "error",
576
582
  "useReadonlyClassProperties": "error",
577
583
  "useSelfClosingElements": "error",
@@ -610,7 +616,7 @@
610
616
  "noConsole": {
611
617
  "level": "warn",
612
618
  "options": {
613
- "allow": ["warn", "error"]
619
+ "allow": ["warn", "error", "debug"]
614
620
  }
615
621
  },
616
622
  "noConstantBinaryExpressions": "error",
package/package.json CHANGED
@@ -1,21 +1,24 @@
1
1
  {
2
2
  "name": "@nivalis/biome-config",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Configuration for biome",
5
- "main": "./biome.jsonc",
6
- "files": [
7
- "biome.jsonc"
8
- ],
9
- "keywords": [
10
- "ultracite",
11
- "biome",
12
- "linter",
13
- "formatter",
14
- "fixer"
15
- ],
5
+ "main": "./biome.json",
6
+ "scripts": {
7
+ "lint": "biome check",
8
+ "lint:fix": "biome check --write"
9
+ },
10
+ "files": ["biome.json"],
11
+ "keywords": ["ultracite", "biome", "linter", "formatter", "fixer"],
16
12
  "packageManager": "pnpm@10.15.1",
17
13
  "publishConfig": {
18
14
  "access": "public",
19
15
  "registry": "https://registry.npmjs.org/"
16
+ },
17
+ "devDependencies": {
18
+ "@biomejs/biome": "2.2.5",
19
+ "@commitlint/cli": "20.1.0",
20
+ "@commitlint/config-conventional": "20.0.0",
21
+ "@nivalis/biome-config": "0.1.3",
22
+ "lefthook": "1.13.6"
20
23
  }
21
24
  }