4 changed files with 53 additions and 26 deletions
@ -1,9 +1,10 @@ |
|||||
|
# http://editorconfig.org |
||||
root = true |
root = true |
||||
|
|
||||
[*] |
[*] |
||||
charset = utf-8 |
charset = utf-8 |
||||
indent_style = space |
indent_style = space |
||||
indent_size = 2 |
indent_size = 4 |
||||
end_of_line = lf |
end_of_line = lf |
||||
insert_final_newline = true |
insert_final_newline = true |
||||
trim_trailing_whitespace = true |
trim_trailing_whitespace = true |
@ -1,17 +1,34 @@ |
|||||
/* eslint-env node */ |
/* eslint-env node */ |
||||
require('@rushstack/eslint-patch/modern-module-resolution') |
require("@rushstack/eslint-patch/modern-module-resolution") |
||||
|
|
||||
module.exports = { |
module.exports = { |
||||
extends: [ |
extends: [ |
||||
'eslint:recommended', |
"eslint:recommended", |
||||
'plugin:vue/vue3-recommended', |
"plugin:vue/vue3-recommended", |
||||
'@electron-toolkit', |
"@electron-toolkit", |
||||
'@electron-toolkit/eslint-config-ts/eslint-recommended', |
"@electron-toolkit/eslint-config-ts/eslint-recommended", |
||||
'@vue/eslint-config-typescript/recommended', |
"@vue/eslint-config-typescript/recommended", |
||||
'@vue/eslint-config-prettier' |
"@vue/eslint-config-prettier", |
||||
], |
], |
||||
rules: { |
rules: { |
||||
'vue/require-default-prop': 'off', |
"vue/require-default-prop": "off", |
||||
'vue/multi-word-component-names': 'off' |
"vue/multi-word-component-names": "off", |
||||
} |
"@typescript-eslint/no-explicit-any": "off", |
||||
|
"prettier/prettier": [ |
||||
|
"error", |
||||
|
{ |
||||
|
tabWidth: 4, |
||||
|
useTabs: false, |
||||
|
semi: false, |
||||
|
singleQuote: false, |
||||
|
trailingComma: "all", |
||||
|
bracketSpacing: true, |
||||
|
arrowParens: "avoid", |
||||
|
printWidth: 140, |
||||
|
htmlWhitespaceSensitivity: "ignore", |
||||
|
proseWrap: "preserve", |
||||
|
endOfLine: "auto", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
} |
} |
||||
|
@ -0,0 +1,13 @@ |
|||||
|
{ |
||||
|
"tabWidth": 4, |
||||
|
"useTabs": false, |
||||
|
"semi": false, |
||||
|
"singleQuote": false, |
||||
|
"trailingComma": "all", |
||||
|
"bracketSpacing": true, |
||||
|
"arrowParens": "avoid", |
||||
|
"printWidth": 140, |
||||
|
"htmlWhitespaceSensitivity": "ignore", |
||||
|
"proseWrap": "preserve", |
||||
|
"endOfLine": "auto" |
||||
|
} |
@ -1,4 +0,0 @@ |
|||||
singleQuote: true |
|
||||
semi: false |
|
||||
printWidth: 100 |
|
||||
trailingComma: none |
|
Loading…
Reference in new issue