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

@ -72,4 +72,4 @@ class ClosedRegistrationsModal extends ImmutablePureComponent {
);
}
};
}

View file

@ -6,4 +6,4 @@ export function countableText(inputText) {
return inputText
.replace(urlRegex, urlPlaceholder)
.replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/ig, '$1@$3');
};
}

View file

@ -38,7 +38,7 @@ class ColumnSettings extends React.PureComponent {
} else {
return tags;
}
};
}
onSelect = mode => value => {
const oldValue = this.tags(mode);
@ -98,7 +98,7 @@ class ColumnSettings extends React.PureComponent {
default:
return '';
}
};
}
render () {
const { settings, onChange } = this.props;

View file

@ -126,7 +126,7 @@ class ListTimeline extends React.PureComponent {
onConfirm: () => {
dispatch(deleteList(id));
if (!!columnId) {
if (columnId) {
dispatch(removeColumn(columnId));
} else {
this.context.router.history.push('/lists');

View file

@ -89,4 +89,4 @@ class DisabledAccountBanner extends React.PureComponent {
);
}
};
}

View file

@ -91,4 +91,4 @@ class LinkFooter extends React.PureComponent {
);
}
};
}

View file

@ -46,7 +46,7 @@ export class WrappedRoute extends React.Component {
return {
hasError: true,
};
};
}
state = {
hasError: false,