You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/23 15:29:50 UTC

[incubator-annotator] 04/05: Copy Babel resolver alias config to ESLint config

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 3f0b35d8b12a12214f5b2ba4c93e872d68317f19
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 23 11:26:03 2019 -0400

    Copy Babel resolver alias config to ESLint config
    
    At the time of writing, eslint-import-resolver-babel-module does not
    find the monorepo Babel configuration so the alias configuration must be
    repeated in the ESLint configuration file.
---
 .eslintrc.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 2b8a0d7..a82fcb9 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -38,7 +38,11 @@ module.exports = {
   },
   settings: {
     'import/resolver': {
-      'babel-module': {},
+      'babel-module': {
+        alias: {
+          '^@annotator/(.+)$': '@annotator/\\1/src/index.js',
+        },
+      },
     },
   },
   overrides: [