Skip to content

[match-description] Reports on message ending with emoji #1433

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Expected behavior

The following code should not report any errors by default:

/**
 * Example text. 🙂
 */
export const example = () => { };

Actual behavior

/Users/josh/repos/repros/index.js
  2:1  error  JSDoc description does not satisfy the regex pattern  jsdoc/match-description

ESLint Config

import jsdoc from "eslint-plugin-jsdoc";

export default [
    {
        plugins: { jsdoc },
        rules: {
            "jsdoc/match-description": "error",
        },
    },
];

ESLint sample

See earlier.

Environment

  • Node version: 24.3.0
  • ESLint version: 9.31.0
  • eslint-plugin-jsdoc version: 51.4.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions