Skip to content

Commit

Permalink
Fix typos in files: README.md, todo-with-label.js (#1)
Browse files Browse the repository at this point in the history
* fix typos in README, todo-with-label.js files

* improve invalid-pattern message

* Correct form of "support"

---------

Co-authored-by: Piotr Kowalski <piecioshka@gmail.com>
  • Loading branch information
Oxozon4 and piecioshka committed Nov 22, 2023
1 parent 286a2cc commit c022908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -4,7 +4,7 @@
[![downloads count](https://img.shields.io/npm/dt/eslint-plugin-todo-with-label.svg)](https://www.npmjs.com/package/eslint-plugin-todo-with-label)
[![github-ci](https://github.com/piecioshka/eslint-plugin-todo-with-label/actions/workflows/testing.yml/badge.svg)](https://github.com/piecioshka/eslint-plugin-todo-with-label/actions/workflows/testing.yml)

🔨 ESLint plugin supports TODO comments with a label in parenthesis
🔨 ESLint plugin supports TODO comments with a label in parentheses

> Give a ⭐️ if this project helped you!
Expand All @@ -25,8 +25,8 @@ This way, we will always have a point of contact for the person we can ask for h
## Features

- ✅ Validate format of TODOs in comments _(default valid format is `TODO(label): any text here`)_
-Support passing a custom pattern
-Support 8 comment types: `TODO`, `NOTE`, `COMMENT`, `FIXME`, `BUG`, `HACK`, `INFO`, `XXX`
-Supports passing a custom pattern
-Supports 8 comment types: `TODO`, `NOTE`, `COMMENT`, `FIXME`, `BUG`, `HACK`, `INFO`, `XXX`

## Installation

Expand Down
6 changes: 3 additions & 3 deletions src/rules/todo-with-label.js
Expand Up @@ -22,12 +22,12 @@ module.exports = {
meta: {
type: "suggestion",
docs: {
description: "Support TODO comments with a label in parenthesis",
description: "Supports TODO comments with a label in parentheses",
recommended: true,
},
messages: {
"without-label": "'{{ text }}' should has a label",
"invalid-pattern": "'{{ text }}' has not match the pattern {{ pattern }}",
"without-label": "'{{ text }}' should have a label",
"invalid-pattern": "'{{ text }}' doesn't match the pattern {{ pattern }}",
},
schema: [
{
Expand Down

0 comments on commit c022908

Please sign in to comment.