Merged in chore/eslint-curly-braces (pull request #3304)

Chore/eslint curly braces

* Add eslint rule for curly braces

* run eslint --fix for all files


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-12-08 07:56:21 +00:00
parent 5986828580
commit de4b3c1c3c
54 changed files with 139 additions and 104 deletions

View File

@@ -49,6 +49,14 @@ export default defineConfig([
"no-console": "warn",
"no-unused-vars": "off",
"react/function-component-definition": "error",
"react/jsx-curly-brace-presence": [
"error",
{
props: "never",
children: "never",
propElementValues: "always",
},
],
"import/no-relative-packages": "error",
"import/no-extraneous-dependencies": [
"warn",

View File

@@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"check-types": "tsgo --noEmit",
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
"lint:fix": "eslint . --fix && tsgo --noEmit",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix",
"test": "vitest run --passWithNoTests",
"test:watch": "vitest",
"format": "prettier --write ."