Skip to content

Commit a427f26

Browse files
authoredMay 6, 2020
Allow .github directory to contain contribution guidelines (#102)
1 parent a875914 commit a427f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎rules/contributing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const rule = require('unified-lint-rule');
77
module.exports = rule('remark-lint:awesome-contributing', (ast, file) => {
88
const {dirname} = file;
99

10-
const contributingFile = globby.sync(['contributing.md', 'CONTRIBUTING.md'], {cwd: dirname})[0];
10+
const contributingFile = globby.sync(['{.github/,}contributing.md'], {nocase: true, cwd: dirname})[0];
1111
// TODO: This doesn't work on Linux for some reason. Investigate and then open an issue on `fast-glob`.
1212
// const contributingFile = globby.sync('contributing.md', {case: false, cwd: dirname})[0];
1313

0 commit comments

Comments
 (0)
Please sign in to comment.