From 1cb9d4f9e455c076313f53cb7ac5003246740b02 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Mon, 23 Oct 2017 17:14:46 +0100 Subject: [PATCH] Adjust NODE_PATH test to fix linting issue Fixes https://travis-ci.org/avajs/ava/jobs/291603944 by changing the name of the module being imported. This failure is most likely caused by . I've updated the package lock to pull in the newer eslint-plugin-import as well. --- package-lock.json | 42 ++++++++++++------- test/fixture/node-paths.js | 2 +- .../deep/nested/{path => the-path}/bar.js | 0 3 files changed, 29 insertions(+), 15 deletions(-) rename test/fixture/node-paths/deep/nested/{path => the-path}/bar.js (100%) diff --git a/package-lock.json b/package-lock.json index 3b462fe0d..207694048 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1755,14 +1755,13 @@ } }, "eslint-import-resolver-node": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz", - "integrity": "sha1-Wt2BBujJKNssuiMrzZ76hG49oWw=", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.1.tgz", + "integrity": "sha512-yUtXS15gIcij68NmXmP9Ni77AQuCN0itXbCc/jWd8C6/yKZaSNXicpC8cgvjnxVdmfsosIXrjpzFq7GcDryb6A==", "dev": true, "requires": { "debug": "2.6.9", - "object-assign": "4.1.1", - "resolve": "1.1.7" + "resolve": "1.4.0" }, "dependencies": { "debug": { @@ -1773,6 +1772,15 @@ "requires": { "ms": "2.0.0" } + }, + "resolve": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", + "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } } } }, @@ -1814,16 +1822,16 @@ } }, "eslint-plugin-import": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.6.0.tgz", - "integrity": "sha512-JdkYDmMMjhxW6X/IVclD+vQXO6e2nJJT4cKcyTw95mvBCWkr8THXKFhc+WCvGvOscjGuLQzUB7tBeJddrg2jig==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz", + "integrity": "sha512-Rf7dfKJxZ16QuTgVv1OYNxkZcsu/hULFnC+e+w0Gzi6jMC3guQoWQgxYxc54IDRinlb6/0v5z/PxxIKmVctN+g==", "dev": true, "requires": { "builtin-modules": "1.1.1", "contains-path": "0.1.0", "debug": "2.6.9", "doctrine": "1.5.0", - "eslint-import-resolver-node": "0.2.3", + "eslint-import-resolver-node": "0.3.1", "eslint-module-utils": "2.1.1", "has": "1.0.1", "lodash.cond": "4.5.2", @@ -3190,9 +3198,9 @@ } }, "function-bind": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz", - "integrity": "sha1-FhdnFMgBeY5Ojyz391KUZ7tKV3E=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, "function-loop": { @@ -3361,7 +3369,7 @@ "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", "dev": true, "requires": { - "function-bind": "1.1.0" + "function-bind": "1.1.1" } }, "has-ansi": { @@ -6380,6 +6388,12 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, "path-to-regexp": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", @@ -9643,7 +9657,7 @@ "eslint-config-xo": "0.18.2", "eslint-formatter-pretty": "1.1.0", "eslint-plugin-ava": "4.2.1", - "eslint-plugin-import": "2.6.0", + "eslint-plugin-import": "2.8.0", "eslint-plugin-no-use-extend-native": "0.3.12", "eslint-plugin-promise": "3.5.0", "eslint-plugin-unicorn": "2.1.2", diff --git a/test/fixture/node-paths.js b/test/fixture/node-paths.js index 1aeae98d3..3e6cb409f 100644 --- a/test/fixture/node-paths.js +++ b/test/fixture/node-paths.js @@ -1,5 +1,5 @@ import foo from 'nested/foo'; // eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved -import bar from 'path/bar'; // eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved +import bar from 'the-path/bar'; // eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved import test from '../../'; test('relative require', t => { diff --git a/test/fixture/node-paths/deep/nested/path/bar.js b/test/fixture/node-paths/deep/nested/the-path/bar.js similarity index 100% rename from test/fixture/node-paths/deep/nested/path/bar.js rename to test/fixture/node-paths/deep/nested/the-path/bar.js