Skip to content

Commit 06ac117

Browse files
committed
Upgrade to the new ts-eslint package. Add TS import plugin
1 parent 7267078 commit 06ac117

File tree

3 files changed

+182
-106
lines changed

3 files changed

+182
-106
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
"settings": {
2525
"import/ignore": ["react-native"],
26-
"import/resolver": { "node": { "extensions": [".js", ".ts", ".tsx"] } },
26+
"import/resolver": {
27+
"typescript": { "extensions": [".js", ".ts", ".tsx"] }
28+
},
2729
"react": { "version": "detect" }
2830
},
2931
"overrides": [

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,12 @@
8686
"@types/prop-types": "^15.7.12",
8787
"@types/react": "18.3.3",
8888
"@types/react-dom": "^18.3.0",
89-
"@typescript-eslint/eslint-plugin": "^6.17.0",
90-
"@typescript-eslint/parser": "^6.17.0",
9189
"babel-eslint": "^10.1.0",
9290
"codecov": "^3.8.3",
9391
"cross-env": "^7.0.3",
9492
"eslint": "^8.57.0",
9593
"eslint-config-prettier": "^9.1.0",
94+
"eslint-import-resolver-typescript": "^3.6.1",
9695
"eslint-plugin-import": "^2.29.1",
9796
"eslint-plugin-prettier": "^5.1.3",
9897
"eslint-plugin-react": "^7.34.2",
@@ -105,6 +104,7 @@
105104
"rimraf": "^5.0.7",
106105
"tsup": "^8.1.0",
107106
"typescript": "^5.4.5",
107+
"typescript-eslint": "^7.12.0",
108108
"vitest": "^1.6.0"
109109
},
110110
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)