@isentinel/eslint-config 6.0.0-beta.6 → 6.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/index.d.mts +358 -291
- package/dist/index.mjs +3210 -1701
- package/dist/oxlint.d.mts +27424 -0
- package/dist/oxlint.mjs +3773 -0
- package/package.json +30 -7
package/README.md
CHANGED
|
@@ -495,6 +495,49 @@ otherwise, you can install them manually:
|
|
|
495
495
|
pnpm i -D eslint-plugin-react-x eslint-plugin-react-jsx eslint-plugin-react-naming-convention eslint-plugin-jest
|
|
496
496
|
```
|
|
497
497
|
|
|
498
|
+
#### Oxlint
|
|
499
|
+
|
|
500
|
+
The config can run alongside (or be replaced by)
|
|
501
|
+
[oxlint](https://oxc.rs/docs/guide/usage/linter/) in three modes: ESLint-only
|
|
502
|
+
(the default), hybrid (`oxlint && eslint`), and oxlint standalone via the
|
|
503
|
+
`@isentinel/eslint-config/oxlint` export.
|
|
504
|
+
|
|
505
|
+
```ts
|
|
506
|
+
// eslint.config.ts - hybrid mode: ESLint drops every rule oxlint covers
|
|
507
|
+
import isentinel from "@isentinel/eslint-config";
|
|
508
|
+
|
|
509
|
+
export default isentinel({
|
|
510
|
+
oxlint: true,
|
|
511
|
+
});
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
```ts
|
|
515
|
+
// oxlint.config.ts
|
|
516
|
+
import { isentinel } from "@isentinel/eslint-config/oxlint";
|
|
517
|
+
|
|
518
|
+
export default isentinel({
|
|
519
|
+
name: "project/options",
|
|
520
|
+
});
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
Requires the optional peer dependencies:
|
|
524
|
+
|
|
525
|
+
```bash
|
|
526
|
+
pnpm i -D oxlint oxlint-tsgolint
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
See [docs/oxlint.md](./docs/oxlint.md) for the per-rule mapping, what stays in
|
|
530
|
+
ESLint and why, and migration notes.
|
|
531
|
+
|
|
532
|
+
#### Type-Aware Split
|
|
533
|
+
|
|
534
|
+
On large projects the type-aware rules dominate ESLint wall time; an explicit
|
|
535
|
+
numeric `--concurrency` is the biggest single win. The `typeAware` option
|
|
536
|
+
additionally splits the config into two complementary passes: a non-type-aware
|
|
537
|
+
pass (`typeAware: false`) that never builds a TypeScript program and a
|
|
538
|
+
type-aware-only pass (`typeAware: "only"`). Together they cover exactly the full
|
|
539
|
+
config. See [docs/type-aware-split.md](./docs/type-aware-split.md).
|
|
540
|
+
|
|
498
541
|
#### ESLint Plugin Development
|
|
499
542
|
|
|
500
543
|
If you're developing an ESLint plugin, you can enable specialized rules to help
|