Skip to content

Commit

Permalink
chore: update eslint config & ts alias
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Mar 1, 2024
1 parent 9e40316 commit eacafea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
'@typescript-eslint/no-parameter-properties': 'off',
'import/no-useless-path-segments': 'off',
'no-unused-expressions': 'off',
'react/no-array-index-key': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'off',
'no-await-in-loop': 'off',
Expand Down
7 changes: 6 additions & 1 deletion packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"rootDir": "src",
"outDir": "lib",
"composite": true,
"declaration": true
"declaration": true,
"paths": {
"@@/*": [".dumi/tmp/*"],
"ahooks": ["packages/hooks/src/index.ts"],
"ahooks/es/*": ["packages/hooks/src/*"]
}
},
"include": ["src"]
}
6 changes: 5 additions & 1 deletion packages/use-url-state/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src"
"rootDir": "src",
"paths": {
"@@/*": [".dumi/tmp/*"],
"@ahooksjs/use-url-state": ["packages/use-url-state/src/index.ts"]
}
},
"include": ["src"]
}
6 changes: 0 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@
"downlevelIteration": true,
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@@/*": [".dumi/tmp/*"],
"@ahooksjs/use-url-state": ["./packages/use-url-state/src/index.ts"]
},
"allowJs": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"declaration": false,
"strictNullChecks": true,
"importHelpers": true
},
"include": [".dumirc.ts"],
"exclude": ["node_modules", "lib", "es", "dist", "example"]
}

0 comments on commit eacafea

Please sign in to comment.