Skip to content

Commit

Permalink
[eslint] update linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 13, 2017
1 parent f931a82 commit e400dd4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
"chai": "^3.5.0",
"coveralls": "^2.11.15",
"enzyme": "^2.7.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint": "^3.13.1",
"eslint-config-airbnb": "^14.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.8.0",
"eslint-plugin-jsx-a11y": "^3.0.2",
"eslint-plugin-react": "^6.9.0",
"git-directory-deploy": "^1.5.1",
"imports-loader": "^0.6.5",
"in-publish": "^2.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/components/CalendarMonth.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint react/no-array-index-key: 0 */

import React, { PropTypes } from 'react';
import momentPropTypes from 'react-moment-proptypes';
import moment from 'moment';
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarMonthGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const defaultProps = {
onDayTouchEnd() {},
onDayTouchTap() {},
onMonthTransitionEnd() {},
transform: 'none',
transformValue: 'none',

// i18n
monthFormat: 'MMMM YYYY', // english locale
Expand Down
5 changes: 5 additions & 0 deletions src/components/DateRangePickerInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ const defaultProps = {
onStartDateShiftTab() {},
onEndDateTab() {},
onClearDates() {},

startDate: '',
endDate: '',

isStartDateFocused: false,
isEndDateFocused: false,
showClearDates: false,
disabled: false,
required: false,
showCaret: false,

// i18n
Expand Down
2 changes: 2 additions & 0 deletions src/components/DayPickerRangeController.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const propTypes = {
};

const defaultProps = {
startDate: undefined, // TODO: use null
endDate: undefined, // TODO: use null
onDatesChange() {},

focusedInput: null,
Expand Down
2 changes: 2 additions & 0 deletions src/components/SingleDatePickerInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ const defaultProps = {
disabled: false,
required: false,
showCaret: false,
showClearDate: false,

onChange() {},
onClearDate() {},
onFocus() {},
onKeyDownShiftTab() {},
onKeyDownTab() {},
Expand Down

0 comments on commit e400dd4

Please sign in to comment.