From e28d973d342c00a8ed4a63f00597179ec91548c3 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Thu, 21 Jun 2018 23:47:35 +0000 Subject: [PATCH 1/3] chore(package): update eslint-config-airbnb-base to version 13.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8189c63..7672d21 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "babel-preset-minify": "^0.4.2", "codecov": "^3.0.2", "eslint": "^5.0.0", - "eslint-config-airbnb-base": "^12.1.0", + "eslint-config-airbnb-base": "^13.0.0", "eslint-plugin-import": "^2.8.0", "husky": "^0.14.3", "jest": "^23.1.0", From 15b776cbe4f131e4b7b0efe5f98d729ae6c1f6bf Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Thu, 21 Jun 2018 23:51:49 +0000 Subject: [PATCH 2/3] chore(package): update lockfile https://npm.im/greenkeeper-lockfile --- package-lock.json | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd9eaec..7dcb927 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5678,12 +5678,14 @@ } }, "eslint-config-airbnb-base": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz", - "integrity": "sha512-/vjm0Px5ZCpmJqnjIzcFb9TKZrKWz0gnuG/7Gfkt0Db1ELJR51xkZth+t14rYdqWgX836XbuxtArbIHlVhbLBA==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.0.0.tgz", + "integrity": "sha512-hUFXRlE6AY84z0qYh4wKdtSF4EqDnyT8sxrvTpcXCV4ENSLF8li5yNA1yDM26iinH8Ierbpc4lv8Rp62uX6VSQ==", "dev": true, "requires": { - "eslint-restricted-globals": "^0.1.1" + "eslint-restricted-globals": "^0.1.1", + "object.assign": "^4.1.0", + "object.entries": "^1.0.4" } }, "eslint-import-resolver-node": { @@ -10628,6 +10630,30 @@ } } }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.entries": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.0.4.tgz", + "integrity": "sha1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.6.1", + "function-bind": "^1.1.0", + "has": "^1.0.1" + } + }, "object.getownpropertydescriptors": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", From 8ee5ddcbe4b954560e957e4dbf3ad8fd2bc68b8d Mon Sep 17 00:00:00 2001 From: Jae Bradley Date: Tue, 26 Jun 2018 14:30:24 -0400 Subject: [PATCH 3/3] style(eslint): update dependencies, fix linting errors --- package-lock.json | 24 ++++++++++++------------ package.json | 4 ++-- src/executables/uber-time.js | 2 +- src/executables/uber.js | 1 - src/services/formatters.js | 6 +++--- src/services/formatters.test.js | 4 +++- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7dcb927..71ccaad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5522,9 +5522,9 @@ } }, "eslint": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.0.0.tgz", - "integrity": "sha512-MA0YWJLeK7BPEBxJCINvKnQdKpeTwbac3Xonh0PPFjWYZkowZf+Xl30lJWJ/BWOqFQdAdPcyOh0aBqlbH6ojAg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.0.1.tgz", + "integrity": "sha512-D5nG2rErquLUstgUaxJlWB5+gu+U/3VDY0fk/Iuq8y9CUFy/7Y6oF4N2cR1tV8knzQvciIbfqfohd359xTLIKQ==", "dev": true, "requires": { "ajv": "^6.5.0", @@ -5699,9 +5699,9 @@ }, "dependencies": { "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "dev": true, "requires": { "path-parse": "^1.0.5" @@ -5720,9 +5720,9 @@ } }, "eslint-plugin-import": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.11.0.tgz", - "integrity": "sha1-Fa7qN6Z0mdhI6OmBgG1GJ7VQOBY=", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.13.0.tgz", + "integrity": "sha512-t6hGKQDMIt9N8R7vLepsYXgDfeuhp6ZJSgtrLEDxonpSubyxUZHjhm6LsAaZX8q6GYVxkbT3kTsV9G5mBCFR6A==", "dev": true, "requires": { "contains-path": "^0.1.0", @@ -5805,9 +5805,9 @@ } }, "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "dev": true, "requires": { "path-parse": "^1.0.5" diff --git a/package.json b/package.json index 7672d21..7d1dab9 100644 --- a/package.json +++ b/package.json @@ -28,9 +28,9 @@ "babel-jest": "^23.0.1", "babel-preset-minify": "^0.4.2", "codecov": "^3.0.2", - "eslint": "^5.0.0", + "eslint": "^5.0.1", "eslint-config-airbnb-base": "^13.0.0", - "eslint-plugin-import": "^2.8.0", + "eslint-plugin-import": "^2.13.0", "husky": "^0.14.3", "jest": "^23.1.0", "semantic-release": "^15.0.0", diff --git a/src/executables/uber-time.js b/src/executables/uber-time.js index 1db6e79..b1d230d 100644 --- a/src/executables/uber-time.js +++ b/src/executables/uber-time.js @@ -3,7 +3,7 @@ /* eslint-disable no-console */ import program from 'commander'; -import { buildTimeEstimates } from '../'; +import { buildTimeEstimates } from '..'; program .description('Get Time-To-Pickup Estimates') diff --git a/src/executables/uber.js b/src/executables/uber.js index ddb2c42..5d1c1aa 100644 --- a/src/executables/uber.js +++ b/src/executables/uber.js @@ -9,4 +9,3 @@ program.version(pkg.version) .command('price', 'get price estimate') .command('time', 'get time to pickup estimate') .parse(process.argv); - diff --git a/src/services/formatters.js b/src/services/formatters.js index 4fa9791..9c1fbe1 100644 --- a/src/services/formatters.js +++ b/src/services/formatters.js @@ -2,9 +2,9 @@ import { DISTANCE_UNIT_ABBREVIATIONS } from './converters'; import symbols from './symbols'; const formatSurgeMultiplier = surgeMultiplier => ( - surgeMultiplier > 1 ? - `${surgeMultiplier}x ${symbols.SURGE_EXISTS}` : - symbols.NOT_APPLICABLE + surgeMultiplier > 1 + ? `${surgeMultiplier}x ${symbols.SURGE_EXISTS}` + : symbols.NOT_APPLICABLE ); const formatDistance = ({ value, unit }) => { diff --git a/src/services/formatters.test.js b/src/services/formatters.test.js index b72a58a..c63ee07 100644 --- a/src/services/formatters.test.js +++ b/src/services/formatters.test.js @@ -1,4 +1,6 @@ -import { formatSeconds, formatSurgeMultiplier, formatDistance, formatPriceRange } from './formatters'; +import { + formatSeconds, formatSurgeMultiplier, formatDistance, formatPriceRange, +} from './formatters'; import DistanceUnit from '../data/DistanceUnit'; import symbols from './symbols';