Description
Follow-up to
Improve our TypeScript configuration
Skip declaration files from our dependencies
Reduce remaining static type errors
Begin path to fixing remaining (ts|tsx) errors
Screenshots
Before (670 errors)
"skipLibCheck" : false /* Skip type checking of declaration files. */
After (556 errors)
# skipLibCheck
- false
+ true
To Reproduce
After
yarn tsc # locally
tsc # globally
Expected behavior
Reduced type errors excluding declaration files from our dependencies (node_modules)
Technical Details
Avoid cases of duplicate identifiers between global types in React Native vs Node
Suited to fuller repo's with more libraries
Next
Exclude type checking remaining TS files from remaining libs (node_modules)
Downgrade TypeScript to current ESLint-compat version (4.4.4)
Fix remaining type errors
TS check isn't working #4605 (CI + pre-commit)
Extend official React Native @tsconfig base
Upgrade ESLint for TypeScript 5
Upgrade to TypeScript 5
Fix husky pre-commit hook running lint-staged (should run yarn lint not `eslint)
References
Severity
cc @Cal-L @gantunesr
Description
Follow-up to
Improve our TypeScript configuration
Skip declaration files from our dependencies
Reduce remaining static type errors
Begin path to fixing remaining (ts|tsx) errors
Screenshots
Before (670 errors)
metamask-mobile/tsconfig.json
Line 51 in b1877f3
After (556 errors)
To Reproduce
After
Fix JavaScript static type errors #5879 is mergedExpected behavior
Reduced type errors excluding declaration files from our dependencies (node_modules)
Technical Details
Avoid cases of duplicate identifiers between global types in React Native vs Node
Suited to fuller repo's with more libraries
Next
yarn lintnot `eslint)References
Severity
cc @Cal-L @gantunesr