1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

chore - remove standard and use individual config

Standard is not as up to date and still uses a old eslint version.
Instead, use the airbnb default with a couple of modifications.

All required changes are included.
This commit is contained in:
Ruben Bridgewater
2017-11-28 21:38:21 -02:00
parent 0206ecbf51
commit 2b4ab10305
97 changed files with 888 additions and 673 deletions

View File

@@ -9,7 +9,7 @@ describe('createClient options', () => {
it('pass the options in the second parameter after a port', () => {
const options = unifyOptions(1234, {
option1: true,
option2 () {}
option2() {}
})
assert.strictEqual(Object.keys(options).length, 4)
assert(options.option1)
@@ -21,7 +21,7 @@ describe('createClient options', () => {
it('pass the options in the third parameter after a port and host being set to null', () => {
const options = unifyOptions(1234, null, {
option1: true,
option2 () {}
option2() {}
})
assert.strictEqual(Object.keys(options).length, 4)
assert(options.option1)
@@ -33,7 +33,7 @@ describe('createClient options', () => {
it('pass the options in the third parameter after a port and host being set to undefined', () => {
const options = unifyOptions(1234, undefined, {
option1: true,
option2 () {}
option2() {}
})
assert.strictEqual(Object.keys(options).length, 4)
assert(options.option1)
@@ -45,7 +45,7 @@ describe('createClient options', () => {
it('pass the options in the third parameter after a port and host', () => {
const options = unifyOptions('1234', 'localhost', {
option1: true,
option2 () {}
option2() {}
})
assert.strictEqual(Object.keys(options).length, 4)
assert(options.option1)
@@ -68,7 +68,7 @@ describe('createClient options', () => {
it('pass the options in the second parameter after a port', () => {
const options = unifyOptions('/tmp/redis.sock', {
option1: true,
option2 () {},
option2() {},
option3: [1, 2, 3]
})
assert.strictEqual(Object.keys(options).length, 4)
@@ -81,7 +81,7 @@ describe('createClient options', () => {
it('pass the options in the third parameter after a port and host being set to null', () => {
const options = unifyOptions('/tmp/redis.sock', null, {
option1: true,
option2 () {}
option2() {}
})
assert.strictEqual(Object.keys(options).length, 3)
assert(options.option1)
@@ -120,7 +120,8 @@ describe('createClient options', () => {
option: [1, 2, 3]
})
unhookIntercept()
assert.strictEqual(text,
assert.strictEqual(
text,
'nodeRedis: WARNING: You passed the db option twice!\n' +
'nodeRedis: WARNING: You passed the port option twice!\n' +
'nodeRedis: WARNING: You passed the password option twice!\n'