Browse Source

update eslint settings

Yuki Takei 4 years ago
parent
commit
812abb3864
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/app/.eslintrc.js

+ 6 - 0
packages/app/.eslintrc.js

@@ -14,6 +14,12 @@ module.exports = {
     ScrollPosStyler: true,
     ScrollPosStyler: true,
     window: true,
     window: true,
   },
   },
+  settings: {
+    // resolve path aliases by eslint-import-resolver-typescript
+    'import/resolver': {
+      typescript: {},
+    },
+  },
   rules: {
   rules: {
     'no-restricted-imports': ['error', {
     'no-restricted-imports': ['error', {
       name: 'axios',
       name: 'axios',