Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "eslint-find-rules",
"version": "3.6.1",
"version": "4.0.0",
"description": "Find built-in ESLint rules you don't have in your custom config.",
"main": "dist/lib/rule-finder.js",
"exports": {
".": "./dist/lib/rule-finder.js",
"./package.json": "./package.json"
},
"scripts": {
"cover": "nyc --reporter=lcov --reporter=text --reporter=html npm run tests-only",
"lint": "eslint --ext .js,.json .",
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);
};