Skip to content

Commit 4d04a2a

Browse files
tiagoloureirosrtab
authored andcommitted
fix eslint-plugin-import TypeScript configuration
1 parent dd7e699 commit 4d04a2a

File tree

4 files changed

+68
-10
lines changed

4 files changed

+68
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [v0.1.2] - 2024-01-17
9+
10+
### Fixed
11+
12+
- `eslint-plugin-import` TypeScript configuration.
13+
814
## [v0.1.1] - 2024-01-17
915

1016
### Fixed
@@ -16,5 +22,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1622

1723
- First release
1824

25+
[v0.1.2]: https://www.npmjs.com/package/@dipcode/dj-plugins/v/0.1.2
1926
[v0.1.1]: https://www.npmjs.com/package/@dipcode/dj-plugins/v/0.1.1
2027
[v0.1.0]: https://www.npmjs.com/package/@dipcode/dj-plugins/v/0.1.0

package-lock.json

Lines changed: 52 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dipcode/eslint-config",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Shareable ESLint config for Dipcode.",
55
"main": "./src/config.js",
66
"scripts": {
@@ -42,6 +42,7 @@
4242
"@typescript-eslint/parser": "^6.18.1",
4343
"eslint-config-prettier": "^9.1.0",
4444
"eslint-config-standard-with-typescript": "^43.0.0",
45+
"eslint-import-resolver-typescript": "^3.6.1",
4546
"eslint-plugin-jsdoc": "^48.0.2",
4647
"eslint-plugin-prettier": "^5.1.3",
4748
"eslint-plugin-simple-import-sort": "^10.0.0"

src/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
'plugin:@typescript-eslint/recommended',
1111
'plugin:jsdoc/recommended-typescript-error',
1212
'plugin:import/recommended',
13+
'plugin:import/typescript',
1314
'plugin:promise/recommended',
1415
// This must be the last
1516
'plugin:prettier/recommended',
@@ -25,4 +26,10 @@ module.exports = {
2526
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
2627
},
2728
ignorePatterns: ['node_modules'],
29+
settings: {
30+
'import/resolver': {
31+
typescript: true,
32+
node: true,
33+
},
34+
},
2835
};

0 commit comments

Comments
 (0)