From 36ebb0a7006e8e73bcbddfaf7c3f12b92dc238df Mon Sep 17 00:00:00 2001 From: Morten Noddeland Date: Mon, 8 Jul 2019 13:45:35 +0200 Subject: [PATCH] Fix issue that triggered 'eslint(import/no-unresolved)' errors --- javascript/index.js | 7 ------- typescript/index.js | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/javascript/index.js b/javascript/index.js index 6db9573..c4befc9 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -3,12 +3,5 @@ const jsRules = require("./rules"); module.exports = { extends: ["airbnb-base", "plugin:import/errors", "plugin:import/warnings"], parser: "babel-eslint", - settings: { - "import/resolver": { - node: { - extensions: [".js", ".jsx", ".ts", ".tsx"] - } - } - }, rules: jsRules }; diff --git a/typescript/index.js b/typescript/index.js index b38c2b9..b809bf5 100644 --- a/typescript/index.js +++ b/typescript/index.js @@ -6,5 +6,12 @@ module.exports = { rules: { "@typescript-eslint/indent": ["error", 2], "@typescript-eslint/camelcase": false + }, + settings: { + "import/resolver": { + node: { + extensions: [".js", ".jsx", ".ts", ".tsx"] + } + } } };