-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix lint errors #46
Conversation
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.
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'; |
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.
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" |
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.
remove winston dependency
@@ -8,6 +8,21 @@ | |||
"mocha": true | |||
}, | |||
"rules": { | |||
"no-param-reassign": 0, |
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.
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}], |
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.
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()); |
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.
please don't use winston logger
* 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
All the lint errors are fixed.