-
Notifications
You must be signed in to change notification settings - Fork 64
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
- Loading branch information
1 parent
0742326
commit 11adc8c
Showing
143 changed files
with
3,076 additions
and
2,357 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 |
---|---|---|
@@ -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,69 +1,17 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Antd", | ||
"antv", | ||
"apifox", | ||
"clsx", | ||
"colord", | ||
"consola", | ||
"Destructurable", | ||
"EDITMSG", | ||
"espree", | ||
"execa", | ||
"gridicons", | ||
"heroicons", | ||
"HEXA", | ||
"hexcode", | ||
"iconify", | ||
"INDEXEDDB", | ||
"jiti", | ||
"kolorist", | ||
"Laba", | ||
"localforage", | ||
"LOCALSTORAGE", | ||
"majesticons", | ||
"MEDZ", | ||
"nocheck", | ||
"nprogress", | ||
"ofetch", | ||
"pickr", | ||
"preflights", | ||
"sider", | ||
"simonwep", | ||
"simplebar", | ||
"tada", | ||
"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
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 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 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 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 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 |
---|---|---|
|
@@ -6,9 +6,7 @@ | |
}, | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./src/*" | ||
] | ||
"*": ["./src/*"] | ||
} | ||
}, | ||
"dependencies": { | ||
|
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 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 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 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 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,3 +1,4 @@ | ||
import process from 'node:process'; | ||
import path from 'node:path'; | ||
import { defineConfig } from 'vitepress'; | ||
|
||
|
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 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 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,6 +1,4 @@ | ||
/** | ||
* @type {import('eslint').ESLint.ConfigData} | ||
*/ | ||
/** @type {import('eslint').ESLint.ConfigData} */ | ||
module.exports = { | ||
extends: [require.resolve('./ts.js'), require.resolve('./prettier.js')] | ||
}; |
Oops, something went wrong.