Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hxyj-admin-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hxyj
hxyj-admin-fe
Commits
09e28fcd
Commit
09e28fcd
authored
Jun 10, 2025
by
Jstar Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 解决 autoImport ts 和 eslint 报错
parent
a2ad7d5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
.gitignore
.gitignore
+1
-0
plugins.ts
build/plugins.ts
+5
-0
eslint.config.js
eslint.config.js
+2
-0
tsconfig.app.json
tsconfig.app.json
+8
-1
No files found.
.gitignore
View file @
09e28fcd
...
...
@@ -24,4 +24,5 @@ dist-ssr
auto-imports.d.ts
components.d.ts
eslint-auto-import.json
package-lock.json
build/plugins.ts
View file @
09e28fcd
...
...
@@ -32,6 +32,11 @@ export function setupPlugins(
// }),
AutoImport
({
resolvers
:
[
ElementPlusResolver
()],
eslintrc
:
{
enabled
:
true
,
filepath
:
'./eslint-auto-import.json'
,
globalsPropValue
:
'readonly'
,
},
}),
Components
({
resolvers
:
[
ElementPlusResolver
()],
...
...
eslint.config.js
View file @
09e28fcd
...
...
@@ -5,6 +5,7 @@ import pluginVue from 'eslint-plugin-vue'
import
eslintPluginPrettierRecommended
from
'eslint-plugin-prettier/recommended'
import
vueParser
from
'vue-eslint-parser'
import
tsParser
from
'@typescript-eslint/parser'
import
autoImportGlobals
from
'./eslint-auto-import.json'
assert
{
type
:
'json'
}
export
default
[
pluginJs
.
configs
.
recommended
,
...
...
@@ -15,6 +16,7 @@ export default [
{
languageOptions
:
{
globals
:
{
...
autoImportGlobals
.
globals
,
...
globals
.
browser
,
NodeJS
:
'readonly'
,
Recordable
:
'readonly'
,
...
...
tsconfig.app.json
View file @
09e28fcd
...
...
@@ -26,5 +26,12 @@
"@build/*"
:
[
"build/*"
]
}
},
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.vue"
,
"types/**/*.d.ts"
]
"include"
:
[
"src/**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.vue"
,
"types/**/*.d.ts"
,
"./auto-imports.d.ts"
,
"./components.d.ts"
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment