From 24b699cfc4c099707e4aac577cbc6979623ab9ff Mon Sep 17 00:00:00 2001 From: MastersGame Date: Thu, 5 Nov 2026 23:00:44 +0100 Subject: [PATCH] chore: update prettier and eslint configuration Use a 140 characters print width and let typescript-eslint resolve types through tsconfig.json. --- .prettierrc | 4 +++- eslint.config.mjs | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.prettierrc b/.prettierrc index a20502b..0c0f659 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,6 @@ { "singleQuote": true, - "trailingComma": "all" + "trailingComma": "all", + "printWidth": 140, + "tabWidth": 2 } diff --git a/eslint.config.mjs b/eslint.config.mjs index 4e9f827..088587d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -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", }, }, );