forked from rstackjs/rstack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcspell.config.js
More file actions
35 lines (34 loc) · 894 Bytes
/
Copy pathcspell.config.js
File metadata and controls
35 lines (34 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { banWords } from 'cspell-ban-words';
export default {
version: '0.2',
language: 'en',
files: ['**/*.{ts,tsx,js,jsx,md,mdx}'],
enableFiletypes: ['mdx'],
ignoreRegExpList: [
// ignore markdown anchors such as [modifyRsbuildConfig](#modifyrsbuildconfig)
'#.*?\\)',
// ignore custom anchor declarations such as ## createRsbuild \{#creatersbuild}
'\\\\\\{#[^}]+\\}',
// ignore release note author mentions such as "by @chenjiahan"
'by\\s+@[A-Za-z0-9_-]+',
],
ignorePaths: [
'dist',
'dist-*',
'coverage',
'doc_build',
'node_modules',
'packages/rstack/binding.cjs',
'packages/rstack/THIRD_PARTY_NOTICES.md',
'pnpm-lock.yaml',
],
flagWords: banWords,
dictionaries: ['dictionary'],
dictionaryDefinitions: [
{
name: 'dictionary',
path: './scripts/dictionary.txt',
addWords: true,
},
],
};