What version of Oxlint are you using?
1.61.0
What command did you run?
oxlint example.js
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
The example below is a correct example of sort-keys with allowLineSeparatedGroups
var ok = {
c: 1,
d: 2,
a: 3,
b: 4,
};
However, if the code is using CRLF line breaks oxlint does not identify the two separeate groups and thus complains. This is a regression from eslint.
It seems the culprit is that groups are identified by two consecutive LF-characters:
|
if text_between.contains("\n\n") { |
What version of Oxlint are you using?
1.61.0
What command did you run?
oxlint example.jsWhat does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "plugins": ["oxc"], "rules": { "eslint/sort-keys": ["error", "asc", { "allowLineSeparatedGroups": true }] } }What happened?
The example below is a correct example of sort-keys with
allowLineSeparatedGroupsHowever, if the code is using CRLF line breaks oxlint does not identify the two separeate groups and thus complains. This is a regression from eslint.
It seems the culprit is that groups are identified by two consecutive LF-characters:
oxc/crates/oxc_linter/src/rules/eslint/sort_keys.rs
Line 187 in 43adae9