chore(lint): Update ESLint and Prettier configurations
This commit is contained in:
parent
2b92c57f1e
commit
706ffd48fd
@ -5,5 +5,9 @@ module.exports = {
|
|||||||
'plugin:react/jsx-runtime',
|
'plugin:react/jsx-runtime',
|
||||||
'@electron-toolkit/eslint-config-ts/recommended',
|
'@electron-toolkit/eslint-config-ts/recommended',
|
||||||
'@electron-toolkit/eslint-config-prettier'
|
'@electron-toolkit/eslint-config-prettier'
|
||||||
]
|
],
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
.prettierrc
Normal file
8
.prettierrc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": false,
|
||||||
|
"printWidth": 120,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"endOfLine": "lf",
|
||||||
|
"bracketSameLine": true
|
||||||
|
}
|
||||||
@ -1,6 +0,0 @@
|
|||||||
singleQuote: true
|
|
||||||
semi: false
|
|
||||||
printWidth: 120
|
|
||||||
trailingComma: none
|
|
||||||
endOfLine: lf
|
|
||||||
bracketSameLine: true
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import { app, shell, BrowserWindow, ipcMain } from 'electron'
|
import { app, shell, BrowserWindow, ipcMain } from 'electron'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
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'
|
import windowStateKeeper from 'electron-window-state'
|
||||||
|
|
||||||
function createWindow(): void {
|
function createWindow(): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user