eslint-plugin-eslint-dimagi

1.0.2 • Public • Published

eslint-plugin-eslint-dimagi

Dimagi-specific ESLint rules. Intended for developers of CommCareHQ.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-eslint-dimagi:

$ npm install eslint-plugin-eslint-dimagi --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-eslint-dimagi globally.

Usage

Add eslint-dimagi to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "eslint-dimagi"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "eslint-dimagi/rule-name": 2
    }
}

Supported Rules

  • no-unblessed-new: Disallows use of the new keyword except with specified object types.

Package Sidebar

Install

npm i eslint-plugin-eslint-dimagi

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

4.95 kB

Total Files

7

Last publish

Collaborators

  • orangejenny