Skip to content

Commit 98c4663

Browse files
committed
Update linters
1 parent 18b5646 commit 98c4663

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

client/.eslintrc renamed to client/.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rules:
2323
### Stylistic issues
2424
indent: [1, 2, { SwitchCase: 1, VariableDeclarator: 2 }]
2525
id-length: [1, { min: 2, exceptions: [_, e, i, k, v] }]
26+
space-before-function-paren: [1, "never"]
2627

2728
### React
2829
jsx-quotes: [1, prefer-double]

client/app/bundles/Comments/components/Comment.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Comment extends React.Component {
1616
<h2 className="comment-author">
1717
{author}
1818
</h2>
19-
<span dangerouslySetInnerHTML={{__html: rawMarkup}} className="comment-text"/>
19+
<span dangerouslySetInnerHTML={{ __html: rawMarkup }} className="comment-text"/>
2020
</div>
2121
);
2222
}

client/app/bundles/Comments/components/NonRouterCommentScreen.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NonRouterCommentScreen extends React.Component {
1919
const { dispatch, data } = this.props;
2020
const actions = bindActionCreators(commentsActionCreators, dispatch);
2121
return (
22-
<CommentScreen {...{actions, data}} />
22+
<CommentScreen {...{ actions, data }} />
2323
);
2424
}
2525
}

client/app/bundles/Comments/components/RouterCommentScreen.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class RouterCommentScreen extends React.Component {
3636
return (
3737
<div>
3838
{this._renderNotification()}
39-
<CommentScreen {...{actions, data}} />
39+
<CommentScreen {...{ actions, data }} />
4040
</div>
4141
);
4242
}

client/app/bundles/Comments/components/SimpleCommentScreen.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class SimpleCommentScreen extends React.Component {
6969
</p>
7070
<CommentForm
7171
ajaxSending={this.state.ajaxSending}
72-
actions={{ submitComment: this._handleCommentSubmit}}
72+
actions={{ submitComment: this._handleCommentSubmit }}
7373
error={this.state.submitCommentError}
7474
/>
7575
<CommentList

client/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,17 @@
7070
"webpack": "^1.12.8"
7171
},
7272
"devDependencies": {
73-
"babel-eslint": "^4.1.6",
73+
"babel-eslint": "^5.0.0-beta6",
7474
"babel-plugin-react-transform": "^1.1.1",
7575
"body-parser": "^1.14.1",
7676
"chai": "^3.4.1",
7777
"chai-immutable": "^1.5.3",
78-
"eslint": "^1.10.1",
79-
"eslint-config-airbnb": "1.0.2",
78+
"eslint": "^1.10.3",
79+
"eslint-config-airbnb": "^2.0.0",
8080
"eslint-plugin-react": "^3.11.3",
81-
"esprima-fb": "^15001.1001.0-dev-harmony-fb",
8281
"express": "^4.13.3",
8382
"jade": "^1.11.0",
84-
"jscs": "^2.6.0",
83+
"jscs": "^2.7.0",
8584
"jsdom": "^7.0.2",
8685
"mocha": "^2.3.4",
8786
"react-addons-test-utils": "^0.14.3",

client/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var server = new WebpackDevServer(webpack(config), {
2626
});
2727

2828
server.app.use(bodyParser.json(null));
29-
server.app.use(bodyParser.urlencoded({extended: true}));
29+
server.app.use(bodyParser.urlencoded({ extended: true }));
3030

3131
server.app.get('/comments.json', function(req, res) {
3232
sleep.sleep(1);

0 commit comments

Comments
 (0)