eslint-plugin-no-use-extend-native weekly downloads statistics
By dustinspecker · npm · ESLint plugins
ESLint plugin to prevent use of extended native objects
eslint-plugin-no-use-extend-native has 89,269 recorded weekly downloads on npm, a decrease of 36.1% over the past 30 days.
About eslint-plugin-no-use-extend-native
eslint-plugin-no-use-extend-native
ESLint plugin to prevent use of extended native objects
Install
First, install ESLint via
npm install --save-dev eslint
Then install eslint-plugin-no-use-extend-native
npm install --save-dev eslint-plugin-no-use-extend-native
Usage
In your eslint.config.js file add the plugin as such:
import eslintPluginNoUseExtendNative from 'eslint-plugin-no-use-extend-native'
export default [
{
plugins: {
'no-use-extend-native': eslintPluginNoUseExtendNative,
},
rules: {
'no-use-extend-native/no-use-extend-native': 2,
},
},
]
If you want the default of the single rule being enabled as an error, you can also just use the following instead of all of the above:
import eslintPluginNoUseExtendNative from 'eslint-plugin-no-use-extend-native'
export default [
eslintPluginNoUseExtendNative.configs.recommended,
]
With this plugin enabled, ESLint will find issues with using extended native objects:
import colors from 'colors';
console.log('unicorn'.green);
// => ESLint will give an error stating 'Avoid using extended native objects'
[].customFunction();
// => ESLint will give an error stating 'Avoid using extended native objects'
More examples can be seen in the tests.
Usage with no-extend-native
ESLint's no-extend-native rule verifies code is not modifying a native prototype. e.g., with the no-extend-native rule enabled, the following lines are each considered incorrect:
String.prototype.shortHash = function() { return this.substring(0, 7); };
Object.defineProperty(Array.prototype, "times", { value: 999 });
no-use-extend-native verifies code is not using a non-native prototype. e.g., with the no-use-extend-native plugin enabled, the following line is considered incorrect:
"50bda47b09923e045759db8e8dd01a0bacd97370".shortHash() === "50bda47";
The no-use-extend-native plugin is designed to work with ESLint's no-extend-native rule. no-extend-native ensures that native prototypes aren't extended, and should a third party library extend them, no-use-extend-native ensures those changes aren't depended upon.
LICENSE
MIT © Dustin Specker
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- extend
- native
- prototype
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-no-use-extend-native alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-no-use-extend-native. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.