this.state = this.props.state;
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all"
}]
},
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne(), noWayYouGottaBeKiddingMe());
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne(),
noWayYouGottaBeKiddingMe(),
);
git commit
yarn add -D prettier eslint-plugin-prettier
const receivePosts = (state, action) => {
return {...state,
max: 1800,
min: 1500
}
}
try {
const data = yield call(...);
// some stuff
} catch e {
// handle error
}
import { all, fork } from 'redux-saga/effects';
export default function * rootSaga() {
yield all([
authSaga,
usersSaga,
catalogSaga,
cartSaga,
].map(saga => fork(saga));
}
или: