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
496d85af
Commit
496d85af
authored
Jun 12, 2025
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: eslit配置
parent
f17ace8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
eslint.config.js
eslint.config.js
+25
-18
No files found.
eslint.config.js
View file @
496d85af
...
...
@@ -4,20 +4,23 @@ import tseslint from 'typescript-eslint'
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'
}
import
{
globalIgnores
}
from
'eslint/config'
export
default
[
pluginJs
.
configs
.
recommended
,
export
default
tseslint
.
config
(
globalIgnores
([
'**/node_modules/'
,
'.git/'
,
'dist/'
,
'public/'
,
'src/components/rich-text-editor/lib'
])
,
...
tseslint
.
configs
.
recommended
,
...
pluginVue
.
configs
[
'flat/recommended'
],
pluginJs
.
configs
.
recommended
,
tseslint
.
configs
.
recommended
,
pluginVue
.
configs
[
'flat/recommended'
],
{
files
:
[
'**/*.{js,mjs,ts,mts,vue,jsx,tsx}'
],
languageOptions
:
{
globals
:
{
...
autoImportGlobals
.
globals
,
...
globals
.
browser
,
NodeJS
:
'readonly'
,
Recordable
:
'readonly'
,
ViteEnv
:
'readonly'
,
...
...
@@ -25,19 +28,11 @@ export default [
ConversationMessageItem
:
'readonly'
,
ConversationMessageItemInfo
:
'readonly'
,
},
parser
:
vueParser
,
parserOptions
:
{
parser
:
tsParser
,
sourceType
:
'module'
,
ecmaVersion
:
'latest'
,
ecmaFeatures
:
{
jsx
:
true
,
},
},
},
rules
:
{
'no-console'
:
'warn'
,
/* vue rule */
'vue/attribute-hyphenation'
:
'error'
,
'vue/multi-word-component-names'
:
'off'
,
'vue/component-name-in-template-casing'
:
[
...
...
@@ -57,6 +52,7 @@ export default [
},
],
/* typescript rule */
'@typescript-eslint/no-unused-vars'
:
[
'error'
,
{
...
...
@@ -69,9 +65,20 @@ export default [
},
},
eslintPluginPrettierRecommended
,
{
ignores
:
[
'dist/'
,
'public/'
],
files
:
[
'**/*.{ts,tsx,vue}'
],
languageOptions
:
{
parser
:
vueParser
,
parserOptions
:
{
parser
:
tseslint
.
parser
,
ecmaVersion
:
'latest'
,
ecmaFeatures
:
{
jsx
:
true
,
},
},
},
},
]
eslintPluginPrettierRecommended
,
)
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