-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(projects): use eslint flat config & update config
- Loading branch information
1 parent
3346bcd
commit a176dc4
Showing
16 changed files
with
890 additions
and
1,956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
registry=https://registry.npmmirror.com/ | ||
shamefully-hoist=true | ||
ignore-workspace-root-check=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,17 @@ | ||
{ | ||
"cSpell.words": [ | ||
"apifox", | ||
"clickoutside", | ||
"clsx", | ||
"colord", | ||
"consola", | ||
"Destructurable", | ||
"EDITMSG", | ||
"espree", | ||
"execa", | ||
"gitee", | ||
"gridicons", | ||
"heroicons", | ||
"HEXA", | ||
"hexcode", | ||
"iconify", | ||
"INDEXEDDB", | ||
"jiti", | ||
"kolorist", | ||
"Laba", | ||
"localforage", | ||
"LOCALSTORAGE", | ||
"majesticons", | ||
"MEDZ", | ||
"nocheck", | ||
"nprogress", | ||
"ofetch", | ||
"pickr", | ||
"preflights", | ||
"sider", | ||
"simonwep", | ||
"simplebar", | ||
"tada", | ||
"tauri", | ||
"Uncapitalize", | ||
"unocss", | ||
"unplugin", | ||
"VITE", | ||
"vitepress", | ||
"vueuse", | ||
"WEBSQL", | ||
"wechat" | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
"editor.fontLigatures": true, | ||
"eslint.experimental.useFlatConfig": true, | ||
"editor.formatOnSave": false, | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"editor.tabSize": 2, | ||
"files.associations": { | ||
"*.env.*": "dotenv", | ||
"*.svg": "html" | ||
}, | ||
"files.eol": "\n", | ||
"eslint.validate": ["html", "css", "scss", "json", "jsonc"], | ||
"i18n-ally.displayLanguage": "zh-cn", | ||
"i18n-ally.enabledParsers": ["ts"], | ||
"i18n-ally.enabledFrameworks": ["vue"], | ||
"i18n-ally.editor.preferEditor": true, | ||
"i18n-ally.keystyle": "nested", | ||
"i18n-ally.localesPaths": ["src/locales/lang"], | ||
"unocss.root": ["./"], | ||
"[html][css][less][scss][sass][markdown][yaml][yml][json][jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
} | ||
"prettier.enable": false, | ||
"unocss.root": ["./"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defineConfig } from '@soybeanjs/eslint-config'; | ||
|
||
export default defineConfig( | ||
{ vue: true }, | ||
{ | ||
rules: { | ||
'vue/multi-word-component-names': [ | ||
'warn', | ||
{ | ||
ignores: ['index', 'App', '[id]'] | ||
} | ||
] | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.