Registry / testing / eslint-plugin-no-use-extend-native

eslint-plugin-no-use-extend-native

JSON →
library0.7.2jsnpmunverified

ESLint plugin (v0.7.2) to prevent use of extended native objects like arrays, strings, and prototypes. Works alongside ESLint's no-extend-native rule to ensure code doesn't depend on prototype modifications from libraries such as 'colors'. Requires Node >=18.18.0 and ESLint ^9.3.0 (flat config only). Actively maintained with periodic updates.

npm install eslint-plugin-no-use-extend-native
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-NO-U
E
eslint-plugin-no-use-extend-native
testingjavascriptv0.7.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import eslintPluginNoUseExtendNative from 'eslint-plugin-no-use-extend-native'
const eslintPluginNoUseExtendNative = require('eslint-plugin-no-use-extend-native')
ESM-only since v0.5.0; requires ESLint flat config.
configs.recommended
import { configs } from 'eslint-plugin-no-use-extend-native'; // use configs.recommended
require('eslint-plugin-no-use-extend-native').configs.recommended
Named export for recommended config; use flat config only.
rules (for custom config)
import { rules } from 'eslint-plugin-no-use-extend-native'; // rules['no-use-extend-native'] is the rule object
require('eslint-plugin-no-use-extend-native').rules
Access rule definition directly when building custom configs.

Shows how to configure the plugin in eslint.config.js using the provided recommended config or manual setup.

// eslint.config.js import eslintPluginNoUseExtendNative from 'eslint-plugin-no-use-extend-native' export default [ // Preset config (enables rule as error) eslintPluginNoUseExtendNative.configs.recommended, // Or manually: // { // plugins: { 'no-use-extend-native': eslintPluginNoUseExtendNative }, // rules: { 'no-use-extend-native/no-use-extend-native': 2 }, // }, ]
Debug
Known issues
breakingv0.5.0 dropped CommonJS support; flat config only.
fix
Use ESM imports and eslint.config.js file; remove .eslintrc usage.
affects: >=0.5.0
breakingv0.4.0 changed rule name from 'no-use-extend-native/no-use-extend-native' to same but broke some custom configurations.
fix
Update rule key if you had custom rule configuration.
affects: >=0.4.0 <0.5.0
gotchaPlugin does not detect extensions made after the check – only static analysis.
fix
Use dynamic import or manual review for runtime prototype modifications.
affects: all
deprecatedv0.3.x was last to support Node <10 and ESLint <6.
fix
Upgrade to latest version and use ESLint flat config.
affects: <0.4.0
Errors
Common errors & fixes
Error: Failed to load plugin 'no-use-extend-native' declared in 'plugins': Cannot find module 'eslint-plugin-no-use-extend-native'
Plugin not installed or wrong import path.
fix
Run 'npm install --save-dev eslint-plugin-no-use-extend-native' and ensure package.json includes it.
ESLint couldn't determine the plugin name from ESLint configuration: 'no-use-extend-native'
Using deprecated .eslintrc config format with flat config plugin.
fix
Switch to eslint.config.js and import the plugin as shown in Quickstart.
Parsing error: The keyword 'import' is reserved
Using require() instead of import in ESM-only context.
fix
Use ESM import syntax: import eslintPluginNoUseExtendNative from 'eslint-plugin-no-use-extend-native'
Upgrade
Version history
0.7.2latest on npm
Audit
Dependencies
eslintrequiredpeer dependency – plugin requires ESLint ^9.3.0
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-no-use-extend-native — npm install eslint-plugin-no-use-extend-native · libregistry