✖ This top-level const name should be in camelCase or PascalCase or CONSTANT_CASE.
> 1 │ const fooYPosition = 0;
│ ^^^^^^^^^^^^
2 │
ℹ The name could be renamed to `fooYPosition`.
Expected result
Don't suggest a fix if there is no fix for it, meaning the fix is same as the current name.
Thanks for reporting this bug! If you want to enable consecutive uppercase characters in camel and pascal cases, you can turn off the strictCase option.
Environment information
What happened?
The fix for the
useNamingConvention
rule is same as the current code. For example it suggests to rename my variablefooYPosition
tofooYPosition
.Run this playground and get this output:
Expected result
Don't suggest a fix if there is no fix for it, meaning the fix is same as the current name.
Code of Conduct