eslint-plugin-import

ESLint plugin with rules that help validate proper imports.

Installation

npm install --save-dev eslint-plugin-import

Configuration

{
    "parserOptions": {
        "ecmaVersion": 6,
        "sourceType": "module"
    },
    "extends": [
        "plugin:import/recommended"
    ]
}