Addressing lint errors

This commit is contained in:
Jeff Avallone 2018-02-10 18:10:30 -05:00
parent cca35117f5
commit cf0c175d0a
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import style from './style.css';
@ -10,4 +11,10 @@ const Message = ({ icon, heading, children }) => {
</div>;
};
Message.propTypes = {
icon: PropTypes.element,
heading: PropTypes.string.isRequired,
children: PropTypes.element.isRequired
};
export default Message;

View File

@ -2,10 +2,10 @@ if ('serviceWorker' in navigator && process.env.NODE_ENV === 'production') {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
.then(registration => {
console.log('SW registered:', registration);
console.log('SW registered:', registration); // eslint-disable-line no-console
})
.catch(registrationError => {
console.log('SW registration failed:', registrationError);
console.log('SW registration failed:', registrationError); // eslint-disable-line no-console
});
});
}