eslint-plugin-opticks
v0.0.2
Published
An ESLint plugin for Opticks
Maintainers
Readme
eslint-plugin-opticks
Opticks
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-opticks:
npm install eslint-plugin-opticks --save-devUsage
Add opticks to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"opticks"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"opticks/toggle": "warn",
}
}For the opticks rules to work, you also need to add your experiments configuration settings section.
{
"settings": {
"opticks": {
"experiments": {
"foo": "a",
"bar": null,
"baz": "b"
}
}
}
}Rules
opticks/toggle: Detects stale code from expired Opticks experiments, and other common mistakes
