eslint-config-decent 4.1.6 → 4.2.0
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 +40 -0
- package/dist/oxlint.cjs +636 -0
- package/dist/oxlint.d.cts +34 -0
- package/dist/oxlint.d.mts +34 -0
- package/dist/oxlint.d.ts +34 -0
- package/dist/oxlint.mjs +634 -0
- package/package.json +24 -3
- package/src/oxlint.ts +747 -0
package/README.md
CHANGED
|
@@ -66,6 +66,46 @@ export default [
|
|
|
66
66
|
];
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
## Oxlint
|
|
70
|
+
|
|
71
|
+
Mirrors the ESLint rules from this package for [oxlint](https://oxc.rs/docs/guide/usage/linter.html).
|
|
72
|
+
Uses native oxlint plugins where available, `-compat` JS plugins for gap rules,
|
|
73
|
+
and standalone JS plugins for the rest (~95% coverage).
|
|
74
|
+
|
|
75
|
+
### Setup
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install -D oxlint oxlint-tsgolint
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
// oxlint.config.ts
|
|
83
|
+
|
|
84
|
+
import { defineConfig } from 'oxlint';
|
|
85
|
+
import { oxlintConfig } from 'eslint-config-decent/oxlint';
|
|
86
|
+
|
|
87
|
+
export default defineConfig({
|
|
88
|
+
extends: [
|
|
89
|
+
oxlintConfig({
|
|
90
|
+
enableNextJs: true,
|
|
91
|
+
nextJsRootDir: '.',
|
|
92
|
+
}),
|
|
93
|
+
],
|
|
94
|
+
});
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Requires oxlint >= 1.43.0 for TypeScript config support.
|
|
98
|
+
|
|
99
|
+
### Type-aware linting
|
|
100
|
+
|
|
101
|
+
The config enables `options.typeAware` for use with
|
|
102
|
+
[oxlint-tsgolint](https://github.com/nicolo-ribaudo/oxlint-tsgolint),
|
|
103
|
+
which provides type-aware rules powered by TypeScript's Go port.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npx oxlint-tsgolint
|
|
107
|
+
```
|
|
108
|
+
|
|
69
109
|
## Agent Skill for AI-Assisted Development
|
|
70
110
|
|
|
71
111
|
This package includes an Agent Skill that teaches AI coding assistants (Claude Code, OpenCode, etc.) to follow the same TypeScript standards enforced by the ESLint rules.
|