Eslint-plugin-import: How to config moduleDirectory?

Created on 26 May 2017  路  1Comment  路  Source: benmosher/eslint-plugin-import

For example:

"settings": {
    "import/parser": "babel-eslint",
    "import/resolve": {
      "moduleDirectory": ["node_modules", "src"]
    }
  },

Most helpful comment

My problem has been solved. This is my code:

"settings": {
    "import/resolver": {
      "node": {
        "moduleDirectory": [
          "node_modules",
          "src"
        ]
      }
    }
  }

>All comments

My problem has been solved. This is my code:

"settings": {
    "import/resolver": {
      "node": {
        "moduleDirectory": [
          "node_modules",
          "src"
        ]
      }
    }
  }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhettlivingston picture rhettlivingston  路  31Comments

yamov picture yamov  路  29Comments

mieszko4 picture mieszko4  路  25Comments

Robinfr picture Robinfr  路  27Comments

johanneswilm picture johanneswilm  路  21Comments