import path from 'node:path'; import cspell from '@cspell/eslint-plugin'; import { defineConfig } from 'eslint/config'; const configFile: string = path.resolve( import.meta.dirname, '../../../../cspell.json', ); export const config = defineConfig({ plugins: { '@cspell': cspell, }, rules: { '@cspell/spellchecker': [ 'warn', { configFile, }, ], }, }); export default config;