Showing 3 of 3 total issues
Function init
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const init = (i18n) => {
const schema = yup.string().url();
const state = {
process: {
// ready, getting, finished, failed
Function renderPosts
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderPosts = (collection) => {
const header = document.createElement('h2');
header.textContent = i18n.t('posts');
const fragment = document.createDocumentFragment();
Function rssAddHandle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const rssAddHandle = (watchedState, validate) => (evt) => {
evt.preventDefault();
watchedState.form.state = null;
const formData = new FormData(evt.target);