mirror of
https://github.com/zen-browser/www
synced 2026-04-25 17:14:56 +02:00
22 lines
515 B
TypeScript
22 lines
515 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: {},
|
|
},
|
|
],
|
|
},
|
|
}
|