Skip to content

Commit

Permalink
fix some lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jun 3, 2016
1 parent f56abc8 commit 3a18ca5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/customAnimType.js
Expand Up @@ -10,7 +10,7 @@ import './assets/index.less';
const { animType, setAnimCompToTagComp } = BannerAnim;

animType.custom = (elem, type, direction, animData) => {
console.log(`custom animType, type:${type}`);
console.log(`custom animType, type:${type}`); // eslint-disable-line no-console
let _y;
const props = assign({}, elem.props);
let children = props.children;
Expand Down
2 changes: 1 addition & 1 deletion src/Thumb.jsx
Expand Up @@ -25,7 +25,7 @@ class Thumb extends Component {
className = !this.props.default ? className : `${className} ${defaultClass}`.trim();
const children = this.props.default ? this.getDefaultThumb() : this.props.children;
if (this.props.length && toArrayChildren(children).length !== this.props.length) {
console.warn('The thumbnail length and the images length different.');
console.warn('The thumbnail length and the images length different.'); // eslint-disable-line
}
const childToRender = toArrayChildren(children).map((item, i) => {
const props = assign({}, item.props);
Expand Down
2 changes: 1 addition & 1 deletion tests/index.js
Expand Up @@ -42,7 +42,7 @@ describe('rc-banner-anim', () => {
ReactDom.unmountComponentAtNode(div);
document.body.removeChild(div);
} catch (e) {
console.log(e);
console.log(e); // eslint-disable-line no-console
}
});

Expand Down

0 comments on commit 3a18ca5

Please sign in to comment.