mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
23 lines
553 B
TypeScript
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',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}
|