chore: set bracketsameline to false in prettier and eslint
This commit is contained in:
parent
72048b2aab
commit
cdff674766
2 changed files with 9 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ singleQuote: true
|
|||
semi: false
|
||||
printWidth: 100
|
||||
trailingComma: none
|
||||
bracketSameLine: true
|
||||
plugins:
|
||||
- prettier-plugin-svelte
|
||||
- prettier-plugin-tailwindcss
|
||||
|
|
|
|||
|
|
@ -2,6 +2,13 @@ import tseslint from '@electron-toolkit/eslint-config-ts'
|
|||
import eslintConfigPrettier from '@electron-toolkit/eslint-config-prettier'
|
||||
import eslintPluginSvelte from 'eslint-plugin-svelte'
|
||||
|
||||
function generateEslintPrettier() {
|
||||
const config = eslintConfigPrettier
|
||||
config.rules['svelte/html-closing-bracket-new-line'] = 'off'
|
||||
|
||||
return config
|
||||
}
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['**/node_modules', '**/dist', '**/out'] },
|
||||
tseslint.configs.recommended,
|
||||
|
|
@ -20,5 +27,5 @@ export default tseslint.config(
|
|||
'svelte/no-unused-svelte-ignore': 'off'
|
||||
}
|
||||
},
|
||||
eslintConfigPrettier
|
||||
generateEslintPrettier()
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue