www/.eslint/cspell.ts
2025-06-03 16:13:47 +12:00

23 lines
553 B
TypeScript

import cspellPlugin from '@cspell/eslint-plugin'
import { type Linter } from 'eslint'
import cspellJson from '../cspell.json'
import { sharedFiles } from './shared'
export const cspellConfig: Linter.Config = {
name: 'eslint/cspell',
files: sharedFiles,
ignores: cspellJson.ignorePaths,
plugins: { '@cspell': cspellPlugin },
rules: {
'@cspell/spellchecker': [
'warn',
{
configFile: new URL('../cspell.json', import.meta.url).toString(),
cspell: {
language: 'en,es',
},
},
],
},
}