I would like to ask how to solve the lines-between-class-members specification problem when React uploads git.

problem description

encountered a specification error while uploading git.

9:3  error  Expected blank line between class members  lines-between-class-members

the environmental background of the problems and what methods you have tried

read the error message should be the space in line 9 is not standard but has not found a solution.

related codes

import React, { PureComponent } from "react";

export default class HomePage extends PureComponent {
  constructor(args) {
    super(args);

    this.state = {};
  }
  render() {    // 9
    return <div>HomePage</div>;
  }
}

Thank you

< hr >

this occurs when the ant-pro scaffolding generates a new page after the project is generated, and appears when uploading git

Jun.30,2022

clipboard.png

< hr >

checked the official API and found that Enter is needed between methods

Menu