1.0.2 • Published 7 years ago
eslint-plugin-eslint-dimagi v1.0.2
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-devNext, install eslint-plugin-eslint-dimagi:
$ npm install eslint-plugin-eslint-dimagi --save-devNote: 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
newkeyword except with specified object types.