#21361·eslint

Bug: `func-name-matching` ignores property names containing astral letters

Author: sethamusCreated Sep 27, 2026Updated Sep 30, 2026
Labelsbugacceptedrepro:yes

What parser are you using?

Default (Espree)

What did you do?

Configuration
javascript
<!-- Paste your configuration here -->
javascript
/* eslint func-name-matching: "error" */

obj.φ = function ψ() {}; // reported
obj. = function () {}; // not reported

obj['φ'] = function ψ() {}; // reported
obj[''] = function () {}; // not reported

What did you expect to happen?

All four assignments should be reported. `` is a valid identifier in ES2015+, and the docs say that property assignments are skipped only when the name "is not a valid identifier in the ECMAScript version specified in your configuration".

What actually happened?

Function name `ψ` should match property name `φ`.
Function name `ψ` should match property name `φ`.

Link to Minimal Reproducible Example

https://eslint.org/play/#eyJ0ZXh0IjoiLyogZXNsaW50IGZ1bmMtbmFtZS1tYXRjaGluZzogXCJlcnJvclwiICovXG5cbm9iai7PhiA9IGZ1bmN0aW9uIM+IKCkge307IC8vIHJlcG9ydGVkXG5vYmou8JCQqCA9IGZ1bmN0aW9uIPCQkKkoKSB7fTsgLy8gbm90IHJlcG9ydGVkXG5cbm9ialsnz4YnXSA9IGZ1bmN0aW9uIM+IKCkge307IC8vIHJlcG9ydGVkXG5vYmpbJ/CQkKgnXSA9IGZ1bmN0aW9uIPCQkKkoKSB7fTsgLy8gbm90IHJlcG9ydGVkIiwib3B0aW9ucyI6eyJydWxlcyI6e30sImxhbmd1YWdlT3B0aW9ucyI6eyJwYXJzZXJPcHRpb25zIjp7ImVjbWFGZWF0dXJlcyI6e319fX19

Participation

  • I am willing to submit a pull request for this issue.

AI acknowledgment

  • I did not use AI to generate this issue report.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

Additional comments

No response