app/react/Layout/Modal.js
Declare only one React component per file Open
Open
const Close = ({ onClick }) => (
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Prefer named exports. Open
Open
export default class Modal extends Component {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Declare only one React component per file Open
Open
const Footer = ({ children }) => <div className="modal-footer">{children}</div>;
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Declare only one React component per file Open
Open
const Title = ({ children }) => <h4 className="modal-title">{children}</h4>;
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Declare only one React component per file Open
Open
const Header = ({ children }) => <div className="modal-header">{children}</div>;
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'node/no-restricted-import' was not found. Open
Open
import PropTypes from 'prop-types';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Declare only one React component per file Open
Open
const Body = ({ children }) => <div className="modal-body">{children}</div>;
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Export statements should appear at the end of the file Open
Open
export default class Modal extends Component {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
propType "children" is not required, but has no corresponding defaultProps declaration. Open
Open
children: childrenType,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/