-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Rewrite to TS #1327
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
Rewrite to TS #1327
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8ad2f16
Rewrite Examples to TS (#1273)
jgonet 4b6f9e2
Merge branch 'master' into ts-rewrite
jgonet 04080a9
Migrate source files to Typescript (#1280)
jgonet a3a6c0a
Add TS types to the files (#1291)
jgonet 23724df
Merge branch 'master' into ts-rewrite
jgonet e1c25ef
Adjust Swipeable optional state
jgonet 08b47d5
Adjust tsconfig
jgonet 2175e8e
Remove duplicated lint task
jgonet 9dfeba5
Remove ts-nocheck from allowed comments
jgonet 7ee3ee3
Remove 'Type' postfix in example types
jgonet 2366b90
Remove 'Type' postfix in types
jgonet 0807a46
Remove unused EventType
jgonet 9576da8
Fix SwipeableState
jgonet 2fb55f7
Fix bottom sheet and chat heads types
jgonet 626f202
Update ForceTouchGestureHandler type
jgonet adec7b2
Explicitly list exports
jgonet 36bccd1
Fix eslint errors
jgonet 4d0259d
Export missing props types
jgonet 3caef9a
Add backward compatible button props
jgonet bc551df
Merge remote-tracking branch 'origin/master' into ts-rewrite
jgonet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"satya164" | ||
], | ||
"settings": { | ||
"react": { "version": "16" }, | ||
"import/resolver": { | ||
"babel-module": {} | ||
} | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"env": { "browser": true, "node": true, "jest/globals": true }, | ||
"plugins": ["jest"], | ||
"ignorePatterns": ["dist/**/*"], | ||
"rules": { | ||
// temporary, remove after we type internals better | ||
"@typescript-eslint/restrict-template-expressions": "warn", | ||
"@typescript-eslint/no-unsafe-member-access": "warn", | ||
"@typescript-eslint/no-unsafe-call": "warn", | ||
"@typescript-eslint/no-unsafe-assignment": "warn", | ||
"@typescript-eslint/no-unsafe-return": "warn", | ||
|
||
// common | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"import/named": "off", | ||
"react/sort-comp": "off", | ||
"prefer-const": [ | ||
"error", | ||
{ | ||
"destructuring": "all" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ "argsIgnorePattern": "^_" } | ||
], | ||
"no-redeclare": "off", | ||
"@typescript-eslint/no-redeclare": "error", | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"@typescript-eslint/ban-ts-comment": [ | ||
"error", | ||
{ | ||
"ts-ignore": "allow-with-description", | ||
"ts-expect-error": "allow-with-description" | ||
} | ||
] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"main": "../dist/src/components/DrawerLayout", | ||
"react-native": "../src/components/DrawerLayout", | ||
"browser": "../src/components/DrawerLayout", | ||
"types": "../dist/src/components/DrawerLayout.d.ts" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"main": "../dist/src/components/Swipeable", | ||
"react-native": "../src/components/Swipeable", | ||
"browser": "../src/components/Swipeable", | ||
"types": "../dist/src/components/Swipeable.d.ts" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.