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<!-- Paste your configuration here -->/* eslint func-name-matching: "error" */
obj.φ = function ψ() {}; // reported
obj. = function () {}; // not reported
obj['φ'] = function ψ() {}; // reported
obj[''] = function () {}; // not reportedWhat 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
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
Source: eslint/eslint