Refactor the lint file to throw errors on rule breach

This commit is contained in:
Caleb Okpara
2022-05-17 12:53:38 +00:00
parent 5a0e37a210
commit 31086ceb6e
4 changed files with 8 additions and 5 deletions

View File

@@ -77,7 +77,7 @@
"unix"
],
"@typescript-eslint/no-empty-interface": [
"warn",
"error",
{
"allowSingleExtends": true
}

View File

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

View File

@@ -1 +1,4 @@
export default interface ActionPayload {}
import ObjectID from '../../../Common/Types/ObjectID';
export default interface ActionPayload {
id?: ObjectID;
}

View File

@@ -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) {