Improve eslint rules (#3147)

* Add semi to ESLint rules

* Add padded-blocks to ESLint rules

* Add comma-dangle to ESLint rules

* add config/webpack and storyboard

* add streaming/

* yarn test:lint -- --fix
This commit is contained in:
Yamagishi Kazutoshi
2017-05-21 00:31:47 +09:00
committed by Eugen Rochko
parent 812fe90eca
commit 2e112e2406
170 changed files with 919 additions and 904 deletions

View File

@ -18,7 +18,7 @@ const messages = defineMessages({
class ActionBar extends React.PureComponent {
static contextTypes = {
router: PropTypes.object
router: PropTypes.object,
};
static propTypes = {
@ -30,7 +30,7 @@ class ActionBar extends React.PureComponent {
onMention: PropTypes.func.isRequired,
onReport: PropTypes.func,
me: PropTypes.number.isRequired,
intl: PropTypes.object.isRequired
intl: PropTypes.object.isRequired,
};
handleReplyClick = () => {

View File

@ -1,6 +1,6 @@
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode'
import punycode from 'punycode';
const IDNA_PREFIX = 'xn--';
@ -9,7 +9,7 @@ const decodeIDNA = domain => {
.split('.')
.map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part)
.join('.');
}
};
const getHostname = url => {
const parser = document.createElement('a');
@ -20,7 +20,7 @@ const getHostname = url => {
class Card extends React.PureComponent {
static propTypes = {
card: ImmutablePropTypes.map
card: ImmutablePropTypes.map,
};
renderLink () {
@ -95,6 +95,7 @@ class Card extends React.PureComponent {
return null;
}
}
}
export default Card;

View File

@ -15,7 +15,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
class DetailedStatus extends ImmutablePureComponent {
static contextTypes = {
router: PropTypes.object
router: PropTypes.object,
};
static propTypes = {