diff --git a/package-lock.json b/package-lock.json index d22af10..0cbd8b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1023,6 +1023,15 @@ "resolve": "^1.5.0" } }, + "eslint-module-utils": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz", + "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", + "requires": { + "debug": "^2.6.8", + "pkg-dir": "^1.0.0" + } + }, "eslint-plugin-flowtype": { "version": "2.39.1", "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.39.1.tgz", @@ -1032,9 +1041,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==", "requires": { "contains-path": "^0.1.0", "debug": "^2.6.8", @@ -1046,25 +1055,6 @@ "minimatch": "^3.0.3", "read-pkg-up": "^2.0.0", "resolve": "^1.6.0" - }, - "dependencies": { - "eslint-module-utils": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz", - "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", - "requires": { - "debug": "^2.6.8", - "pkg-dir": "^1.0.0" - } - }, - "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", - "requires": { - "path-parse": "^1.0.5" - } - } } }, "eslint-plugin-jsx-a11y": { @@ -2332,9 +2322,9 @@ } }, "resolve": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", - "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "requires": { "path-parse": "^1.0.5" } diff --git a/package.json b/package.json index 23b3dcc..8f60059 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "dependencies": { "eslint-plugin-flowtype": "^2.39.1", - "eslint-plugin-import": "^2.11.0", + "eslint-plugin-import": "^2.13.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.4.0" }, diff --git a/unused.js b/unused.js index 75abe39..6498d1e 100644 --- a/unused.js +++ b/unused.js @@ -173,5 +173,11 @@ module.exports = { // Enforces a consistent naming pattern for type aliases. 'flowtype/type-id-match': 0, + + + // Disallow relative imports from parent directories + // Unused, too restrictive, although I do agree about imorting stuff from parent modules' + // subdirectories is generally a bad idea... ⚠️ + 'import/no-relative-parent-imports': 0, }, }