Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 416 Bytes

export-contract.md

File metadata and controls

21 lines (15 loc) · 416 Bytes

Ensure an export is a smart contract object. (nebulas/export-contract)

Ensure an export is a smart contract object (a constructor function or class which includes a 'init' method).

Rule Details

Examples of incorrect code for this rule:

class Contract {}
module.exports = Contract

Examples of correct code for this rule:

class Contract {
  init() {}
}
module.exports = Contract