dustinspecker / eslint-plugin-no-use-extend-native

ESLint plugin to prevent use of extended native objects
MIT License
56 stars 4 forks source link

Use eslint-plugin-n #142

Open dustinspecker opened 1 month ago

dustinspecker commented 1 month ago

This should be linted with https://www.npmjs.com/package/eslint-plugin-n

ajslater commented 1 week ago

For instance, it might catch this deprecation warning:

(node:6969) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in the package.json for /Users/aj/Code/sl8r.net/node_modules/eslint-plugin-no-use-extend-native/ resolving the main entry point "index.js", imported from /Users/aj/Code/sl8r.net/eslint.config.js.
Default "index" lookups for the main are deprecated for ES modules.
(Use `node --trace-deprecation ...` to show where the warning was created)