import base from '@astrale-os/ox/lint' import { defineConfig } from 'oxlint' export const domainOxlintConfig = defineConfig({ extends: [base], // Oxlint resolves ignore patterns relative to the config object that declares // them. Lift the shared preset's traversal boundary onto the project config; // leaving it only inside `extends` roots it in the installed preset package // and allows a project's dependency tree into discovery. ignorePatterns: base.ignorePatterns, jsPlugins: [ { name: 'astrale', specifier: '@astrale-os/sdk/linter/oxlint-plugin', }, ], rules: { 'astrale/core-has-no-async': 'error', 'astrale/no-nested-steps': 'error', 'astrale/no-read-inside-mutate': 'error', }, }) export default domainOxlintConfig