chore: update prettier and eslint configuration

Use a 140 characters print width and let typescript-eslint resolve types through tsconfig.json.
This commit is contained in:
MastersGame
2026-11-05 23:00:44 +01:00
parent c5e2125112
commit 24b699cfc4
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"printWidth": 140,
"tabWidth": 2
}

View File

@@ -19,8 +19,9 @@ export default tseslint.config(
},
sourceType: 'commonjs',
parserOptions: {
projectService: true,
//projectService: true,
tsconfigRootDir: import.meta.dirname,
project: './tsconfig.json',
},
},
},
@@ -29,7 +30,7 @@ export default tseslint.config(
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
"prettier/prettier": ["error", { endOfLine: "auto" }],
"prettier/prettier": "error",
},
},
);