Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit a4fcf98

Browse files
author
Rick Bergfalk
committed
Update eslint-config-airbnb-base (major)
1 parent fabd765 commit a4fcf98

11 files changed

Lines changed: 18 additions & 18 deletions

File tree

server/drivers/cassandra/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('drivers/cassandra', function() {
5252
});
5353

5454
it('runQuery over limit', async function() {
55-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
55+
const limitedConnection = { ...connection, maxRows: 2 };
5656
const results = await cassandra.runQuery(
5757
'SELECT * FROM test.test;',
5858
limitedConnection

server/drivers/crate/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('drivers/crate', function() {
5252
});
5353

5454
it('runQuery over limit', function() {
55-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
55+
const limitedConnection = { ...connection, maxRows: 2 };
5656
return crate
5757
.runQuery('SELECT * FROM test;', limitedConnection)
5858
.then(results => {

server/drivers/hdb/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('drivers/hdb', function() {
5959
});
6060

6161
it('runQuery over limit', function() {
62-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
62+
const limitedConnection = { ...connection, maxRows: 2 };
6363
return hdb
6464
.runQuery('SELECT * FROM test;', limitedConnection)
6565
.then(results => {

server/drivers/mock/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function cartesianify(rows, field) {
7373
} else {
7474
rows.forEach(row => {
7575
field.values.forEach(value => {
76-
const newRow = Object.assign({}, row, { [field.name]: value });
76+
const newRow = { ...row, [field.name]: value };
7777
newRows.push(newRow);
7878
});
7979
});

server/drivers/mock/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('drivers/mock', function() {
2525
});
2626

2727
it('runQuery under limit', function() {
28-
const c = Object.assign({}, connection, { maxRows: 10000 });
28+
const c = { ...connection, maxRows: 10000 };
2929
const query = `
3030
-- dimensions = product 5
3131
`;
@@ -36,7 +36,7 @@ describe('drivers/mock', function() {
3636
});
3737

3838
it('runQuery over limit', function() {
39-
const c = Object.assign({}, connection, { maxRows: 10 });
39+
const c = { ...connection, maxRows: 10 };
4040
const query = `
4141
-- dimensions = product 10, color 10, orderdate 500
4242
`;

server/drivers/mysql/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('drivers/mysql', function() {
5151
});
5252

5353
it('runQuery over limit', function() {
54-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
54+
const limitedConnection = { ...connection, maxRows: 2 };
5555
return mysql
5656
.runQuery('SELECT * FROM test;', limitedConnection)
5757
.then(results => {

server/drivers/presto/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('drivers/presto', function() {
7272
});
7373

7474
it('runQuery over limit', function() {
75-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
75+
const limitedConnection = { ...connection, maxRows: 2 };
7676
return presto
7777
.runQuery('SELECT * FROM test LIMIT 10', limitedConnection)
7878
.then(results => {

server/drivers/vertica/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('drivers/vertica', function() {
5555
});
5656

5757
it('runQuery over limit', function() {
58-
const limitedConnection = Object.assign({}, connection, { maxRows: 2 });
58+
const limitedConnection = { ...connection, maxRows: 2 };
5959
return vertica
6060
.runQuery('SELECT * FROM test;', limitedConnection)
6161
.then(results => {

server/lib/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (warnings.length) {
1818
warnings.forEach(warning => console.warn(warning));
1919
}
2020

21-
const all = Object.assign({}, defaultConfig, envConfig, fileConfig, cliConfig);
21+
const all = { ...defaultConfig, ...envConfig, ...fileConfig, ...cliConfig };
2222

2323
// Clean string boolean values
2424
Object.keys(all).forEach(key => {

server/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)