Commit Graph

7 Commits

Author SHA1 Message Date
overlookmotel 9de9385fd1 refactor(linter/plugins): rename oxlint/plugin to oxlint/plugins (#18792)
Part of #18610.

Our intent is to move `definePlugin`, `defineRule`, and `eslintCompatPlugin` to a separate package `@oxlint/plugins` (plural to avoid confusion with naming convention for plugins `oxlint-plugin-xxx`).

So rename the current entry point which exports these functions from `oxlint/plugin` to `oxlint/plugins` (plural).
2026-02-01 13:23:14 +00:00
camc314 81eb6fa9db refactor(linter): split entry points for custom plugins/config/types (#18601)
This is technically breaking (only for types), but custom plugins are experimental.

The ruletester/defineRule/definePlugin are re-exported but with a `@deprecated` tag which I think is a good enough trade off

I want to avoid users bringing in a ton of custom plugin code when doing `import { defineConfig } from 'oxlint'`
2026-01-27 00:58:08 +00:00
Boshen 523a30a016 style(all): apply oxfmt default options (#16091)
Embrace the defaults!

---------

Co-authored-by: Yuji Sugiura <y.sugiura.0316@gmail.com>
2025-11-25 15:56:24 +09:00
overlookmotel 690abec235 test(linter/plugins): use subpath imports (#15920)
Shorten imports in test fixtures using [subpath imports](https://nodejs.org/docs/latest-v24.x/api/packages.html#subpath-imports).

Before:

```ts
import type { Plugin } from '../../../dist/index.js';
```

After:

```ts
import type { Plugin } from '#oxlint';
```
2025-11-21 11:44:25 +00:00
overlookmotel 6ff3a23ecc test(linter/plugins): add tests for .ts, .mts, .cts plugin files (#14164)
Add tests for loading all types of TS files as plugins - `.ts`, `.mts`, `.cts`.
2025-09-28 15:07:50 +00:00
overlookmotel fc14abc5b5 test(linter/plugins): format test fixtures (#14125)
Pure refactor. Format files in `test/fixtures` directory. Only changes to fixture files are to add `// dprint-ignore-file` comments to 2 of them.
2025-09-25 20:35:48 +00:00
overlookmotel f51240ee3c test(linter/plugins): tests for different import styles (#13859)
Add tests for importing plugins via various path styles and module formats:

* CommonJS
* ESM
* Relative path to file
* Relative path to directory
* Package in `node_modules`
2025-09-17 12:49:48 +00:00