Ensures MongoDB queries are namespaced when using meteor/cultofcoders:redis-oplog
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-meteor-redis-oplog-namespaces
:
$ npm install eslint-plugin-meteor-redis-oplog-namespaces --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-meteor-redis-oplog-namespaces
globally.
Add meteor-redis-oplog-namespaces
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"meteor-redis-oplog-namespaces"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"meteor-redis-oplog-namespaces/rule-name": 2
}
}
- Fill in provided rules here