@lionstone-digital/eslint-config-typescript 0.0.3 → 0.0.5

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 -3
  2. package/src/index.js +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionstone-digital/eslint-config-typescript",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Helpful eslint config for projects with TypeScript",
5
5
  "keywords": [
6
6
  "eslint",
@@ -24,8 +24,9 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "typescript-eslint": "^8.35.0",
28
- "@lionstone-digital/eslint-config": "0.0.3"
27
+ "eslint-import-resolver-typescript": "^4.4.4",
28
+ "typescript-eslint": "^8.36.0",
29
+ "@lionstone-digital/eslint-config": "0.0.4"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "eslint": ">= 9.29.0",
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import eslintConfigBaseCore from '@lionstone-digital/eslint-config/core'
2
2
  import eslintConfigBasePrettier from '@lionstone-digital/eslint-config/prettier'
3
+ import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript'
3
4
  import tsEslint from 'typescript-eslint'
4
5
 
5
6
  export default tsEslint.config(
@@ -27,6 +28,18 @@ export default tsEslint.config(
27
28
  }
28
29
  },
29
30
 
31
+ // For Imports
32
+ {
33
+ settings: {
34
+ 'import-x/resolver-next': [
35
+ createTypeScriptImportResolver({
36
+ // Default to tsconfig.json in the root
37
+ project: ['tsconfig.json']
38
+ })
39
+ ]
40
+ }
41
+ },
42
+
30
43
  // For Prettier
31
44
  ...eslintConfigBasePrettier
32
45
  )