chore(lint): Update ESLint and Prettier configurations

This commit is contained in:
kangfenmao 2024-05-24 16:32:26 +08:00
parent 2b92c57f1e
commit 706ffd48fd
4 changed files with 14 additions and 8 deletions

View File

@ -5,5 +5,9 @@ module.exports = {
'plugin:react/jsx-runtime',
'@electron-toolkit/eslint-config-ts/recommended',
'@electron-toolkit/eslint-config-prettier'
]
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
}

8
.prettierrc Normal file
View File

@ -0,0 +1,8 @@
{
"singleQuote": true,
"semi": false,
"printWidth": 120,
"trailingComma": "none",
"endOfLine": "lf",
"bracketSameLine": true
}

View File

@ -1,6 +0,0 @@
singleQuote: true
semi: false
printWidth: 120
trailingComma: none
endOfLine: lf
bracketSameLine: true

View File

@ -1,7 +1,7 @@
import { app, shell, BrowserWindow, ipcMain } from 'electron'
import { join } from 'path'
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
import icon from '@/renderer/resources/icon.png?asset'
import icon from '../../resources/icon.png?asset'
import windowStateKeeper from 'electron-window-state'
function createWindow(): void {