Skip to content

Commit 3abe265

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
add lint files
1 parent 7e0baee commit 3abe265

File tree

2 files changed

+144
-0
lines changed

2 files changed

+144
-0
lines changed

.yamllint

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
braces:
6+
max-spaces-inside: 1
7+
brackets:
8+
max-spaces-inside: 1
9+
comments: disable
10+
comments-indentation: disable
11+
document-start: disable
12+
line-length:
13+
level: warning
14+
max: 160
15+
allow-non-breakable-inline-mappings: true
16+
truthy: disable

biome.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**",
12+
"!**/node_modules",
13+
"!**/dist",
14+
"!**/build",
15+
"!**/out",
16+
"!**/coverage",
17+
"!**/.next",
18+
"!**/.nuxt"
19+
]
20+
},
21+
"formatter": {
22+
"enabled": true,
23+
"formatWithErrors": false,
24+
"indentStyle": "space",
25+
"indentWidth": 2,
26+
"lineWidth": 100
27+
},
28+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
29+
"linter": {
30+
"enabled": true,
31+
"rules": {
32+
"recommended": true,
33+
"complexity": {
34+
"noExtraBooleanCast": "error",
35+
"noUselessCatch": "error",
36+
"noUselessTypeConstraint": "error",
37+
"noAdjacentSpacesInRegex": "error",
38+
"noArguments": "error"
39+
},
40+
"correctness": {
41+
"noConstAssign": "error",
42+
"noConstantCondition": "error",
43+
"noEmptyCharacterClassInRegex": "error",
44+
"noEmptyPattern": "error",
45+
"noGlobalObjectCalls": "error",
46+
"noInnerDeclarations": "error",
47+
"noInvalidConstructorSuper": "error",
48+
"noNonoctalDecimalEscape": "error",
49+
"noPrecisionLoss": "error",
50+
"noSelfAssign": "error",
51+
"noSetterReturn": "error",
52+
"noSwitchDeclarations": "error",
53+
"noUndeclaredVariables": "error",
54+
"noUnreachable": "error",
55+
"noUnreachableSuper": "error",
56+
"noUnsafeFinally": "error",
57+
"noUnsafeOptionalChaining": "error",
58+
"noUnusedLabels": "error",
59+
"noUnusedVariables": "error",
60+
"useIsNan": "error",
61+
"useValidForDirection": "error",
62+
"useYield": "error",
63+
"noInvalidBuiltinInstantiation": "error",
64+
"useValidTypeof": "error"
65+
},
66+
"security": {
67+
"noDangerouslySetInnerHtml": "warn",
68+
"noDangerouslySetInnerHtmlWithChildren": "error"
69+
},
70+
"style": {
71+
"useConst": "error"
72+
},
73+
"suspicious": {
74+
"noAssignInExpressions": "error",
75+
"noAsyncPromiseExecutor": "error",
76+
"noCatchAssign": "error",
77+
"noClassAssign": "error",
78+
"noCompareNegZero": "error",
79+
"noControlCharactersInRegex": "error",
80+
"noDebugger": "error",
81+
"noDoubleEquals": "warn",
82+
"noDuplicateCase": "error",
83+
"noDuplicateClassMembers": "error",
84+
"noDuplicateObjectKeys": "error",
85+
"noDuplicateParameters": "error",
86+
"noEmptyBlockStatements": "warn",
87+
"noExplicitAny": "warn",
88+
"noExtraNonNullAssertion": "error",
89+
"noFallthroughSwitchClause": "error",
90+
"noFunctionAssign": "error",
91+
"noGlobalAssign": "error",
92+
"noImportAssign": "error",
93+
"noMisleadingCharacterClass": "error",
94+
"noPrototypeBuiltins": "error",
95+
"noRedeclare": "error",
96+
"noShadowRestrictedNames": "error",
97+
"noUnsafeDeclarationMerging": "error",
98+
"noUnsafeNegation": "error",
99+
"useGetterReturn": "error",
100+
"noWith": "error",
101+
"noVar": "error"
102+
}
103+
}
104+
},
105+
"javascript": {
106+
"formatter": {
107+
"quoteStyle": "double",
108+
"jsxQuoteStyle": "double",
109+
"quoteProperties": "asNeeded",
110+
"trailingCommas": "es5",
111+
"semicolons": "always",
112+
"arrowParentheses": "always",
113+
"bracketSpacing": true,
114+
"bracketSameLine": false
115+
}
116+
},
117+
"json": {
118+
"formatter": {
119+
"enabled": true,
120+
"indentStyle": "space",
121+
"indentWidth": 2
122+
},
123+
"parser": {
124+
"allowComments": true,
125+
"allowTrailingCommas": false
126+
}
127+
}
128+
}

0 commit comments

Comments
 (0)