We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
.github
1 parent a875914 commit a427f26Copy full SHA for a427f26
rules/contributing.js
@@ -7,7 +7,7 @@ const rule = require('unified-lint-rule');
7
module.exports = rule('remark-lint:awesome-contributing', (ast, file) => {
8
const {dirname} = file;
9
10
- const contributingFile = globby.sync(['contributing.md', 'CONTRIBUTING.md'], {cwd: dirname})[0];
+ const contributingFile = globby.sync(['{.github/,}contributing.md'], {nocase: true, cwd: dirname})[0];
11
// TODO: This doesn't work on Linux for some reason. Investigate and then open an issue on `fast-glob`.
12
// const contributingFile = globby.sync('contributing.md', {case: false, cwd: dirname})[0];
13
0 commit comments