Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Issue#16 one var #23

wants to merge 3 commits into from

Conversation

Kapnobatai3434
Copy link
Contributor

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

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • [x ] I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • [x ] All new and existing tests passed.

@Kapnobatai3434
Copy link
Contributor Author

Seems like this commit also fixes 'prefer const' eslint error

Copy link
Member

@NicolasRitouet NicolasRitouet left a 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
Copy link
Member

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)

@@ -0,0 +1,4363 @@
{
Copy link
Member

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';
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants