![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@patrtorg/eligendi-deserunt
Advanced tools
[![npm version](https://badge.fury.io/js/@patrtorg/eligendi-deserunt.svg)](https://badge.fury.io/js/@patrtorg/eligendi-deserunt) [![downloads count](https://img.shields.io/npm/dt/@patrtorg/eligendi-deserunt.svg)](https://www.npmjs.com/package/@patrtorg/el
🔨 ESLint plugin supports TODO comments with a label in parentheses
Give a ⭐️ if this project helped you!
When working with code, many times there will be a situation of creating a TODO in the code to indicate that you need to perform some action here, such as writing an error handler. In such situations, the creation of a TODO is understandable. On the other hand, it often happens that such a comment in the code is for a long time. Then people reading such code, who would like to solve the TODO comment, lack information about the author, so that they can turn to him for more details.
If we use this plugin, we will force everyone creating a TODO comment to define the author in parentheses. This way, we will always have a point of contact for the person we can ask for help.
TODO(label): any text here
)TODO
, NOTE
, COMMENT
, FIXME
, BUG
, HACK
, INFO
, XXX
You'll first need to install ESLint:
npm install -D eslint
Next, install @patrtorg/eligendi-deserunt
:
npm install -D @patrtorg/eligendi-deserunt
Add todo-with-label
to the plugins section of your .eslintrc
configuration file.
You can omit the eslint-plugin-
prefix:
module.exports = {
// ...
plugins: ['todo-with-label'],
rules: {
'todo-with-label/has-valid-pattern': 'error',
}
};
The optional configuration for rule todo-with-label/has-valid-pattern
:
types
examples:
["TODO"]
["FOO", "BAR", "BAZ"]
Default ["TODO", "NOTE", "COMMENT", "FIXME", "BUG", "HACK", "INFO", "XXX"]
pattern
examples:
^TODO: (.*)$
TODO: any text here
^TODO\\((\\w+)\\)$
TODO(label)
^TODO\\((author:@\\w+)\\)\\: (.*)$
TODO(author:@login): any text here
Default pattern
looks as follows: ^TODO\\((\\w+)\\)\\: (.*)$
TODO(label): any text here
⚠️ WARNING: When you pass a pattern, it should be a string and has escaped backslashes.
Example usage with options:
module.exports = {
// ...
plugins: ['todo-with-label'],
rules: {
"todo-with-label/has-valid-pattern": [
"error",
{
types: ["TODO"],
pattern: "^TODO\\((author:@\\w+)\\)\\: (.*)$"
},
],
},
};
The MIT License @ 2023
FAQs
[![npm version](https://badge.fury.io/js/@patrtorg/eligendi-deserunt.svg)](https://badge.fury.io/js/@patrtorg/eligendi-deserunt) [![downloads count](https://img.shields.io/npm/dt/@patrtorg/eligendi-deserunt.svg)](https://www.npmjs.com/package/@patrtorg/el
The npm package @patrtorg/eligendi-deserunt receives a total of 0 weekly downloads. As such, @patrtorg/eligendi-deserunt popularity was classified as not popular.
We found that @patrtorg/eligendi-deserunt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.