Alloy ESLint custom rules
npm install eslint-plugin-yotta-alloy
$ npm i eslint --save-dev
`
Next, install alloy-eslint:
Build
To build the latest eslint plugin from development use npm run build which will build its output to the dist directory.
Usage
Add alloy to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json
{
"plugins": ["alloy"]
}
`
Then configure the rules you want to use under the rules section.
`json
{
"rules": {
"alloy/allowed-imports": "error"
}
}
``