Home / npm packages / stylelint

stylelint source code

Every file of stylelint@17.16.0 as published on npm: 364 files, 987 KB. Search them by exact text or regex, in milliseconds.

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

What stylelint uses

APIIn stylelint
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: 5 files
e.g. lib/createStylelint.mjs
See the lines
the fs module
reads and writes files
Yes: 9 files
e.g. lib/utils/FileCache.mjs
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. lib/utils/hash.mjs
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
types/stylelint/index.d.ts49 KB
lib/reference/properties.mjs25 KB
lib/cli.mjs18 KB
lib/augmentConfig.mjs18 KB
lib/rules/function-calc-no-unspaced-operator/index.mjs16 KB
lib/rules/declaration-property-value-no-unknown/index.mjs15 KB
lib/reference/keywords.mjs15 KB
lib/rules/declaration-block-no-redundant-longhand-properties/index.mjs13 KB
lib/reference/selectors.mjs13 KB
lib/rules/selector-no-unmatchable/index.mjs12 KB
lib/assignDisabledRanges.mjs12 KB
lib/standalone.mjs11 KB
lib/rules/selector-no-invalid/index.mjs9.9 KB
lib/rules/shorthand-property-no-redundant-values/index.mjs9.1 KB
lib/rules/media-feature-name-value-no-unknown/index.mjs9.1 KB
lib/rules/property-layout-mappings/index.mjs9.0 KB
lib/utils/suppressionsService.mjs8.8 KB
lib/utils/report.mjs8.6 KB
lib/rules/declaration-block-no-duplicate-properties/index.mjs8.4 KB
lib/utils/isAutoprefixable.mjs8.1 KB
lib/formatters/stringFormatter.mjs7.9 KB
lib/rules/function-url-quotes/index.mjs6.9 KB
lib/rules/no-duplicate-selectors/index.mjs6.9 KB
lib/rules/value-keyword-case/index.mjs6.7 KB
lib/rules/value-keyword-layout-mappings/index.mjs6.7 KB
lib/rules/selector-max-type/index.mjs6.4 KB
lib/utils/regexes.mjs6.4 KB
lib/rules/no-irregular-whitespace/index.mjs6.4 KB
package.json6.2 KB
lib/rules/unit-no-unknown/index.mjs6.2 KB

Questions

How many files are in stylelint?

Version 17.16.0 of stylelint publishes 364 files of source, 987 KB in all, not counting images, fonts and source maps.

Does stylelint use eval?

No: stylelint doesn't call eval() anywhere in its published files.

Does stylelint start other programs?

No: stylelint doesn't use child_process anywhere in its published files.

Does stylelint run an install script?

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