@stackr/eslint-plugin
v0.1.2
Published
Guardrails to prevent bad practices in Stackr's Micro-rollup codebase.
Downloads
6
Readme
eslint-plugin
Motivation 💡
Writing a deterministic state machine is one of the key things in a Micro-rollup.
It's very important to have make sure that the transitions are deterministic. This plugin helps you to enforce the deterministic state machine.
Installation 🛠️
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @stackr/eslint-plugin
:
npm install @stackr/eslint-plugin --save-dev
Usage 🚀
Add @stackr
to the plugins section of your .eslintrc
configuration file.
{
"plugins": [
"@stackr"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@stackr/deterministic-state-machine": "error"
}
}