Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
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
lhfe
mould-vuecli3
Commits
4fde1f1a
Commit
4fde1f1a
authored
Aug 26, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lint
parent
80169c8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
.editorconfig
.editorconfig
+3
-1
.eslintrc.js
.eslintrc.js
+7
-0
vue.config.js
vue.config.js
+1
-1
No files found.
.editorconfig
View file @
4fde1f1a
root = true
# 对所有文件有效 //[*js]只对js文件有效
# 对所有文件有效.
# [*js]只对js文件有效
# [*.{js,jsx,ts,tsx,vue}]对指定文件类型有效
[*]
charset = utf-8
...
...
.eslintrc.js
View file @
4fde1f1a
...
...
@@ -3,6 +3,13 @@ module.exports = {
env
:
{
node
:
true
},
// 1: ESLint with error prevention only
// extends: ['plugin:vue/essential', 'eslint:recommended'],
// 2: ESLint + Airbnb config
// extends: ['plugin:vue/essential', '@vue/airbnb',],
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends
:
[
'plugin:vue/essential'
,
'eslint:recommended'
,
'@vue/prettier'
],
plugins
:
[],
parserOptions
:
{
...
...
vue.config.js
View file @
4fde1f1a
...
...
@@ -20,7 +20,7 @@ module.exports = {
}
}
},
// css 相关选项
lintOnSave
:
true
,
css
:
{
/*为预处理器 loader 传递自定义选项*/
loaderOptions
:
{
...
...
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