Home / npm packages / eslint-plugin-unicorn

eslint-plugin-unicorn source code

Every file of eslint-plugin-unicorn@77.0.0 as published on npm: 589 files, 3.3 MB. Search them by exact text or regex, in milliseconds.

It uses: the fs module, fetch(), XMLHttpRequest, crypto, WebAssembly, document.cookie.

What eslint-plugin-unicorn uses

APIIn eslint-plugin-unicorn
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
NoWho does
the fs module
reads and writes files
Yes: 3 files
e.g. rules/consistent-json-file-read.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 3 files
e.g. rules/no-invalid-fetch-options.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
Yes: 1 file
e.g. rules/no-invalid-argument-count.js
See the lines
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. rules/no-invalid-argument-count.js
See the lines
WebAssembly
loads WebAssembly code
Yes: 2 files
e.g. rules/utils/builtins.js
See the lines
document.cookie
reads or writes browser cookies
Yes: 2 files
e.g. rules/no-document-cookie.js
See the lines
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
readme.md123 KB
rules/consistent-boolean-name.js89 KB
rules/utils/is-branch-exit.js54 KB
rules/comment-content.js42 KB
rules/prefer-spread.js40 KB
rules/no-invalid-argument-count.js37 KB
rules/prefer-abort-signal-any.js34 KB
rules/index.js31 KB
rules/no-for-loop.js30 KB
rules/no-immediate-mutation.js29 KB
rules/no-multiple-promise-resolver-calls.js27 KB
rules/no-nonstandard-builtin-properties.js25 KB
rules/no-array-reduce.js24 KB
rules/prefer-has-check.js23 KB
rules/no-invalid-intl-options.js23 KB
rules/no-unnecessary-parameters.js23 KB
rules/no-unsafe-promise-all-settled-values.js23 KB
rules/prefer-group-by.js22 KB
rules/custom-error-definition.js21 KB
rules/utils/type-helpers.js21 KB
rules/dom-node-dataset.js21 KB
rules/no-invalid-temporal-arithmetic.js20 KB
rules/prefer-path2d.js20 KB
rules/name-replacements.js19 KB
rules/utils/is-boolean.js19 KB
rules/expiring-todo-comments.js19 KB
rules/prefer-minimal-ternary.js18 KB
rules/prefer-regexp-test.js17 KB
rules/prefer-object-iterable-methods.js17 KB
rules/no-unnecessary-fetch-options.js16 KB

Questions

How many files are in eslint-plugin-unicorn?

Version 77.0.0 of eslint-plugin-unicorn publishes 589 files of source, 3.3 MB in all, not counting images, fonts and source maps.

Does eslint-plugin-unicorn use eval?

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

Does eslint-plugin-unicorn start other programs?

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

Does eslint-plugin-unicorn run an install script?

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