@snowdrive/biome-config 1.0.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.
Files changed (2) hide show
  1. package/biome.json +149 -0
  2. package/package.json +23 -0
package/biome.json ADDED
@@ -0,0 +1,149 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
3
+ "javascript": {
4
+ "formatter": {
5
+ "quoteStyle": "single",
6
+ "quoteProperties": "asNeeded",
7
+ "trailingCommas": "es5",
8
+ "semicolons": "asNeeded"
9
+ }
10
+ },
11
+ "assist": { "actions": { "source": { "organizeImports": "off" } } },
12
+ "formatter": {
13
+ "enabled": true,
14
+ "formatWithErrors": false,
15
+ "indentStyle": "tab",
16
+ "indentWidth": 2,
17
+ "lineWidth": 100,
18
+ "includes": [
19
+ "**",
20
+ "!**/node_modules/**",
21
+ "!**/dist/**",
22
+ "!**/tsconfig.json",
23
+ "!**/jsconfig.json"
24
+ ]
25
+ },
26
+ "linter": {
27
+ "enabled": true,
28
+ "rules": {
29
+ "recommended": true,
30
+ "complexity": {
31
+ "noForEach": "off",
32
+ "noBannedTypes": "off",
33
+ "useOptionalChain": "off",
34
+ "noStaticOnlyClass": "off",
35
+ "useSimplifiedLogicExpression": "off",
36
+ "noUselessStringConcat": "warn",
37
+ "useDateNow": "error",
38
+ "noUselessUndefinedInitialization": "error",
39
+ "noFlatMapIdentity": "error",
40
+ "noUselessUndefined": "error"
41
+ },
42
+ "correctness": {
43
+ "useValidTypeof": "off",
44
+ "useImportExtensions": "off",
45
+ "noUndeclaredDependencies": "off",
46
+ "noUnusedFunctionParameters": "warn",
47
+ "noInvalidBuiltinInstantiation": "error",
48
+ "noInvalidDirectionInLinearGradient": "error",
49
+ "noInvalidPositionAtImportRule": "error",
50
+ "noUnknownMediaFeatureName": "error",
51
+ "noUnmatchableAnbSelector": "error",
52
+ "noUnusedImports": "error",
53
+ "noUnknownFunction": "error",
54
+ "noUnknownProperty": "error",
55
+ "noUnknownUnit": "error",
56
+ "noInvalidGridAreas": "error",
57
+ "noUnknownPseudoElement": "error",
58
+ "useExhaustiveDependencies": "error",
59
+ "noGlobalDirnameFilename": "error"
60
+ },
61
+ "suspicious": {
62
+ "noArrayIndexKey": "off",
63
+ "noCatchAssign": "off",
64
+ "noExplicitAny": "off",
65
+ "noPrototypeBuiltins": "off",
66
+ "noEmptyBlock": "warn",
67
+ "noEvolvingTypes": "warn",
68
+ "noMisplacedAssertion": "warn",
69
+ "noRedeclare": "warn",
70
+ "useErrorMessage": "error",
71
+ "noDuplicateFontNames": "error",
72
+ "noAssignInExpressions": "error",
73
+ "noImportantInKeyframe": "error",
74
+ "noDuplicateAtImportRules": "error",
75
+ "noShorthandPropertyOverrides": "error",
76
+ "useNumberToFixedDigitsArgument": "error",
77
+ "noDuplicateSelectorsKeyframeBlock": "error",
78
+ "noExtraNonNullAssertion": "error",
79
+ "noDuplicateDependencies": "error"
80
+ },
81
+ "style": {
82
+ "useConst": "off",
83
+ "noNonNullAssertion": "off",
84
+ "useExplicitLengthCheck": "off",
85
+ "useConsistentArrowReturn": "off",
86
+ "noParameterProperties": "warn",
87
+ "noRestrictedGlobals": "warn",
88
+ "noShoutyConstants": "warn",
89
+ "useFragmentSyntax": "warn",
90
+ "useExponentiationOperator": "warn",
91
+ "useConsistentArrayType": { "level": "warn", "options": { "syntax": "shorthand" } },
92
+ "noProcessEnv": "error",
93
+ "noDoneCallback": "error",
94
+ "noDefaultExport": "error",
95
+ "useThrowNewError": "error",
96
+ "useArrayLiterals": "error",
97
+ "noYodaExpression": "error",
98
+ "useThrowOnlyError": "error",
99
+ "useComponentExportOnlyModules": "error",
100
+ "useConsistentBuiltinInstantiation": "error"
101
+ },
102
+ "performance": {
103
+ "noDelete": "warn",
104
+ "useTopLevelRegex": "error"
105
+ },
106
+ "a11y": {
107
+ "noRedundantAlt": "error",
108
+ "noSvgWithoutTitle": "error",
109
+ "useGenericFontNames": "error",
110
+ "useSemanticElements": "error",
111
+ "noLabelWithoutControl": "error",
112
+ "useFocusableInteractive": "error",
113
+ "noInteractiveElementToNoninteractiveRole": "error"
114
+ },
115
+ "security": {},
116
+ "nursery": {}
117
+ },
118
+ "includes": [
119
+ "**",
120
+ "!**/node_modules/**",
121
+ "!**/dist/**",
122
+ "!**/tsconfig.json",
123
+ "!**/jsconfig.json"
124
+ ]
125
+ },
126
+ "overrides": [
127
+ {
128
+ "includes": ["scripts/**", "src/**/config/**", "tsup.config.ts", "vite.config.ts"],
129
+ "linter": {
130
+ "rules": {
131
+ "style": {
132
+ "noProcessEnv": "off",
133
+ "noDefaultExport": "off"
134
+ }
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "includes": ["src/types/**/*.d.ts"],
140
+ "linter": {
141
+ "rules": {
142
+ "correctness": {
143
+ "noUnusedVariables": "off"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ ]
149
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@snowdrive/biome-config",
3
+ "version": "1.0.0",
4
+ "author": "Luciano Morales",
5
+ "description": "Common biomejs config used in my projects",
6
+ "license": "MIT",
7
+ "private": false,
8
+ "keywords": [
9
+ "biome",
10
+ "linter",
11
+ "formatter",
12
+ "config"
13
+ ],
14
+ "files": [
15
+ "biome.json"
16
+ ],
17
+ "peerDependencies": {
18
+ "@biomejs/biome": ">=2.4.4"
19
+ },
20
+ "devDependencies": {
21
+ "@biomejs/biome": "2.4.4"
22
+ }
23
+ }