Skip to content

linter: unicorn/prefer-code-point not reporting on String.fromCharCode when its not called #19928

@baevm

Description

@baevm

What version of Oxlint are you using?

1.51.0

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": [
    "unicorn",
    "typescript",
    "oxc"
  ],
  "categories": {},
  "rules": {
    "unicorn/prefer-code-point": "error",
  },
  "env": {
    "builtin": true
  },
  "globals": {},
  "ignorePatterns": []
}

What happened?

unicorn/prefer-code-point not reporting on String.fromCharCode when its not called

e.g., oxlint:

Image

eslint with eslint-plugin-unicorn@63.0.0:

Image

probably related: sindresorhus/eslint-plugin-unicorn#2613

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions