chore: update deps

This commit is contained in:
vben
2024-08-01 00:06:36 +08:00
parent 546ff7caeb
commit 9b98b3190e
24 changed files with 305 additions and 240 deletions

View File

@@ -27,15 +27,15 @@
}
},
"dependencies": {
"eslint-config-turbo": "^2.0.10",
"eslint-config-turbo": "^2.0.11",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-import-x": "^3.1.0"
},
"devDependencies": {
"@eslint/js": "^9.8.0",
"@types/eslint": "^9.6.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",

View File

@@ -40,22 +40,10 @@ export async function typescript(): Promise<Linter.FlatConfig[]> {
},
],
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-function-rkeyword-spacingeturn-type':
'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/keyword-spacing': [
'error',
{
after: true,
before: true,
overrides: {
case: { after: true },
return: { after: true },
throw: { after: true },
},
},
],
'@typescript-eslint/no-empty-function': [
'error',
{
@@ -65,6 +53,7 @@ export async function typescript(): Promise<Linter.FlatConfig[]> {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{

View File

@@ -116,9 +116,9 @@ interface LibraryPluginOptions extends CommonPluginOptions {
injectLibCss?: boolean;
}
interface ApplicationOptions extends ApplicationPluginOptions {}
type ApplicationOptions = ApplicationPluginOptions;
interface LibraryOptions extends LibraryPluginOptions {}
type LibraryOptions = LibraryPluginOptions;
type DefineApplicationOptions = (config?: ConfigEnv) => Promise<{
application?: ApplicationOptions;