-
Notifications
You must be signed in to change notification settings - Fork 38
fix: eslint errors #243
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: eslint errors #243
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,13 @@ | ||
| module.exports = { "extends": "airbnb-base" }; | ||
| module.exports = { | ||
| "extends": "airbnb-base", | ||
| env: { | ||
| node: true | ||
| }, | ||
| rules: { | ||
| // Tweak rules set by airbnb config | ||
| 'no-console': 'off', // allow console | ||
| 'import/no-extraneous-dependencies': ["error", {"optionalDependencies": true}], // Allow optional dep import | ||
| // Warn unresolved imports ie: idb-connector import will be unresolved when on non IBM i system. | ||
| 'import/no-unresolved': ['off', { commonjs: true }], | ||
| }, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| const lib = 'NODETKTEST'; | ||
| const createLib = `CRTLIB LIB(${lib}) TYPE(*TEST) TEXT('Used to test Node.js toolkit')`; | ||
| const findLib = `SELECT SCHEMA_NAME FROM qsys2.sysschemas WHERE SCHEMA_NAME = '${lib}'`; | ||
| const dataQueue = 'TESTQ'; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixes |
||
| const dataArea = 'TESTDA'; | ||
|
|
||
| function checkObjectExistsSSH(config, object = {}, callback) { | ||
| /* eslint-disable global-require */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,7 +132,6 @@ describe('iProd Functional Tests', () => { | |
| // REST transport currently failing with 414 URI Too Long response code | ||
| // The requested URL's length exceeds the capacity limit for this server | ||
| describe('getInstalledProducts', () => { | ||
| // eslint-disable-next-line func-names | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for this. |
||
| it('returns info for installed products', (done) => { | ||
| const connection = new iConn(database, username, password, restOptions); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,8 @@ describe('DataQueue Functional Tests', () => { | |
| checkObjectExists(config, dqName, '*DTAQ', (error) => { | ||
| if (error) { throw error; } | ||
|
|
||
| checkObjectExists(config, dqName2, '*DTAQ', (error) => { | ||
| if (error) { throw error; } | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixes |
||
| checkObjectExists(config, dqName2, '*DTAQ', (error2) => { | ||
| if (error2) { throw error2; } | ||
| done(); | ||
| }); | ||
| }); | ||
|
|
||
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.
Fixes