eslint-plugin-post-deploy-runner
v0.2.2
Published
Disallow directly typeorm/mongoose DML actions. Enforce DatabaseManager usage
Downloads
3,311
Maintainers
Readme
eslint-plugin-post-deploy-runner
Disallow directly typeorm/mongoose DML actions. Enforce DatabaseManager usage
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-post-deploy-runner
:
npm install eslint-plugin-post-deploy-runner --save-dev
Usage
Add post-deploy-runner
to the plugins section of your .eslintrc
configuration file. You can omit the
eslint-plugin-
prefix:
{
"plugins": ["post-deploy-runner"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"post-deploy-runner/enforce-database-manager": ["error"]
}
}
Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
| Name | Description | | :----------------------------------------------------------------- | :---------------------------------------------------------------------------- | | enforce-database-manager | Disallow directly typeorm/mongoose DML actions. Enforce DatabaseManager usage |