N
Nuxt7mo 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
]
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?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server