eslint-plugin-jira-ticket-todos
v1.2.0
Published
Detect TODO tags without a Jira ticket associated
Downloads
160
Readme
eslint-plugin-jira-ticket-todos
===================
Jira todo linting check for eslint
Installation
npm:
npm install eslint eslint-plugin-jira-ticket-todos --save-dev
yarn:
yarn add -D eslint eslint-plugin-jira-ticket-todos
It is also possible to install ESLint globally rather than locally (using npm install -g eslint
). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case.
Configuration (legacy: .eslintrc*
)
If you do not use a preset you will need to specify individual rules and add extra configuration.
Add "jira-ticket-todos" to the plugins section.
{
"plugins": [
"jira-ticket-todos"
]
}
Enable the rules that you would like to use.
{
"rules": {
"jira-ticket-todos/jira-ticket-todos": "error",
"jira-ticket-todos/jira-ticket-todos": ["error", {"matchString": "TODO[:\-.]?", "ignoreCase": true }]
}
}