tools
tools copied to clipboard
🐛 `noDuplicateParameters` does not report duplicated parameters on function signatures
Environment information
CLI:
Version: 11.0.0-nightly.846c15e
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v18.12.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/8.19.2"
Rome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Workspace:
Open Documents: 0
What happened?
The following overloads are not reported by noDuplicateParameters
:
class X {
f(x: 0, x: 0)
f(x: 1, x: 1)
f(x: number, y: number): void {}
}
Similarly, duplicate parameters on function overloads are not reported:
function f(x: 0, x: 0): void
function f(x: 1, x: 1): void
function f(x: number, y: number): void {}
Code of Conduct
- [X] I agree to follow Rome's Code of Conduct