Home / npm packages / tslint

tslint source code

Every file of tslint@6.1.3 as published on npm: 499 files, 1.9 MB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), the fs module, fetch().

What tslint uses

APIIn tslint
eval()
runs a string as JavaScript
Yes: 1 file
e.g. lib/rules/noEvalRule.js
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. lib/rules/code-examples/functionConstructor.examples.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 12 files
e.g. lib/configuration.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 1 file
e.g. lib/rules/code-examples/noAsyncWithoutAwait.examples.js
See the lines
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
CHANGELOG.md133 KB
lib/rules/memberOrderingRule.js36 KB
lib/rules/orderedImportsRule.js32 KB
lib/rules/completedDocsRule.js26 KB
lib/rules/noUnsafeAnyRule.js22 KB
lib/rules/noUnusedVariableRule.js22 KB
lib/language/utils.js21 KB
lib/configuration.js21 KB
lib/rules/strictBooleanExpressionsRule.js21 KB
lib/language/walker/syntaxWalker.js21 KB
lib/rules/noShadowedVariableRule.js20 KB
lib/rules/whitespaceRule.js18 KB
lib/rules/objectLiteralSortKeysRule.js16 KB
lib/rules/semicolonRule.js16 KB
lib/tslintCli.js16 KB
lib/rules/preferConstRule.js16 KB
lib/rules/quotemarkRule.js15 KB
lib/rules/unifiedSignaturesRule.js14 KB
lib/linter.js13 KB
lib/rules/commentFormatRule.js13 KB
lib/rules/trailingCommaRule.js13 KB
lib/utils.js12 KB
lib/rules/importBlacklistRule.js12 KB
lib/verify/parse.js12 KB
lib/rules/strictComparisonsRule.js12 KB
lib/test.js12 KB
lib/rules/typedefRule.js11 KB
LICENSE11 KB
lib/rules/preferReadonlyRule.js11 KB
lib/rules/strictTypePredicatesRule.js11 KB

Questions

How many files are in tslint?

Version 6.1.3 of tslint publishes 499 files of source, 1.9 MB in all, not counting images, fonts and source maps.

Does tslint use eval?

Yes: tslint calls eval() in 1 of its files.

Does tslint start other programs?

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

Does tslint run an install script?

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