Skip to content

default tsconfig.json added Closes #70 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 3, 2019

Conversation

dcipher00
Copy link
Contributor

Summary

Test Plan

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS ✅❌
Android ✅❌

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

tsconfig.json Outdated
"target": "es5"
},
"exclude": [
"amplify",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this white space? 😅

tsconfig.json Outdated
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": false,
"importHelpers": true,
"lib": ["dom", "es2015", "es2016", "es2017" ],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to target dom here?

tsconfig.json Outdated
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"baseUrl": ".",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to use baseUrl: "./"? Since as described at the TS Docs, you only need to use baseUrl: . when setting paths at your TS config.

Copy link
Collaborator

@radko93 radko93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. I think this config is too specific. I would better like it in a form like here (actually you could just copy this file). E.g. we don't need to exclude weback or turn of some rules for everyone. https://github.com/react-native-community/react-native-template-typescript/blob/legacy/tsconfig.json

@dcipher00
Copy link
Contributor Author

Thank you for the comments. I have added a more generalised tsconfig.json file

@radko93 radko93 merged commit f90258f into react-native-community:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants