Skip to content

Commit

Permalink
fix: add eslint-import-resolver-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Nov 30, 2021
1 parent bf41cfc commit 3967ee0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser.js
Expand Up @@ -28,6 +28,9 @@ module.exports = {
node: {
extensions: ['.mjs', '.js', '.ts', '.tsx', '.d.ts', '.json', '.jsx'],
},
typescript: {
alwaysTryTypes: true,
},
},
// Append 'ts' extensions to Airbnb 'import/extensions' setting
'import/extensions': ['.js', '.ts', '.tsx', '.mjs', '.jsx'],
Expand All @@ -36,7 +39,7 @@ module.exports = {
},
},

plugins: ['promise', 'jest', 'unicorn', 'react-hooks', '@typescript-eslint'],
plugins: ['promise', 'jest', 'unicorn', 'react-hooks', '@typescript-eslint', 'import'],

parserOptions: {
sourceType: 'module',
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -45,6 +45,7 @@
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-root-import": "^1.0.4",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
Expand Down

0 comments on commit 3967ee0

Please sign in to comment.