strictr
v0.5.6
Published
strict statement checker
Readme
strictr
strictR - check for 'use strict'; statement
optional config
You can change default configuration via .strictr.json file:
{
"directories": ["src", "test"] // default: ["src", "test"]
}Note: strictr automatically checks both .js and .ts files.
help
strictr -hOutput:
C:\git\github\strictr> strictr -h
Usage: strictr [options]
Check for missing strict statement in files.
Use .strictr.json config file to override default settings.
Options:
-V, --version output the version number
-f, --fix Fix missing strict statements (default: false)
-c, --config <config> Alternative config file (must be .json) (default: ".strictr.json")
-h, --help display help for command run strictr check
strictrOutput:
No source files are missing the strict statement.
Test files missing the strict statement:
┌───┬──────────────────────┬──────────────────────────────────────┐
│ # │ File │ Path │
├───┼──────────────────────┼──────────────────────────────────────┤
│ 1 │ check.folder.spec.ts │ C:\git\github\strictr\test\functions │
└───┴──────────────────────┴──────────────────────────────────────┘