diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-14 01:35:27 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-14 01:35:27 -0600 |
commit | 34b8cdf87ce8e36e5f442bf7068869833f35243b (patch) | |
tree | 84f65c46545ea0033fd6e5b59b9ea7827b546a53 /.eslintrc | |
parent | e5f446b7ca4bc54ffaf527e4c57dea2bee2f79f6 (diff) | |
download | gitlab-ce-34b8cdf87ce8e36e5f442bf7068869833f35243b.tar.gz |
enable eslint to resolve webpack modules according to webpack.config.jseslint-resolve-webpack-modules
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.eslintrc b/.eslintrc index 1a2cd821af7..0fcd866778f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,12 +12,18 @@ "localStorage": false }, "plugins": [ - "filenames" + "filenames", + "import" ], + "settings": { + "import/resolver": { + "webpack": { + "config": "./config/webpack.config.js" + } + } + }, "rules": { "filenames/match-regex": [2, "^[a-z0-9_]+(.js)?$"], - "no-multiple-empty-lines": ["error", { "max": 1 }], - "import/no-extraneous-dependencies": "off", - "import/no-unresolved": "off" + "no-multiple-empty-lines": ["error", { "max": 1 }] } } |