-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[RFR] Replace tslint with eslint #3321
Conversation
djhi
commented
Jun 8, 2019
•
edited
Loading
edited
- Replace tslint with eslint
- Adjust configuration
- Replace all tslint comments with eslint ones
@@ -73,9 +73,6 @@ interface Props { | |||
const ShowController = (props: Props) => { | |||
useCheckMinimumRequiredProps('Show', ['basePath', 'resource'], props); | |||
const { basePath, children, id, resource } = props; | |||
if (!children) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need a small rebase
2d7cd13
to
fe2e31e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final touches...
case DELETE: | ||
return { | ||
id: params.id, | ||
}; | ||
default: | ||
console.log('Unknown fetch verb'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unknown fetch verbs are allowed and can be implemented in custom dataProviders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those dataProviders did not handle them at all and returned undefined. How should we handle that ?
case DELETE: | ||
return { | ||
id: preparedParams.id, | ||
}; | ||
default: | ||
console.log('Unknown fetch verb'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, we don't mind unknown fetch verbs
708f445
to
bbaf62a
Compare