An open API service indexing awesome lists of open source software.

https://github.com/4cadia-foundation/eslint-plugin-truffle

ESLint Plugin for development with Truffle
https://github.com/4cadia-foundation/eslint-plugin-truffle

eslint eslint-plugin truffle truffle-development truffle-framework truffle-testing

Last synced: 15 days ago
JSON representation

ESLint Plugin for development with Truffle

Awesome Lists containing this project

README

          

# 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:

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