Skip to content

Commit 1fcb8a7

Browse files
committed
feat: set custom tsconfig to eslint-path-plugin
1 parent 4bd662a commit 1fcb8a7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import globals from 'globals';
1313
export default [
1414
{
1515
ignores: [
16+
'dist/*',
1617
'node_modules/*',
1718
'**/package.json',
1819
'**/package-lock.json',
@@ -124,6 +125,9 @@ export default [
124125
'@typescript-eslint/no-namespace': 'off',
125126
},
126127
settings: {
128+
'path': {
129+
config: './tsconfig.prod.json',
130+
},
127131
'import/resolver': {
128132
node: {
129133
extensions: ['.js', '.jsx', '.ts', '.tsx'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"eslint-config-prettier": "^10.1.1",
9191
"eslint-plugin-import": "^2.31.0",
9292
"eslint-plugin-jsx-a11y": "^6.10.2",
93-
"eslint-plugin-path": "2.0.0",
93+
"eslint-plugin-path": "2.0.2",
9494
"eslint-plugin-prettier": "^5.2.6",
9595
"eslint-plugin-react": "^7.37.5",
9696
"eslint-plugin-react-hooks": "^5.2.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"outDir": "./ts-dist",
66
"baseUrl": ".",
77
"target": "ESNext",
8-
"module": "ESNext",
9-
"moduleResolution": "node",
8+
"module": "NodeNext",
9+
"moduleResolution": "nodenext",
1010
"listFiles": false,
1111
"allowJs": true,
1212
"sourceMap": true,

0 commit comments

Comments
 (0)