Skip to content

Commit 7879208

Browse files
committed
chore: update eslint-to-oxlint skill
1 parent baaae4e commit 7879208

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎skills/eslint-to-oxlint/SKILL.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ no `@trigen/oxlint-config/env` equivalent.
225225
Use package-specific config files when the old ESLint setup had package-level
226226
configs.
227227

228-
Important: because Oxlint nested config merging has been buggy, put
229-
`...rootConfig` first and include `rootConfig` in `extends`.
228+
Put `rootConfig` first in `extends`. Do not spread `rootConfig` into the local
229+
object or reset `options`; `defineConfig` handles the inheritance fixes for
230+
nested configs.
230231

231232
```ts
232233
import { defineConfig } from '@trigen/oxlint'
@@ -235,8 +236,6 @@ import testConfig from '@trigen/oxlint-config/test'
235236
import rootConfig from '../../oxlint.config.ts'
236237

237238
export default defineConfig({
238-
...rootConfig,
239-
options: {},
240239
extends: [
241240
rootConfig,
242241
moduleConfig,

0 commit comments

Comments
 (0)