Fix new eslint reported issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5eadbbaae9
commit
ed196d9b84
@ -117,7 +117,7 @@ export default class GroupActivityItem extends mixins(ActivityMixin) {
|
||||
}
|
||||
|
||||
get details(): string[] {
|
||||
let details = [];
|
||||
const details = [];
|
||||
const changes = this.subjectParams.group_changes.split(",");
|
||||
if (changes.includes("name") && this.subjectParams.old_group_name) {
|
||||
details.push("{old_group_name} was renamed to {group}.");
|
||||
|
@ -150,7 +150,7 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
|
||||
get path(): Location {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
let path = this.parentPath(this.activity?.object?.path);
|
||||
const path = this.parentPath(this.activity?.object?.path);
|
||||
if (path === "") {
|
||||
return {
|
||||
name: RouteName.RESOURCE_FOLDER_ROOT,
|
||||
@ -179,7 +179,7 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
|
||||
}
|
||||
|
||||
parentPath(parent: string): string {
|
||||
let path = parent.split("/");
|
||||
const path = parent.split("/");
|
||||
path.pop();
|
||||
return path.join("/").replace(/^\//, "");
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ const CustomImage = Image.extend({
|
||||
new Plugin({
|
||||
props: {
|
||||
handleDOMEvents: {
|
||||
drop(view: EditorView<any>, event: Event) {
|
||||
drop(view: EditorView, event: Event) {
|
||||
const realEvent = event as DragEvent;
|
||||
if (
|
||||
!(
|
||||
|
@ -36,8 +36,8 @@
|
||||
:class="{ 'is-hidden-mobile': !inline }"
|
||||
v-if="resource.updatedAt || resource.publishedAt"
|
||||
>{{
|
||||
(resource.updatedAt || resource.publishedAt)
|
||||
| formatDateTimeString
|
||||
(resource.updatedAt || resource.publishedAt) |
|
||||
formatDateTimeString
|
||||
}}</span
|
||||
>
|
||||
</div>
|
||||
|
@ -427,7 +427,7 @@ export default class MyEvents extends Vue {
|
||||
}
|
||||
|
||||
monthParticipationsIds(elements: Eventable[]): string[] {
|
||||
let res = elements.filter((element: Eventable) => {
|
||||
const res = elements.filter((element: Eventable) => {
|
||||
return "role" in element;
|
||||
}) as IParticipant[];
|
||||
return res.map(({ event }: { event: IEvent }) => {
|
||||
|
@ -542,7 +542,7 @@ export default class Search extends Vue {
|
||||
}
|
||||
|
||||
set eventCategory(eventCategory: string | null) {
|
||||
let query = { ...this.$route.query, eventCategory };
|
||||
const query = { ...this.$route.query, eventCategory };
|
||||
if (query.eventCategory === null) {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
|
Loading…
Reference in New Issue
Block a user