eslint-plugin-truffle

0.3.1 • Public • Published

eslint-plugin-truffle

ESLint plugin for Truffle development.

Provides a custom environment containing Truffle global variables.

Installation

yarn add --dev eslint eslint-plugin-truffle

Usage

In your ESLint config file (ex.: .eslintrc), add:

{
  // ...
  "env": {
    // ...
    "mocha": true, // for test files
    "truffle/globals": true // same as "truffle/truffle": true
  },
  "plugins": [
    // ...
    "truffle"
    // ...
  ]
  // ...
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.1
    26
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.1
    26
  • 0.3.0
    0
  • 0.2.1
    0
  • 0.2.0
    0

Package Sidebar

Install

npm i eslint-plugin-truffle

Weekly Downloads

26

Version

0.3.1

License

GPL-3.0-only

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • hbarcelos