0.0.2 • Published 1 year ago

eslint-plugin-opticks v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

eslint-plugin-opticks

Opticks

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-opticks:

npm install eslint-plugin-opticks --save-dev

Usage

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
0.0.2

1 year ago

0.0.1

1 year ago