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:
parent
812fe90eca
commit
2e112e2406
170 changed files with 919 additions and 904 deletions
|
@ -1,4 +1,4 @@
|
|||
import api from '../api'
|
||||
import api from '../api';
|
||||
|
||||
export const REBLOG_REQUEST = 'REBLOG_REQUEST';
|
||||
export const REBLOG_SUCCESS = 'REBLOG_SUCCESS';
|
||||
|
@ -53,7 +53,7 @@ export function unreblog(status) {
|
|||
export function reblogRequest(status) {
|
||||
return {
|
||||
type: REBLOG_REQUEST,
|
||||
status: status
|
||||
status: status,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -61,7 +61,7 @@ export function reblogSuccess(status, response) {
|
|||
return {
|
||||
type: REBLOG_SUCCESS,
|
||||
status: status,
|
||||
response: response
|
||||
response: response,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -69,14 +69,14 @@ export function reblogFail(status, error) {
|
|||
return {
|
||||
type: REBLOG_FAIL,
|
||||
status: status,
|
||||
error: error
|
||||
error: error,
|
||||
};
|
||||
};
|
||||
|
||||
export function unreblogRequest(status) {
|
||||
return {
|
||||
type: UNREBLOG_REQUEST,
|
||||
status: status
|
||||
status: status,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -84,7 +84,7 @@ export function unreblogSuccess(status, response) {
|
|||
return {
|
||||
type: UNREBLOG_SUCCESS,
|
||||
status: status,
|
||||
response: response
|
||||
response: response,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -92,7 +92,7 @@ export function unreblogFail(status, error) {
|
|||
return {
|
||||
type: UNREBLOG_FAIL,
|
||||
status: status,
|
||||
error: error
|
||||
error: error,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -123,7 +123,7 @@ export function unfavourite(status) {
|
|||
export function favouriteRequest(status) {
|
||||
return {
|
||||
type: FAVOURITE_REQUEST,
|
||||
status: status
|
||||
status: status,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -131,7 +131,7 @@ export function favouriteSuccess(status, response) {
|
|||
return {
|
||||
type: FAVOURITE_SUCCESS,
|
||||
status: status,
|
||||
response: response
|
||||
response: response,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -139,14 +139,14 @@ export function favouriteFail(status, error) {
|
|||
return {
|
||||
type: FAVOURITE_FAIL,
|
||||
status: status,
|
||||
error: error
|
||||
error: error,
|
||||
};
|
||||
};
|
||||
|
||||
export function unfavouriteRequest(status) {
|
||||
return {
|
||||
type: UNFAVOURITE_REQUEST,
|
||||
status: status
|
||||
status: status,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -154,7 +154,7 @@ export function unfavouriteSuccess(status, response) {
|
|||
return {
|
||||
type: UNFAVOURITE_SUCCESS,
|
||||
status: status,
|
||||
response: response
|
||||
response: response,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -162,7 +162,7 @@ export function unfavouriteFail(status, error) {
|
|||
return {
|
||||
type: UNFAVOURITE_FAIL,
|
||||
status: status,
|
||||
error: error
|
||||
error: error,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -181,7 +181,7 @@ export function fetchReblogs(id) {
|
|||
export function fetchReblogsRequest(id) {
|
||||
return {
|
||||
type: REBLOGS_FETCH_REQUEST,
|
||||
id
|
||||
id,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -189,14 +189,14 @@ export function fetchReblogsSuccess(id, accounts) {
|
|||
return {
|
||||
type: REBLOGS_FETCH_SUCCESS,
|
||||
id,
|
||||
accounts
|
||||
accounts,
|
||||
};
|
||||
};
|
||||
|
||||
export function fetchReblogsFail(id, error) {
|
||||
return {
|
||||
type: REBLOGS_FETCH_FAIL,
|
||||
error
|
||||
error,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -215,7 +215,7 @@ export function fetchFavourites(id) {
|
|||
export function fetchFavouritesRequest(id) {
|
||||
return {
|
||||
type: FAVOURITES_FETCH_REQUEST,
|
||||
id
|
||||
id,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -223,13 +223,13 @@ export function fetchFavouritesSuccess(id, accounts) {
|
|||
return {
|
||||
type: FAVOURITES_FETCH_SUCCESS,
|
||||
id,
|
||||
accounts
|
||||
accounts,
|
||||
};
|
||||
};
|
||||
|
||||
export function fetchFavouritesFail(id, error) {
|
||||
return {
|
||||
type: FAVOURITES_FETCH_FAIL,
|
||||
error
|
||||
error,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue