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
19f4e2e7
Commit
19f4e2e7
authored
Aug 26, 2020
by
yimj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eslint windows端配置
parent
997b8dfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
.eslintignore
.eslintignore
+1
-0
.eslintrc.js
.eslintrc.js
+1
-1
.prettierrc.js
.prettierrc.js
+2
-1
No files found.
.eslintignore
View file @
19f4e2e7
...
...
@@ -2,6 +2,7 @@ package.json
package-lock.json
yarn.lock
!.eslintrc.js
.eslintrc.js
# 忽略有所md文件
*.md
assets/
...
...
.eslintrc.js
View file @
19f4e2e7
...
...
@@ -33,7 +33,7 @@ module.exports = {
SwitchCase
:
1
// 针对switch case的缩进
}
],
'linebreak-style'
:
[
'
error
'
,
'unix'
],
'linebreak-style'
:
[
'
warn
'
,
'unix'
],
'no-irregular-whitespace'
:
[
1
,
{
skipComments
:
true
,
skipTemplates
:
true
,
skipRegExps
:
true
}
...
...
.prettierrc.js
View file @
19f4e2e7
...
...
@@ -31,5 +31,6 @@ module.exports = {
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens
:
'always'
arrowParens
:
'always'
,
endOfline
:
"auto"
}
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