Skip to content

Commit

Permalink
docs: document that the main export returns a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 8, 2021
1 parent 18248f6 commit 0ed735f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var getRuleFinder = require('./eslint-find-rules')
var ruleFinder = getRuleFinder('path/to/eslint-config')
// default to the `main` in your `package.json`
// var ruleFinder = getRuleFinder()
// var ruleFinder = await getRuleFinder()
// get all the current, plugin, available and unused rules
// without referring the extended files or documentation
Expand Down
2 changes: 1 addition & 1 deletion src/lib/rule-finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ async function createRuleFinder(specifiedFile, options) {
return new RuleFinder(config, options);
}

module.exports = function (specifiedFile, options = {}) {
module.exports = async function (specifiedFile, options = {}) {
return createRuleFinder(specifiedFile, options);
};

0 comments on commit 0ed735f

Please sign in to comment.