0
0
Fork 0

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:
Nick Schonning 2022-12-18 10:51:37 -05:00 committed by GitHub
parent 2889c68610
commit 06b68490d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 350 additions and 348 deletions

View file

@ -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;
}
};
}