oxlint: sort specifiers inside import statements
vi did:web:vt3e.cat
Sat, 27 Jun 2026 20:17:25 +0100
2 files changed,
32 insertions(+),
55 deletions(-)
M
.oxlintrc.json
→
.oxlintrc.json
@@ -1,15 +1,21 @@
{ - "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": [ - "typescript", - "unicorn", - "oxc" - ], - "categories": { - "correctness": "error" - }, - "rules": {}, - "env": { - "builtin": true - } -}+ "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["typescript", "unicorn", "oxc"], + "categories": { + "correctness": "error" + }, + "rules": { + "eslint/sort-imports": [ + "error", + { + "ignoreDeclarationSort": true, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"], + "allowSeparatedGroups": true + } + ] + }, + "env": { + "builtin": true + } +}
M
.zed/settings.json
→
.zed/settings.json
@@ -24,58 +24,29 @@ },
"languages": { "JavaScript": { "format_on_save": "on", - "prettier": { - "allowed": false, - }, + "prettier": { "allowed": false }, "formatter": [ - { - "language_server": { - "name": "oxfmt", - }, - }, - { - "code_action": "source.fixAll.oxc", - }, + { "language_server": { "name": "oxfmt" } }, + { "code_action": "source.fixAll.oxc" }, ], }, - "JSON": { + "TypeScript": { "format_on_save": "on", - "prettier": { - "allowed": false, - }, + "prettier": { "allowed": false }, "formatter": [ - { - "language_server": { - "name": "oxfmt", - }, - }, + { "language_server": { "name": "oxfmt" } }, + { "code_action": "source.fixAll.oxc" }, ], }, "Markdown": { "format_on_save": "on", - "prettier": { - "allowed": false, - }, - "formatter": [ - { - "language_server": { - "name": "oxfmt", - }, - }, - ], + "prettier": { "allowed": false }, + "formatter": [{ "language_server": { "name": "oxfmt" } }], }, - "TypeScript": { + "JSON": { "format_on_save": "on", - "prettier": { - "allowed": false, - }, - "formatter": [ - { - "language_server": { - "name": "oxfmt", - }, - }, - ], + "prettier": { "allowed": false }, + "formatter": [{ "language_server": { "name": "oxfmt" } }], }, }, }