Home / npm packages / eslint

eslint source code

Every file of eslint@10.12.0 as published on npm: 421 files, 2.9 MB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), child_process, process.env, the fs module.

What eslint uses

APIIn eslint
eval()
runs a string as JavaScript
Yes: 3 files
e.g. lib/rules/no-eval.js
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 2 files
e.g. lib/rules/utils/ast-utils.js
See the lines
child_process
starts other programs
Yes: 1 file
e.g. lib/rules/no-mixed-requires.js
See the lines
process.env
reads environment variables
Yes: 4 files
e.g. lib/eslint/eslint-helpers.js
See the lines
the fs module
reads and writes files
Yes: 8 files
e.g. lib/cli.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
NoWho does
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/types/rules.d.ts131 KB
lib/rules/utils/ast-utils.js86 KB
lib/linter/code-path-analysis/code-path-state.js72 KB
lib/rules/indent.js66 KB
lib/rule-tester/rule-tester.js61 KB
lib/rules/no-unused-vars.js51 KB
lib/linter/linter.js50 KB
lib/eslint/eslint-helpers.js45 KB
lib/rules/no-extra-parens.js44 KB
lib/eslint/eslint.js41 KB
lib/types/index.d.ts41 KB
lib/rules/indent-legacy.js36 KB
lib/languages/js/source-code/source-code.js36 KB
lib/rules/no-restricted-imports.js25 KB
lib/config/config.js24 KB
lib/config/config-loader.js23 KB
lib/languages/js/source-code/token-store/index.js22 KB
lib/linter/code-path-analysis/code-path-analyzer.js21 KB
lib/rules/key-spacing.js21 KB
lib/rules/preserve-caught-error.js21 KB
lib/rules/keyword-spacing.js20 KB
README.md20 KB
lib/rules/no-constant-binary-expression.js20 KB
lib/rules/object-shorthand.js20 KB
lib/rules/no-shadow.js20 KB
lib/rules/no-useless-assignment.js19 KB
lib/linter/file-report.js19 KB
lib/linter/apply-disable-directives.js19 KB
lib/rules/one-var.js19 KB
lib/rules/logical-assignment-operators.js19 KB

Questions

How many files are in eslint?

Version 10.12.0 of eslint publishes 421 files of source, 2.9 MB in all, not counting images, fonts and source maps.

Does eslint use eval?

Yes: eslint calls eval() in 3 of its files.

Does eslint start other programs?

Yes: eslint uses child_process in 1 of its files.

Does eslint run an install script?

No: eslint 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