Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gateway-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
gateway-ui
Commits
0bbddba0
Commit
0bbddba0
authored
Feb 19, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本回滚
parent
b05222a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
31 deletions
+12
-31
.eslintrc.js
.eslintrc.js
+11
-30
webpack.base.conf.js
build/webpack.base.conf.js
+1
-1
No files found.
.eslintrc.js
View file @
0bbddba0
// https://eslint.org/docs/user-guide/configuring
module
.
exports
=
{
module
.
exports
=
{
root
:
true
,
root
:
true
,
parserOptions
:
{
parserOptions
:
{
parser
:
'
babel-eslint
'
parser
:
'
babel-eslint
'
,
},
},
env
:
{
env
:
{
browser
:
true
,
browser
:
true
,
},
},
extends
:
[
extends
:
[
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
'
plugin:vue/essential
'
,
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'
standard
'
,
'
plugin:vue/essential
'
,
'
prettier
'
,
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'
standard
'
],
],
// required to lint *.vue files
plugins
:
[
plugins
:
[
'
vue
'
'
vue
'
,
'
prettier
'
,
],
],
// add your custom rules here
rules
:
{
rules
:
{
// allow async-await
'
prettier/prettier
'
:
'
error
'
,
'
generator-star-spacing
'
:
'
off
'
,
// 防止iview的标签报错
// allow debugger during development
'
vue/no-parsing-error
'
:
[
2
,
{
'
x-invalid-end-tag
'
:
false
}],
'
no-debugger
'
:
process
.
env
.
NODE_ENV
===
'
production
'
?
'
error
'
:
'
off
'
,
},
'
arrow-parens
'
:
0
,
// allow async-await
'
generator-star-spacing
'
:
0
,
"
eqeqeq
"
:
0
,
"
no-unused-vars
"
:
0
,
'
semi
'
:
0
,
"
handle-callback-err
"
:
0
,
"
no-array-constructor
"
:
0
,
"
no-irregular-whitespace
"
:
0
,
"
no-tabs
"
:
0
,
"
no-mixed-spaces-and-tabs
"
:
0
,
"
no-useless-escape
"
:
0
,
// allow debugger during development
'
no-debugger
'
:
process
.
env
.
NODE_ENV
===
'
production
'
?
2
:
0
,
}
}
}
build/webpack.base.conf.js
View file @
0bbddba0
...
@@ -40,7 +40,7 @@ module.exports = {
...
@@ -40,7 +40,7 @@ module.exports = {
},
},
module
:
{
module
:
{
rules
:
[
rules
:
[
//
...(config.dev.useEslint ? [createLintingRule()] : []),
...(
config
.
dev
.
useEslint
?
[
createLintingRule
()]
:
[]),
{
{
test
:
/
\.
vue$/
,
test
:
/
\.
vue$/
,
loader
:
'
vue-loader
'
,
loader
:
'
vue-loader
'
,
...
...
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