mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-24 02:28:12 +00:00
style: react/no-multi-comp set to 0 for designer
This commit is contained in:
parent
486da6690c
commit
290547ebf7
@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'eslint-config-ali/typescript/react',
|
extends: 'eslint-config-ali/typescript/react',
|
||||||
rules: {
|
rules: {
|
||||||
'react/no-multi-comp': 1,
|
'react/no-multi-comp': 0,
|
||||||
'no-unused-expressions': 1,
|
'no-unused-expressions': 1,
|
||||||
'implicit-arrow-linebreak': 1,
|
'implicit-arrow-linebreak': 1,
|
||||||
'no-nested-ternary': 1,
|
'no-nested-ternary': 1,
|
||||||
|
|||||||
@ -38,7 +38,6 @@ export class BorderDetectingInstance extends PureComponent<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
export class BorderDetecting extends Component<{ host: BuiltinSimulatorHost }> {
|
export class BorderDetecting extends Component<{ host: BuiltinSimulatorHost }> {
|
||||||
shouldComponentUpdate() {
|
shouldComponentUpdate() {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -57,7 +57,6 @@ export default class BoxResizing extends Component<{ host: BuiltinSimulatorHost
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
export class BoxResizingForNode extends Component<{ host: BuiltinSimulatorHost; node: Node }> {
|
export class BoxResizingForNode extends Component<{ host: BuiltinSimulatorHost; node: Node }> {
|
||||||
static contextType = SimulatorContext;
|
static contextType = SimulatorContext;
|
||||||
|
|
||||||
@ -105,7 +104,6 @@ export class BoxResizingForNode extends Component<{ host: BuiltinSimulatorHost;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
export class BoxResizingInstance extends Component<{
|
export class BoxResizingInstance extends Component<{
|
||||||
observed: OffsetObserver;
|
observed: OffsetObserver;
|
||||||
highlight?: boolean;
|
highlight?: boolean;
|
||||||
|
|||||||
@ -55,7 +55,6 @@ export class BorderSelectingInstance extends Component<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
class Toolbar extends Component<{ observed: OffsetObserver }> {
|
class Toolbar extends Component<{ observed: OffsetObserver }> {
|
||||||
shouldComponentUpdate() {
|
shouldComponentUpdate() {
|
||||||
return false;
|
return false;
|
||||||
@ -151,7 +150,6 @@ function createAction(content: ReactNode | ComponentType<any> | ActionContentObj
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
export class BorderSelectingForNode extends Component<{ host: BuiltinSimulatorHost; node: Node }> {
|
export class BorderSelectingForNode extends Component<{ host: BuiltinSimulatorHost; node: Node }> {
|
||||||
get host(): BuiltinSimulatorHost {
|
get host(): BuiltinSimulatorHost {
|
||||||
return this.props.host;
|
return this.props.host;
|
||||||
@ -195,7 +193,6 @@ export class BorderSelectingForNode extends Component<{ host: BuiltinSimulatorHo
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
export class BorderSelecting extends Component<{ host: BuiltinSimulatorHost }> {
|
export class BorderSelecting extends Component<{ host: BuiltinSimulatorHost }> {
|
||||||
get host(): BuiltinSimulatorHost {
|
get host(): BuiltinSimulatorHost {
|
||||||
return this.props.host;
|
return this.props.host;
|
||||||
|
|||||||
@ -50,7 +50,6 @@ export class BuiltinSimulatorHostView extends Component<SimulatorHostProps> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
@observer
|
@observer
|
||||||
class Canvas extends Component<{ host: BuiltinSimulatorHost }> {
|
class Canvas extends Component<{ host: BuiltinSimulatorHost }> {
|
||||||
render() {
|
render() {
|
||||||
@ -73,7 +72,6 @@ class Canvas extends Component<{ host: BuiltinSimulatorHost }> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
|
||||||
@observer
|
@observer
|
||||||
class Content extends Component<{ host: BuiltinSimulatorHost }> {
|
class Content extends Component<{ host: BuiltinSimulatorHost }> {
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user