lint: configure all eslint, prettier and editorconfig to use 4 tabs

This commit is contained in:
b1ek 2024-07-27 21:27:26 +10:00
parent 8a8995cf2d
commit e6313080b9
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 8 additions and 5 deletions

1
.editorconfig Normal file
View File

@ -0,0 +1 @@
indent_size = 4

View File

@ -8,7 +8,6 @@ module.exports = {
plugins: ['@typescript-eslint/eslint-plugin'], plugins: ['@typescript-eslint/eslint-plugin'],
extends: [ extends: [
'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
], ],
root: true, root: true,
env: { env: {
@ -21,7 +20,8 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-explicit-any': 'error',
'no-unused-vars': 'error', '@typescript-eslint/no-unused-vars': [ 'error', { args: 'none' } ],
'indent': ['error', 4 ] 'no-unused-vars': [ 'error', { args: 'none' } ],
'indent': 'off'
}, },
}; };

View File

@ -1,4 +1,6 @@
{ {
"singleQuote": true, "trailingComma": "es5",
"trailingComma": "all" "tabWidth": 4,
"semi": false,
"singleQuote": true
} }