NuxtN
Nuxt2y ago
spohl

@nuxt/eslint on a monorepo

Hello,
i am havina nuxt3 project in a monorepo and i would like to make use of @nuxt/eslint.
But i would need to limit the rules to "apps/render".

I tried stuff like
import nuxtEslintConfig from './apps/render/eslint.config.mjs';

const nuxtEsLint = await nuxtEslintConfig;

export default [
// other rules
  {
    files: ['apps/render/**/*'],
    ...nuxtEsLint,
  },
// mre rules
]


But that doesn't work out:
Oops! Something went wrong! 😦

ESLint: 9.0.0

ConfigError: Config (unnamed): Unexpected key "0" found.

Any ideas how to solve this?
Was this page helpful?