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:
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user