From e22c0fda849460a5d3968f20014611ce72b429a6 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Fri, 5 May 2017 21:38:26 +0300 Subject: [PATCH] lint: add import/no-unresolved ESLint rule PR-URL: https://github.com/metarhia/JSTP/pull/133 Reviewed-By: Mykola Bilochub --- .eslintrc.yml | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.eslintrc.yml b/.eslintrc.yml index 8a10b415..d208f6c1 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -2,6 +2,8 @@ env: node: true es6: true extends: 'eslint:recommended' +plugins: + - import rules: indent: - error @@ -173,3 +175,6 @@ rules: template-curly-spacing: - error - never + import/no-unresolved: + - error + - commonjs: true diff --git a/package.json b/package.json index dc93dba1..8da6808e 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "chai": "^3.5.0", "chai-spies": "^0.7.1", "eslint": "^3.12.2", + "eslint-plugin-import": "^2.2.0", "karma": "^1.3.0", "karma-chrome-launcher": "^2.0.0", "karma-firefox-launcher": "^1.0.0",