@thetravelproject/eslint-plugin-typeorm
v1.0.0
Published
Implements typeorm rules for eslint
Downloads
72
Readme
eslint-plugin-typeorm
Installation
yarn add --dev eslint @thetravelproject/eslint-plugin-typeorm
Note: If you installed ESLint globally then you must also install eslint-plugin-jest globally.
Usage
Add @thetravelproject/eslint-plugin-typeorm
to the plugins section of your
.eslintrc
configuration file. You
{
"plugins": ["@thetravelproject/eslint-plugin-typeorm"]
}
Then configure the rules you want to use under the rules section. You need to
omit the eslint-plugin-
prefix:
{
"rules": {
"@thetravelproject/typeorm/use-typeorm-comparison-helpers": "err"
}
}
| Rule | Description | Configurations | Fixable | | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------ | | use-typeorm-comparison-helpers | Make sure you use an comparison helper (e.g. Equals) to handle undefined or null correctly | | |
Misc
Licence
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!