From e6313080b9e2669b99ce5ecfea0664bea677b964 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sat, 27 Jul 2024 21:27:26 +1000 Subject: [PATCH] lint: configure all eslint, prettier and editorconfig to use 4 tabs --- .editorconfig | 1 + .eslintrc.cjs | 6 +++--- .prettierrc | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cf794f0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1 @@ +indent_size = 4 diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 495b803..8969785 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -8,7 +8,6 @@ module.exports = { plugins: ['@typescript-eslint/eslint-plugin'], extends: [ 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', ], root: true, env: { @@ -21,7 +20,8 @@ module.exports = { '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'error', - 'no-unused-vars': 'error', - 'indent': ['error', 4 ] + '@typescript-eslint/no-unused-vars': [ 'error', { args: 'none' } ], + 'no-unused-vars': [ 'error', { args: 'none' } ], + 'indent': 'off' }, }; diff --git a/.prettierrc b/.prettierrc index dcb7279..8b8b7b9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,6 @@ { - "singleQuote": true, - "trailingComma": "all" + "trailingComma": "es5", + "tabWidth": 4, + "semi": false, + "singleQuote": true } \ No newline at end of file