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
206 stars 36 forks source link

Breaks with ESLint 7.8.0 #331

Closed soda0289 closed 4 years ago

soda0289 commented 4 years ago

I get the following error with eslint 7.8.0:

Error: eslint naming functions not found

Looks like this tool tries to access the normalization functions from eslint in the file "eslint/lib/shared/naming". https://github.com/sarbbottam/eslint-find-rules/blob/master/src/lib/normalize-plugin-name.js#L13

Looks like that file was removed in this change: https://github.com/eslint/eslint/pull/13613/files#diff-bdb20110f0ab3020c5ffa945a4b79bce

soda0289 commented 4 years ago

Those normalization functions have been moved to eslint/eslintrc package. https://github.com/eslint/eslintrc/blob/main/lib/shared/naming.js

I can push fix to include this package as dependency and remove the require('eslint/....')

ljharb commented 4 years ago

A PR would be great; unfortunately this broke in a minor version.

soda0289 commented 4 years ago

@ljharb Created PR #332

soda0289 commented 4 years ago

Confirmed eslint 7.8.0 and 7.9.0 work with eslint-find-fules 3.6.1