We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.15.5
oxlint -c oxlint.json
.oxlint.json
{ "rules": { "no-redeclare": "error" } }
with code
export const a = { hello: "world", }; export type a = typeof a;
oxlint shows error
× eslint(no-redeclare): 'a' is already defined. ╭─[src\bad.ts:1:14] 1 │ export const a = { · ┬ · ╰── 'a' is already defined. 2 │ hello: "world", ╰──── ╭─[src\bad.ts:5:13] 4 │ 5 │ export type a = typeof a; · ┬ · ╰── It can not be redeclare here. ╰────
Having both type and variable with same name is allowed in typescript and eslint not show this error, so I think it is a bug
The text was updated successfully, but these errors were encountered:
info in general: we are (currently) supporting only the eslint version:
oxc/crates/oxc_linter/src/rules/eslint/no_redeclare.rs
Lines 29 to 31 in c90fc16
The ts rules has a extra option which defaults to true: https://typescript-eslint.io/rules/no-redeclare/#options
Sorry, something went wrong.
No branches or pull requests
What version of Oxlint are you using?
0.15.5
What command did you run?
oxlint -c oxlint.json
What does your
.oxlint.json
config file look like?What happened?
with code
oxlint shows error
Having both type and variable with same name is allowed in typescript and eslint not show this error, so I think it is a bug
The text was updated successfully, but these errors were encountered: