@enormora/eslint-config-typescript 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -2
  2. package/typescript.js +9 -6
package/package.json CHANGED
@@ -6,7 +6,9 @@
6
6
  "dependencies": {
7
7
  "@typescript-eslint/eslint-plugin": "8.43.0",
8
8
  "@typescript-eslint/parser": "8.43.0",
9
+ "eslint-import-resolver-typescript": "4.4.4",
9
10
  "eslint-plugin-functional": "9.0.2",
11
+ "eslint-plugin-import-x": "4.16.1",
10
12
  "eslint-plugin-perfectionist": "4.15.0"
11
13
  },
12
14
  "description": "Enormora’s ESLint typescript configuration",
@@ -14,12 +16,12 @@
14
16
  "main": "typescript.js",
15
17
  "name": "@enormora/eslint-config-typescript",
16
18
  "peerDependencies": {
17
- "@enormora/eslint-config-base": "0.0.22"
19
+ "@enormora/eslint-config-base": "0.0.23"
18
20
  },
19
21
  "repository": {
20
22
  "type": "git",
21
23
  "url": "git://github.com/enormora/eslint-config.git"
22
24
  },
23
25
  "type": "module",
24
- "version": "0.0.24"
26
+ "version": "0.0.25"
25
27
  }
package/typescript.js CHANGED
@@ -2,6 +2,8 @@ import typescriptParser from '@typescript-eslint/parser';
2
2
  import typescriptPlugin from '@typescript-eslint/eslint-plugin';
3
3
  import functionalPlugin from 'eslint-plugin-functional';
4
4
  import perfectionistPlugin from 'eslint-plugin-perfectionist';
5
+ import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
6
+ import { createNodeResolver } from 'eslint-plugin-import-x';
5
7
  import { baseConfig } from '@enormora/eslint-config-base/base.js';
6
8
  import { javascriptExtensions, typescriptExtensions } from '@enormora/eslint-config-base/constants.js';
7
9
 
@@ -39,14 +41,15 @@ export const typescriptConfig = {
39
41
  }
40
42
  },
41
43
  settings: {
42
- 'import/resolver': {
43
- node: {
44
- extensions: [...javascriptExtensions, ...typescriptExtensions]
45
- }
46
- },
47
44
  'import/parsers': {
48
45
  '@typescript-eslint/parser': typescriptExtensions
49
- }
46
+ },
47
+ 'import-x/resolver-next': [
48
+ createNodeResolver({
49
+ extensions: [...javascriptExtensions, ...typescriptExtensions]
50
+ }),
51
+ createTypeScriptImportResolver()
52
+ ]
50
53
  },
51
54
  plugins: {
52
55
  '@typescript-eslint': typescriptPlugin,