Skip to content

Commit 52c4cba

Browse files
committed
Update linting dependencies, fix errors
1 parent 3c03abf commit 52c4cba

24 files changed

+56
-38
lines changed

.eslintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
---
22
"extends":
3-
- "defaults/configurations/walmart/es6-react"
3+
- "eslint-config-defaults/configurations/walmart/es6-react"
4+
5+
"rules":
6+
"indent": [2, 2, {"SwitchCase": 1}]
7+
"max-len": 0

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030
"autoprefixer-core": "^5.2.1",
3131
"babel": "^5.6.14",
3232
"babel-core": "^5.6.15",
33-
"babel-eslint": "^3.1.23",
33+
"babel-eslint": "^4.1.3",
3434
"babel-loader": "^5.2.2",
3535
"css-loader": "^0.15.1",
36-
"eslint": "^0.24.0",
37-
"eslint-config-defaults": "^3.0.3",
38-
"eslint-plugin-react": "^2.6.4",
36+
"eslint": "^1.5.1",
37+
"eslint-config-defaults": "^6.0.0",
38+
"eslint-plugin-filenames": "^0.1.2",
39+
"eslint-plugin-react": "^3.4.2",
3940
"file-loader": "^0.8.4",
4041
"json-loader": "^0.5.2",
4142
"node-libs-browser": "^0.5.2",

src/appear.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import assign from "object-assign";
66
const Appear = React.createClass({
77
mixins: [tweenState.Mixin],
88
propTypes: {
9-
children: React.PropTypes.node
9+
children: React.PropTypes.node,
10+
style: React.PropTypes.object
1011
},
1112
contextTypes: {
1213
flux: React.PropTypes.object,

src/base.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*eslint max-statements:0,complexity:0*/
1+
/*eslint max-statements:0,complexity:0,no-invalid-this:0*/
22
import React from "react/addons";
33

44
const getStyles = function getStyles() {

src/block-quote.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class BlockQuote extends Base {
1414
}
1515

1616
BlockQuote.propTypes = {
17-
children: React.PropTypes.node
17+
children: React.PropTypes.node,
18+
style: React.PropTypes.object
1819
};
1920

2021
BlockQuote.contextTypes = {

src/code-pane.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ CodePane.contextTypes = {
2929

3030
CodePane.propTypes = {
3131
lang: React.PropTypes.string,
32-
source: React.PropTypes.string
32+
source: React.PropTypes.string,
33+
style: React.PropTypes.object
3334
};
3435

3536
CodePane.defaultProps = {

src/code.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Code extends Base {
1414
}
1515

1616
Code.propTypes = {
17-
children: React.PropTypes.node
17+
children: React.PropTypes.node,
18+
style: React.PropTypes.object
1819
};
1920

2021
Code.contextTypes = {

src/deck.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Deck extends React.Component {
128128
}
129129
_getHash(slide) {
130130
let hash = slide;
131-
if ('id' in this.props.children[slide].props) {
131+
if ("id" in this.props.children[slide].props) {
132132
hash = this.props.children[slide].props.id;
133133
}
134134
return hash;

src/fill.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class Fill extends React.Component {
1616
}
1717

1818
Fill.propTypes = {
19-
children: React.PropTypes.node
19+
children: React.PropTypes.node,
20+
style: React.PropTypes.object
2021
};
2122

2223
export default Fill;

src/fit.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class Fit extends React.Component {
1616
}
1717

1818
Fit.propTypes = {
19-
children: React.PropTypes.node
19+
children: React.PropTypes.node,
20+
style: React.PropTypes.object
2021
};
2122

2223
export default Fit;

0 commit comments

Comments
 (0)