Home / npm packages / eslint-plugin-import

eslint-plugin-import source code

Every file of eslint-plugin-import@2.32.0 as published on npm: 132 files, 1.4 MB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module, crypto.

What eslint-plugin-import uses

APIIn eslint-plugin-import
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 2 files
e.g. lib/rules/no-unused-modules.js
See the lines
the fs module
reads and writes files
Yes: 7 files
e.g. lib/exportMap/builder.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. memo-parser/index.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
lib/rules/order.js160 KB
lib/rules/no-unused-modules.js126 KB
CHANGELOG.md116 KB
lib/rules/no-duplicates.js58 KB
lib/rules/no-extraneous-dependencies.js38 KB
lib/rules/export.js31 KB
lib/rules/no-restricted-paths.js31 KB
lib/rules/consistent-type-specifier-style.js31 KB
lib/rules/newline-after-import.js31 KB
docs/rules/order.md30 KB
lib/exportMap/visitor.js29 KB
README.md29 KB
lib/rules/no-cycle.js27 KB
lib/rules/namespace.js27 KB
lib/rules/extensions.js26 KB
lib/exportMap/builder.js24 KB
lib/exportMap/index.js22 KB
lib/rules/no-namespace.js22 KB
lib/rules/dynamic-import-chunkname.js22 KB
lib/rules/no-useless-path-segments.js21 KB
lib/rules/first.js20 KB
lib/rules/named.js17 KB
lib/core/importType.js17 KB
lib/rules/enforce-node-protocol-usage.js17 KB
lib/rules/no-deprecated.js17 KB
lib/rules/no-internal-modules.js17 KB
lib/rules/group-exports.js16 KB
lib/rules/no-empty-named-blocks.js16 KB
lib/rules/no-commonjs.js15 KB
lib/index.js14 KB

Questions

How many files are in eslint-plugin-import?

Version 2.32.0 of eslint-plugin-import publishes 132 files of source, 1.4 MB in all, not counting images, fonts and source maps.

Does eslint-plugin-import use eval?

No: eslint-plugin-import doesn't call eval() anywhere in its published files.

Does eslint-plugin-import start other programs?

No: eslint-plugin-import doesn't use child_process anywhere in its published files.

Does eslint-plugin-import run an install script?

No: eslint-plugin-import has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine