Skip to content

Adds a new oxlint plugin - #156

Merged
kaste merged 1 commit into
SublimeLinter:masterfrom
IPWright83:master
Aug 26, 2026
Merged

kaste merged 1 commit into
SublimeLinter:masterfrom
IPWright83:master

Conversation

@IPWright83

@IPWright83 IPWright83 commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

This introduces a new plugin to support oxlint which my company have adopted. Out of the box it just provides linting but you can configure it with some extras to support fixing and formatting as the oxc tools chain spreads these out somewhat.

@kaste

kaste commented Aug 26, 2026

Copy link
Copy Markdown
Member

I'll merge.

        return LintMatch(
            line=self.apply_line_base(line),
            col=self.apply_col_base(col),
            # SublimeLinter clamps `end_col` to the end of the line, so a
            # multi-line span simply highlights up to the end of its first line.
            end_line=self.apply_line_base(line),
            end_col=self.apply_col_base(col + (span.get('length') or 0)),
            ...

instead of end_line/end_col, you can provide near=((span.get('length') or 0) * "^") or None IIRC.

That's an old, forgotten trick as nowadays no linter emits length. But I think it works this way.

@kaste
kaste merged commit 4d984c8 into SublimeLinter:master Aug 26, 2026
1 check passed
@IPWright83

Copy link
Copy Markdown
Contributor Author

Thanks @kaste!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants