Skip to content

Commit 0ed735f

Browse files
committed
docs: document that the main export returns a Promise
1 parent 18248f6 commit 0ed735f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var getRuleFinder = require('./eslint-find-rules')
9898
var ruleFinder = getRuleFinder('path/to/eslint-config')
9999
100100
// default to the `main` in your `package.json`
101-
// var ruleFinder = getRuleFinder()
101+
// var ruleFinder = await getRuleFinder()
102102
103103
// get all the current, plugin, available and unused rules
104104
// without referring the extended files or documentation

src/lib/rule-finder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@ async function createRuleFinder(specifiedFile, options) {
142142
return new RuleFinder(config, options);
143143
}
144144

145-
module.exports = function (specifiedFile, options = {}) {
145+
module.exports = async function (specifiedFile, options = {}) {
146146
return createRuleFinder(specifiedFile, options);
147147
};

0 commit comments

Comments
 (0)