Use ES6 default arguments to avoid deprecated defaultProps on function components #1136
Annotations
21 errors
build (18.x):
__tests__/src/components/ThumbnailNavigation.test.js#L13
propType "fixture" is required and should not have a defaultProps declaration
|
build (18.x):
src/components/AudioViewer.js#L16
Don’t use defaultProps with function components
|
build (18.x):
src/components/AudioViewer.js#L16
Must destructure props in the function signature to initialize an optional prop
|
build (18.x):
src/components/CompanionWindow.js#L26
Don’t use defaultProps with function components
|
build (18.x):
src/components/CompanionWindow.js#L26
Must destructure props in the function signature to initialize an optional prop
|
build (18.x):
src/components/IIIFIFrameCommunication.js#L7
Don’t use defaultProps with function components
|
build (18.x):
src/components/IIIFIFrameCommunication.js#L7
propType "handleReceiveMessage" is not required, but has no corresponding default argument value
|
build (18.x):
src/components/IIIFThumbnail.js#L24
Don’t use defaultProps with function components
|
build (18.x):
src/components/IIIFThumbnail.js#L25
propType "border" is not required, but has no corresponding default argument value
|
build (18.x):
src/components/IIIFThumbnail.js#L25
propType "thumbnail" is not required, but has no corresponding default argument value
|
build (20.x)
The job was canceled because "_18_x" failed.
|
build (20.x):
__tests__/src/components/ThumbnailNavigation.test.js#L13
propType "fixture" is required and should not have a defaultProps declaration
|
build (20.x):
src/components/AudioViewer.js#L16
Don’t use defaultProps with function components
|
build (20.x):
src/components/AudioViewer.js#L16
Must destructure props in the function signature to initialize an optional prop
|
build (20.x):
src/components/CompanionWindow.js#L26
Don’t use defaultProps with function components
|
build (20.x):
src/components/CompanionWindow.js#L26
Must destructure props in the function signature to initialize an optional prop
|
build (20.x):
src/components/IIIFIFrameCommunication.js#L7
Don’t use defaultProps with function components
|
build (20.x):
src/components/IIIFIFrameCommunication.js#L7
propType "handleReceiveMessage" is not required, but has no corresponding default argument value
|
build (20.x):
src/components/IIIFThumbnail.js#L24
Don’t use defaultProps with function components
|
build (20.x):
src/components/IIIFThumbnail.js#L25
propType "border" is not required, but has no corresponding default argument value
|
build (20.x):
src/components/IIIFThumbnail.js#L25
propType "thumbnail" is not required, but has no corresponding default argument value
|