chore: bump eslint config to latest (#308)

* chore: bump eslint config to latest

* lint fix

* lint pass

* use roles directly
This commit is contained in:
Michał Pierzchała
2020-05-15 10:10:49 +02:00
committed by GitHub
parent ab34712133
commit 29ce4f2b48
16 changed files with 139 additions and 66 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ function updateWithAct(
renderer: ReactTestRenderer,
wrap: (innerElement: React.Element<any>) => React.Element<any>
) {
return function(component: React.Element<any>) {
return function (component: React.Element<any>) {
act(() => {
renderer.update(wrap(component));
});
@@ -79,6 +79,6 @@ function debug(instance: ReactTestInstance, renderer) {
function debugImpl(message?: string) {
return debugDeep(renderer.toJSON(), message);
}
debugImpl.shallow = message => debugShallow(instance, message);
debugImpl.shallow = (message) => debugShallow(instance, message);
return debugImpl;
}