Skip to content

Commit 9b357af

Browse files
authored
Merge pull request #5 from pythonpizza/biome
Adding Biome linting and formating
2 parents d6b9440 + b725c1b commit 9b357af

6 files changed

Lines changed: 95 additions & 63 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

biome.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false, "ignore": [] },
5+
"formatter": { "enabled": true, "indentStyle": "space" },
6+
"organizeImports": { "enabled": true },
7+
"linter": {
8+
"enabled": true,
9+
"rules": {
10+
"recommended": false,
11+
"complexity": {
12+
"noExtraBooleanCast": "error",
13+
"noMultipleSpacesInRegularExpressionLiterals": "error",
14+
"noUselessCatch": "error",
15+
"noWith": "error"
16+
},
17+
"correctness": {
18+
"noConstAssign": "error",
19+
"noConstantCondition": "error",
20+
"noEmptyCharacterClassInRegex": "error",
21+
"noEmptyPattern": "error",
22+
"noGlobalObjectCalls": "error",
23+
"noInnerDeclarations": "error",
24+
"noInvalidConstructorSuper": "error",
25+
"noNewSymbol": "error",
26+
"noNonoctalDecimalEscape": "error",
27+
"noPrecisionLoss": "error",
28+
"noSelfAssign": "error",
29+
"noSetterReturn": "error",
30+
"noSwitchDeclarations": "error",
31+
"noUndeclaredVariables": "error",
32+
"noUnreachable": "error",
33+
"noUnreachableSuper": "error",
34+
"noUnsafeFinally": "error",
35+
"noUnsafeOptionalChaining": "error",
36+
"noUnusedLabels": "error",
37+
"noUnusedVariables": "error",
38+
"useIsNan": "error",
39+
"useValidForDirection": "error",
40+
"useYield": "error"
41+
},
42+
"suspicious": {
43+
"noAsyncPromiseExecutor": "error",
44+
"noCatchAssign": "error",
45+
"noClassAssign": "error",
46+
"noCompareNegZero": "error",
47+
"noControlCharactersInRegex": "error",
48+
"noDebugger": "error",
49+
"noDuplicateCase": "error",
50+
"noDuplicateClassMembers": "error",
51+
"noDuplicateObjectKeys": "error",
52+
"noDuplicateParameters": "error",
53+
"noEmptyBlockStatements": "error",
54+
"noFallthroughSwitchClause": "error",
55+
"noFunctionAssign": "error",
56+
"noGlobalAssign": "error",
57+
"noImportAssign": "error",
58+
"noMisleadingCharacterClass": "error",
59+
"noPrototypeBuiltins": "error",
60+
"noRedeclare": "error",
61+
"noShadowRestrictedNames": "error",
62+
"noSparseArray": "error",
63+
"noUnsafeNegation": "error",
64+
"useGetterReturn": "error",
65+
"useValidTypeof": "error"
66+
}
67+
},
68+
"ignore": ["./node_modules/*", "./.next/*", "./out/*"]
69+
},
70+
"javascript": {
71+
"formatter": { "quoteStyle": "double" },
72+
"globals": ["React"]
73+
},
74+
"overrides": [
75+
{
76+
"include": ["**/*.ts", "**/*.tsx"],
77+
"linter": {
78+
"rules": {
79+
"correctness": {
80+
"noUnusedVariables": "error",
81+
"useExhaustiveDependencies": "off"
82+
}
83+
}
84+
}
85+
}
86+
]
87+
}

bun.lockb

-85.2 KB
Binary file not shown.

package.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"node": ">=18.17.1"
1010
},
1111
"dependencies": {
12-
"@emotion/react": "^11.11.1",
13-
"@opentelemetry/api": "^1.6.0",
14-
"date-fns": "^2.30.0",
12+
"@emotion/react": "^11.13.3",
13+
"@opentelemetry/api": "^1.9.0",
14+
"date-fns": "^4.1.0",
1515
"next": "13.5.6",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0",
18-
"theme-ui": "0.16.1"
18+
"theme-ui": "0.16.2"
1919
},
2020
"scripts": {
2121
"dev": "next dev",
@@ -24,18 +24,9 @@
2424
"start": "next start"
2525
},
2626
"devDependencies": {
27+
"@biomejs/biome": "1.9.3",
2728
"@types/node": "^20.8.9",
2829
"@types/react": "^18.2.32",
29-
"@types/theme-ui": "^0.6.0",
30-
"@typescript-eslint/eslint-plugin": "^6.9.0",
31-
"@typescript-eslint/parser": "^6.9.0",
32-
"eslint": "^8.52.0",
33-
"eslint-config-prettier": "^9.0.0",
34-
"eslint-plugin-prettier": "^5.0.1",
35-
"eslint-plugin-react": "^7.33.2",
36-
"eslint-plugin-react-hooks": "^4.6.0",
37-
"eslint-plugin-simple-import-sort": "^10.0.0",
38-
"prettier": "^3.0.3",
39-
"typescript": "^5.2.2"
30+
"typescript": "^5.6.3"
4031
}
4132
}

src/data/generic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export const genericInformation = {
44
siteHeading: "Brno Python Pizza",
55
subHeading: "Clubco Brno Vlněna, Vlněna 5",
66
whenDatetime: "2025/02/22 10:00 AM UTC",
7-
whenFormat: "do MMMM Y",
7+
whenFormat: "do MMMM y",
88
};

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"incremental": true
2121
},
2222
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
23-
"exclude": ["node_modules"]
23+
"exclude": ["node_modules", ".next", "out"]
2424
}

0 commit comments

Comments
 (0)