-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue#16 one var #23
base: master
Are you sure you want to change the base?
Issue#16 one var #23
Conversation
Seems like this commit also fixes 'prefer const' eslint error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good PR, just remove the line and the file and it's good to be merged 👍
.eslintrc.js
Outdated
@@ -15,7 +15,7 @@ module.exports = { | |||
"prefer-const": 1, // 4 errors | |||
"no-unused-vars": 1, // 3 errors | |||
"no-use-before-define": 1, // 7 errors | |||
"one-var": 1, // 8 errors | |||
"one-var": 2, // 8 errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the line completely and it will use the default value from airbnb-base (which is error also)
package-lock.json
Outdated
@@ -0,0 +1,4363 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as the other PR, please, remove this file
lib/cli/start.js
Outdated
let port = program.port; | ||
const host = program.host || '127.0.0.1'; | ||
const dbname = program.dbname || '-deployd'; | ||
let mongoPort = '27017'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once your other PR has been merged, you can change this into const
Fixed eslint errors for 'one-var' rule
Description
3 files needed changes. In which some variables needed their own declaration
Motivation and Context
It was requested by NicolasRitouet
#16
How Has This Been Tested?
npm run test command
the code was tested using jest
Screenshots (if appropriate):
Types of changes
Checklist: