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
- Host: GitHub
- URL: https://github.com/4cadia-foundation/eslint-plugin-truffle
- Owner: 4cadia-foundation
- Created: 2019-10-08T16:51:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T13:33:43.000Z (almost 5 years ago)
- Last Synced: 2025-06-29T22:37:53.827Z (11 months ago)
- Topics: eslint, eslint-plugin, truffle, truffle-development, truffle-framework, truffle-testing
- Language: JavaScript
- Size: 159 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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"
// ...
]
// ...
}
```