Skip to content

fix lint errors #46

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

Conversation

riteshsangwan
Copy link

All the lint errors are fixed.

@parthshah parthshah merged commit 4a699bf into topcoder-platform:feature/api-enhancements Mar 2, 2017
@parthshah parthshah mentioned this pull request Mar 2, 2017
Copy link
Contributor

@parthshah parthshah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged & then reverted the changes into the branch. Please review my comments. We want to stick to the ES lint config that was specified as much as possible. If you feel certain rules should be modified please raise those.

/**
* Sync the database models to db tables.
*/

import winston from 'winston';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are using bunyan not winston

@@ -47,7 +48,8 @@
"pg": "^4.5.5",
"pg-native": "^1.10.0",
"sequelize": "^3.23.0",
"tc-core-library-js": "^1.0.8"
"tc-core-library-js": "^1.0.8",
"winston": "^2.3.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove winston dependency

@@ -8,6 +8,21 @@
"mocha": true
},
"rules": {
"no-param-reassign": 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to use the default settings with eslint-config-airbnb base. Please don't modify the lint rules.

"no-unused-expressions": 0,
"newline-per-chained-call": 0,
"no-underscore-dangle": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed this to
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js"]}],

@@ -23,7 +26,7 @@ const req = http.request(options, (res) => {

res.on('end', () => {
const body = Buffer.concat(chunks);
console.log(body.toString());
winston.info(body.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use winston logger

parthshah added a commit that referenced this pull request Mar 6, 2017
* TOPCODER CONNECT PROJECTS API ENHANCEMENTS WINNING SUBMISSION (#45)

* update readme, update node js version

* fix #34

* fix #37, keep project history

* move project history update to core API's from event handlers

* fix #43

* add unit tests

* update direct mock service

* update swagger.yaml

* add sync script

* update postman

* update readme

* update tests

* filter members by copilot role, when promoting copilot

* fixing lint errors

* fix lint errors (#46)

* Revert "fix lint errors" (#47)

* updating lint config

* fix lint errors (#48)

* updating eslint and cleaning up package.json

* Fixing path
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