https://github.com/clemlak/solhint-plugin-test-precise-uint
A test for a custom Solhint rule
https://github.com/clemlak/solhint-plugin-test-precise-uint
Last synced: about 2 months ago
JSON representation
A test for a custom Solhint rule
- Host: GitHub
- URL: https://github.com/clemlak/solhint-plugin-test-precise-uint
- Owner: clemlak
- Created: 2019-02-12T08:59:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-12T09:07:01.000Z (over 7 years ago)
- Last Synced: 2025-03-15T02:23:23.814Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Just some a small test using the new Solhint plugin system (https://github.com/protofire/solhint/blob/2.0/docs/writing-plugins.md).
What does it do? Basically it prevents contract from being named `Foo` and it will throw an error if you use imprecise `uint`.
## Usage
Install the plugin with `npm i solhint-plugin-test-precise-uint` and update your `.solhint.json` with:
```
{
"extends": ["solhint:default"],
"plugins": ["test-precise-uint"],
"rules": {
"test-precise-uint/precise-uint": "error",
"test-precise-uint/no-foos": "error",
}
}
```