slippy
v0.3.0
Published
A simple but powerful linter for Solidity
Readme
Slippy
Slippy is a linter for Solidity that's simple, powerful, and thoughtfully built.
Installation
Install it:
npm install --save-dev slippyInitialize a config file:
npx slippy --initRun it:
npx slippy "contracts/**/*.sol"Why Slippy?
You can read a more detailed comparison between Slippy and Solhint, but here's a summary:
- A single, flexible configuration that lets you easily enable or disable rules for specific parts of your codebase
- A unified
naming-conventionrule - A more accurate
no-unused-varsrule - Unused comment directives like
// slippy-disable-lineare reported - No formatting rules
- Semantic versioning
Configuration
Slippy's configuration lives in a slippy.config.js file, which exports the configuration that Slippy will use to lint your code. Here’s a minimal example:
module.exports = {
rules: {
"no-console": "warn",
"no-unused-vars": ["error", { ignorePattern: "^_" }],
},
};For more details on configuring Slippy, including advanced features like cascading configurations, file ignores, and comment directives, see the configuration documentation.
Rules
You can find the full list of available rules in the rules reference documentation.
