mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Refactor the lint file to throw errors on rule breach
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
"unix"
|
||||
],
|
||||
"@typescript-eslint/no-empty-interface": [
|
||||
"warn",
|
||||
"error",
|
||||
{
|
||||
"allowSingleExtends": true
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import ActionPayload from '../Types/ActionPayload';
|
||||
import ObjectID from 'Common/Types/ObjectID';
|
||||
import ObjectID from '../../../Common/Types/ObjectID';
|
||||
|
||||
export interface OpenModalActionPayload extends ActionPayload {
|
||||
id: ObjectID;
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
export default interface ActionPayload {}
|
||||
import ObjectID from '../../../Common/Types/ObjectID';
|
||||
export default interface ActionPayload {
|
||||
id?: ObjectID;
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ const socket: $TSFixMe = io.connect(REALTIME_URL.replace('/realtime', ''), {
|
||||
});
|
||||
|
||||
export interface ComponentProps {
|
||||
project: $TSFixMe;
|
||||
project?: object;
|
||||
}
|
||||
|
||||
class SocketApp extends Component<ComponentProps> {
|
||||
public static displayName = '';
|
||||
public static propTypes = {};
|
||||
protected props: any;
|
||||
protected props: $TSFixMe;
|
||||
|
||||
public shouldComponentUpdate(nextProps: ComponentProps): boolean {
|
||||
if (this.props.project !== nextProps.project) {
|
||||
|
||||
Reference in New Issue
Block a user