Skip to content
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

chore(deps): update ESLint plugins dependencies #3421

Merged
merged 3 commits into from Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintrc.js
Expand Up @@ -4,8 +4,13 @@ module.exports = {
'no-param-reassign': 0,
'import/no-extraneous-dependencies': 0,
'react/no-string-refs': 1,
// Avoid errors about `UNSAFE` lifecycles (e.g. `UNSAFE_componentWillMount`)
'react/no-deprecated': 0,
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
node: {
// The migration is an incremental process so we import TypeScript modules
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -108,9 +108,9 @@
"eslint-import-resolver-webpack": "0.10.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jasmine": "2.10.1",
"eslint-plugin-jest": "21.13.0",
"eslint-plugin-jest": "22.1.3",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-react": "7.7.0",
"eslint-plugin-react": "7.12.4",
"express": "4.16.4",
"inquirer": "5.2.0",
"jest": "24.0.0-alpha.12",
Expand Down
Expand Up @@ -281,7 +281,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement-
// test that rendering has been called during init with isFirstRendering = true
expect(rendering).toHaveBeenCalledTimes(1);
// test if isFirstRendering is true during init
expect(rendering).lastCalledWith(expect.any(Object), true);
expect(rendering).toHaveBeenLastCalledWith(expect.any(Object), true);

const firstRenderingOptions = rendering.mock.calls[0][0];
expect(firstRenderingOptions.canRefine).toBe(false);
Expand All @@ -299,7 +299,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement-

// test that rendering has been called during init with isFirstRendering = false
expect(rendering).toHaveBeenCalledTimes(2);
expect(rendering).lastCalledWith(expect.any(Object), false);
expect(rendering).toHaveBeenLastCalledWith(expect.any(Object), false);

const secondRenderingOptions = rendering.mock.calls[1][0];
expect(secondRenderingOptions.canRefine).toBe(false);
Expand Down Expand Up @@ -502,7 +502,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement-
createURL: () => '#',
});

expect(rendering).lastCalledWith(
expect(rendering).toHaveBeenLastCalledWith(
expect.objectContaining({
canToggleShowMore: false,
}),
Expand Down Expand Up @@ -554,7 +554,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement-
createURL: () => '#',
});

expect(rendering).lastCalledWith(
expect(rendering).toHaveBeenLastCalledWith(
expect.objectContaining({
canToggleShowMore: false,
}),
Expand Down Expand Up @@ -665,7 +665,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement-
createURL: () => '#',
});

expect(rendering).lastCalledWith(
expect(rendering).toHaveBeenLastCalledWith(
expect.objectContaining({
canToggleShowMore: true,
items: [
Expand Down
6 changes: 3 additions & 3 deletions src/lib/__tests__/utils-test.js
Expand Up @@ -983,7 +983,7 @@ describe('utils.aroundLatLngToPosition', () => {
it.each([['10a,12'], ['10. 12']])(
'expect to throw an error with: %j',
input => {
expect(() => utils.aroundLatLngToPosition(input)).toThrowError(
expect(() => utils.aroundLatLngToPosition(input)).toThrow(
`Invalid value for "aroundLatLng" parameter: "${input}"`
);
}
Expand Down Expand Up @@ -1045,14 +1045,14 @@ describe('utils.insideBoundingBoxToBoundingBox', () => {
it.each([[''], ['10'], ['10,12'], ['10,12,12'], ['10. 15,12,12']])(
'expect to throw an error with: %j',
input => {
expect(() => utils.insideBoundingBoxToBoundingBox(input)).toThrowError(
expect(() => utils.insideBoundingBoxToBoundingBox(input)).toThrow(
`Invalid value for "insideBoundingBox" parameter: "${input}"`
);
}
);

it.each([[[]], [[[]]]])('expect to throw an error with: %j', input => {
expect(() => utils.insideBoundingBoxToBoundingBox(input)).toThrowError(
expect(() => utils.insideBoundingBoxToBoundingBox(input)).toThrow(
`Invalid value for "insideBoundingBox" parameter: [${input}]`
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/configure/__tests__/configure-test.js
Expand Up @@ -6,6 +6,6 @@ describe('configure', () => {
() => configure(new Date()),
() => configure(() => {}),
() => configure(/ok/),
].forEach(widget => expect(widget).toThrowError(/Usage/));
].forEach(widget => expect(widget).toThrow(/Usage/));
});
});
44 changes: 32 additions & 12 deletions yarn.lock
Expand Up @@ -4090,7 +4090,7 @@ doctrine@1.5.0:
esutils "^2.0.2"
isarray "^1.0.0"

doctrine@^2.0.2, doctrine@^2.1.0:
doctrine@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==
Expand Down Expand Up @@ -4556,10 +4556,10 @@ eslint-plugin-jasmine@2.10.1:
resolved "https://registry.yarnpkg.com/eslint-plugin-jasmine/-/eslint-plugin-jasmine-2.10.1.tgz#5733b709e751f4bc40e31e1c16989bd2cdfbec97"
integrity sha1-VzO3CedR9LxA4x4cFpib0s377Jc=

eslint-plugin-jest@21.13.0:
version "21.13.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.13.0.tgz#9fc903158d79e953aefd861a55e8a8c9f6ab3d36"
integrity sha512-tR8bn4tZk1I5i6HstvucC5tprxJKeuyh0baP7xYasQq/RS/hPcmAgUE42d52R1ysg719OPKsFqkJDuyvNeolvg==
eslint-plugin-jest@22.1.3:
version "22.1.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.1.3.tgz#4444108dfcddc5d2117ed6dc551f529d7e73a99e"
integrity sha512-JTZTI6WQoNruAugNyCO8fXfTONVcDd5i6dMRFA5g3rUFn1UDDLILY1bTL6alvNXbW2U7Sc2OSpi8m08pInnq0A==

eslint-plugin-prettier@3.0.1:
version "3.0.1"
Expand All @@ -4576,15 +4576,18 @@ eslint-plugin-prettier@^2.2.0:
fast-diff "^1.1.1"
jest-docblock "^21.0.0"

eslint-plugin-react@7.7.0:
version "7.7.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.7.0.tgz#f606c719dbd8a1a2b3d25c16299813878cca0160"
integrity sha512-KC7Snr4YsWZD5flu6A5c0AcIZidzW3Exbqp7OT67OaD2AppJtlBr/GuPrW/vaQM/yfZotEvKAdrxrO+v8vwYJA==
eslint-plugin-react@7.12.4:
version "7.12.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
integrity sha512-1puHJkXJY+oS1t467MjbqjvX53uQ05HXwjqDgdbGBqf5j9eeydI54G3KwiJmWciQ0HTBacIKw2jgwSBSH3yfgQ==
dependencies:
doctrine "^2.0.2"
has "^1.0.1"
array-includes "^3.0.3"
doctrine "^2.1.0"
has "^1.0.3"
jsx-ast-utils "^2.0.1"
prop-types "^15.6.0"
object.fromentries "^2.0.0"
prop-types "^15.6.2"
resolve "^1.9.0"

eslint-scope@3.7.1:
version "3.7.1"
Expand Down Expand Up @@ -8557,6 +8560,16 @@ object.fromentries@^1.0.0:
function-bind "^1.1.1"
has "^1.0.1"

object.fromentries@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.0.tgz#49a543d92151f8277b3ac9600f1e930b189d30ab"
integrity sha512-9iLiI6H083uiqUuvzyY6qrlmc/Gz8hLQFOcb/Ri/0xXFkSNS3ctV+CbE6yM2+AnkYfOB3dGjdzC0wrMLIhQICA==
dependencies:
define-properties "^1.1.2"
es-abstract "^1.11.0"
function-bind "^1.1.1"
has "^1.0.1"

object.getownpropertydescriptors@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16"
Expand Down Expand Up @@ -10249,6 +10262,13 @@ resolve@^1.1.6, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0, resolve@^1.6.0,
dependencies:
path-parse "^1.0.6"

resolve@^1.9.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba"
integrity sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==
dependencies:
path-parse "^1.0.6"

restore-cursor@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
Expand Down