Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
fix linter problems
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Sep 26, 2016
1 parent b144073 commit 32b6e37
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ rules:
global-require: off
no-underscore-dangle: off
import/imports-first: off
jsx-a11y/no-static-element-interactions: off
jsx-a11y/anchor-has-content: off
2 changes: 0 additions & 2 deletions src/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ export default class Button extends Component {
active: PropTypes.bool,
className: PropTypes.string,
danger: PropTypes.bool,
disabled: PropTypes.bool,
large: PropTypes.bool,
link: PropTypes.bool,
mini: PropTypes.bool,
primary: PropTypes.bool,
small: PropTypes.bool,
success: PropTypes.bool,
type: PropTypes.string,
}

static defaultProps = {
Expand Down
1 change: 0 additions & 1 deletion src/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default class Dropdown extends Component {
remainTime: PropTypes.number.isRequired,
className: PropTypes.string,
component: PropTypes.node,
label: PropTypes.string,
}

static defaultProps = {
Expand Down
5 changes: 2 additions & 3 deletions src/Modal/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Dialog extends Component
caption: PropTypes.string,
children: PropTypes.node,
close: PropTypes.bool,
footer: PropTypes.array,
footer: PropTypes.array, // eslint-disable-line react/forbid-prop-types
handleClose: PropTypes.func,
header: PropTypes.string,
large: PropTypes.bool,
Expand Down Expand Up @@ -61,8 +61,7 @@ export default class Dialog extends Component
{ footer && footer.length > 0 &&
(<div className="uk-modal-footer uk-text-right">
{
footer.map((component, i) => createElement(component, { key: i, handleClose })
)
footer.map((component, i) => createElement(component, { key: i, handleClose }))
}
</div>)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Modal/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('Modal', () => {
<Modal
type="prompt"
>
Please enter the name of the repo you're deleting:
Please enter the name of the repo you&quot;re deleting:
</Modal>
)
expect(component.toJSON()).toMatchSnapshot()
Expand Down
1 change: 0 additions & 1 deletion src/Modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default class Modal extends Component {
static propTypes = {
cancelLabel: PropTypes.string,
children: PropTypes.node,
className: PropTypes.string,
confirmLabel: PropTypes.string,
isOpen: PropTypes.bool,
target: PropTypes.node,
Expand Down

0 comments on commit 32b6e37

Please sign in to comment.