Merged PR 170: Add new eslint rules

- naming-convention
- prefer-arrow-callback
- func-style
- import/no-default-export
This commit is contained in:
Eric Nguyen 2022-08-26 16:13:21 +00:00
parent 3f58c5ba5e
commit ad126c6c28
65 changed files with 781 additions and 784 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import React from 'react';
import { AddMethod } from '../Enums/AddMethod';
import { XPositionReference } from '../Enums/XPositionReference';

View file

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { XPositionReference } from '../Enums/XPositionReference';
import { IImage } from './IImage';

View file

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { IAvailableContainer } from './IAvailableContainer';
import { IAvailableSymbol } from './IAvailableSymbol';

View file

@ -1,4 +1,4 @@
import IContainerProperties from './IContainerProperties';
import { IContainerProperties } from './IContainerProperties';
export interface IContainerModel {
children: IContainerModel[]

View file

@ -5,7 +5,7 @@ import { IMargin } from './IMargin';
/**
* Properties of a container
*/
export default interface IContainerProperties {
export interface IContainerProperties {
/** id of the container */
id: string
@ -55,7 +55,7 @@ export default interface IContainerProperties {
isFlex: boolean
/** Horizontal alignment, also determines the visual location of x {Left = 0, Center, Right } */
XPositionReference: XPositionReference
xPositionReference: XPositionReference
/**
* (optional)

View file

@ -3,20 +3,20 @@ import { ISymbolModel } from './ISymbolModel';
export interface IHistoryState {
/** Last editor action */
LastAction: string
lastAction: string
/** Reference to the main container */
MainContainer: IContainerModel
mainContainer: IContainerModel
/** Id of the selected container */
SelectedContainerId: string
selectedContainerId: string
/** Counter of type of container. Used for ids. */
TypeCounters: Record<string, number>
typeCounters: Record<string, number>
/** List of symbols */
Symbols: Map<string, ISymbolModel>
symbols: Map<string, ISymbolModel>
/** Selected symbols id */
SelectedSymbolId: string
selectedSymbolId: string
}

View file

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
/**
* Model of an image with multiple source
* It must at least have one source.