Skip to content

4cadia-foundation/eslint-plugin-truffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    // ...
  ]
  // ...
}