Enable eslint:recommended ruleset (#22433)
* Enable ESLint recommended ruleset * Disable failing ESLint recommended rules * Remove rules shadowed by eslint:recommended
This commit is contained in:
parent
2889c68610
commit
06b68490d1
74 changed files with 350 additions and 348 deletions
|
@ -108,7 +108,7 @@ function statusToTextMentions(state, status) {
|
|||
}
|
||||
|
||||
return set.union(status.get('mentions').filterNot(mention => mention.get('id') === me).map(mention => `@${mention.get('acct')} `)).join('');
|
||||
};
|
||||
}
|
||||
|
||||
function clearAll(state) {
|
||||
return state.withMutations(map => {
|
||||
|
@ -126,7 +126,7 @@ function clearAll(state) {
|
|||
map.set('poll', null);
|
||||
map.set('idempotencyKey', uuid());
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function appendMedia(state, media, file) {
|
||||
const prevSize = state.get('media_attachments').size;
|
||||
|
@ -146,7 +146,7 @@ function appendMedia(state, media, file) {
|
|||
map.set('sensitive', true);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function removeMedia(state, mediaId) {
|
||||
const prevSize = state.get('media_attachments').size;
|
||||
|
@ -159,7 +159,7 @@ function removeMedia(state, mediaId) {
|
|||
map.set('sensitive', false);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
const insertSuggestion = (state, position, token, completion, path) => {
|
||||
return state.withMutations(map => {
|
||||
|
@ -524,4 +524,4 @@ export default function compose(state = initialState, action) {
|
|||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue