Skip to content

Commit

Permalink
fix building whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Nov 7, 2024
1 parent 1a87081 commit da90200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wordLists/writeGoodComments.whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const whitelistLowercase = ['only', 'validate'];
*/
export const whitelist = [...whitelistLowercase];
// List is case-sensitive, include words starting with capitals.
for (const word of whitelist) {
for (const word of whitelistLowercase) {
whitelist.push(capitalize(word));
}
export default whitelist;
2 changes: 1 addition & 1 deletion wordLists/writeGoodComments.whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const whitelistLowercase = ['only', 'validate'] satisfies Array<
export const whitelist = [...whitelistLowercase] as string[]

// List is case-sensitive, include words starting with capitals.
for (const word of whitelist) {
for (const word of whitelistLowercase) {
whitelist.push(capitalize(word))
}

Expand Down

0 comments on commit da90200

Please sign in to comment.