Skip to content

Commit b426bc2

Browse files
committed
more allowed words
1 parent 7619a89 commit b426bc2

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

cspell.flagWords.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import list1 from 'eslint-plugin-woke/lib/categories/LGBTQ.js';
22
import list2 from 'eslint-plugin-woke/lib/categories/gender.js';
33
import list3 from 'eslint-plugin-woke/lib/categories/profanity.js';
44
import list4 from 'eslint-plugin-woke/lib/categories/racism.js';
5+
import { words } from './cspell.words.js';
56
const unformattedWordLists = [...list1, ...list2, ...list3, ...list4];
67
const wordListSet = new Set();
78
for (const unformattedWordList of unformattedWordLists) {
@@ -14,5 +15,8 @@ for (const unformattedWordList of unformattedWordLists) {
1415
}
1516
}
1617
}
18+
for (const wordToRemove of words) {
19+
wordListSet.delete(wordToRemove);
20+
}
1721
export const flagWords = [...wordListSet];
1822
export default flagWords;

cspell.flagWords.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import list2 from 'eslint-plugin-woke/lib/categories/gender.js'
33
import list3 from 'eslint-plugin-woke/lib/categories/profanity.js'
44
import list4 from 'eslint-plugin-woke/lib/categories/racism.js'
55

6+
import { words } from './cspell.words.js'
7+
68
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
79
const unformattedWordLists = [...list1, ...list2, ...list3, ...list4] as Array<{
810
description: string
@@ -21,6 +23,14 @@ for (const unformattedWordList of unformattedWordLists) {
2123
}
2224
}
2325

26+
/**
27+
* Remove all allowed words
28+
*/
29+
30+
for (const wordToRemove of words) {
31+
wordListSet.delete(wordToRemove)
32+
}
33+
2434
/**
2535
* Words that will be flagged as not allowed.
2636
*/

cspell.words.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
export const words = [
22
'cityssm',
3+
'datetimepicker',
4+
'fullwidth',
5+
'hoverable',
6+
'onremoved',
7+
'onshown',
8+
'trash',
9+
'vcentered',
10+
'yellow',
311
'nvarchar',
412
'recordset',
513
'sonarjs',

cspell.words.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ export const words = [
55
/* City of Sault Ste. Marie words */
66
'cityssm',
77

8+
/* CitySSM Web App words */
9+
'datetimepicker',
10+
'fullwidth',
11+
'hoverable',
12+
'onremoved',
13+
'onshown',
14+
'trash',
15+
'vcentered',
16+
'yellow',
17+
818
/* Database-related words */
919
'nvarchar',
1020
'recordset',

0 commit comments

Comments
 (0)