UNPKG

eslint-config-cityssm

Version:

ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.

21 lines (20 loc) 533 B
function capitalize(lowercaseString) { return lowercaseString.charAt(0).toUpperCase() + lowercaseString.slice(1); } const whitelistLowercase = [ 'only', 'purchase', 'maximum', 'minimum', 'successfully', 'validate' ]; /** * Words that will not be flagged by write-good-comments. */ export const whitelist = [...whitelistLowercase]; // List is case-sensitive, include words starting with capitals. for (const word of whitelistLowercase) { whitelist.push(capitalize(word)); } export default whitelist;