Skip to content

Commit

Permalink
Use eslint-import-resolver-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak committed Mar 1, 2024
1 parent d30df68 commit 74e2eb3
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 7 deletions.
16 changes: 13 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
Expand All @@ -33,6 +32,17 @@
]
},
"parserOptions": {
"project": "./tsconfig.json",
"project": "./tsconfig.json"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"babel-jest": "^29.7.0",
"babel-plugin-istanbul": "^6.1.1",
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-playwright": "^1.1.2",
Expand Down
58 changes: 54 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74e2eb3

Please sign in to comment.