Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
6a58eae0
Commit
6a58eae0
authored
Aug 31, 2021
by
gengshaojing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: eslint prettier 规则
parent
15262b30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.eslintrc.js
.eslintrc.js
+2
-0
package.json
package.json
+0
-2
No files found.
.eslintrc.js
View file @
6a58eae0
...
...
@@ -11,5 +11,7 @@ module.exports = {
"no-console"
:
process
.
env
.
NODE_ENV
===
"production"
?
"warn"
:
"off"
,
"no-debugger"
:
process
.
env
.
NODE_ENV
===
"production"
?
"warn"
:
"off"
,
"prettier/prettier"
:
"error"
,
"vue/script-setup-uses-vars"
:
"off"
,
"no-unused-vars"
:
"off"
,
},
};
package.json
View file @
6a58eae0
...
...
@@ -67,11 +67,9 @@
},
"lint-staged"
:
{
"src/**/*.{js,vue}"
:
[
"prettier --write"
,
"eslint --fix"
],
"server/**/*.js"
:
[
"prettier --write"
,
"eslint --fix"
]
}
...
...
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