sarbbottam / eslint-find-rules

Find built-in ESLint rules you don't have in your custom config
http://npm.im/eslint-find-rules
MIT License
201 stars 33 forks source link

Handle typescript-eslint configuration #322

Closed nicolashenry closed 4 years ago

nicolashenry commented 4 years ago

When it runs in a project containing only ".ts" files (so not any ".js" file) this error occurs: image

It seems that the issue come from this line : https://github.com/sarbbottam/eslint-find-rules/blob/ab323d6746ec9f60d24d0a26929e4ea01275d17a/src/lib/rule-finder.js#L84

It could be nice to have a way to configure the glob pattern or maybe just the extension part (see --ext option in eslint cli https://eslint.org/docs/user-guide/command-line-interface#options)

Thanks!

ljharb commented 4 years ago

We could add the ext option, sure, mirroring what eslint does.