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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be942b-31958.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be942b-31958.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?