refactor: apply eslint

This commit is contained in:
sbplat
2024-01-04 20:17:54 -05:00
parent 5fd505d4f4
commit 9c1588d150
53 changed files with 647 additions and 636 deletions

View File

@@ -4,7 +4,9 @@ module.exports = {
"es2021": true
},
"extends": [
"plugin:@typescript-eslint/strict"
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"overrides": [
{
@@ -22,7 +24,12 @@ module.exports = {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"project": [
"./client-tauri/tsconfig.json",
"./server-node/tsconfig.json",
"./shared-operations/tsconfig.json"
]
},
"plugins": [
"@typescript-eslint"
@@ -47,7 +54,11 @@ module.exports = {
],
"semi": [
"error",
"always"
"always",
{
"omitLastInOneLineBlock": true,
"omitLastInOneLineClassBody": true
}
]
}
};