Update .gitignore regex in lintFiles
Add unit test spec for lintFiles .gitignore