Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "implicit", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Guy Ellis <wildfiction@gmail.com>", | ||
"description": "Syntax checking helper", | ||
"main": "index.js", | ||
"bin": { | ||
"implicit": "./bin/implicit.js" | ||
}, | ||
"main": "./bin/implicit.js", | ||
"public": true, | ||
@@ -11,4 +15,19 @@ "publishConfig": { | ||
"scripts": { | ||
"test": "mocha" | ||
"pre-commit-update": "node_modules/.bin/npm-update-outdated", | ||
"test": "node_modules/.bin/mocha --recursive", | ||
"posttest": "node_modules/.bin/eslint .", | ||
"lint": "node_modules/.bin/eslint .", | ||
"check-coverage": "node_modules/.bin/istanbul check-coverage --statements 10 --branches 10 --functions 10 --lines 10 ./coverage/coverage.json", | ||
"coverage": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive", | ||
"pre-commit-stash-save": "git stash --keep-index", | ||
"post-commit-stash-pop": "git stash pop" | ||
}, | ||
"pre-commit": [ | ||
"pre-commit-update", | ||
"lint", | ||
"pre-commit-stash-save", | ||
"coverage", | ||
"post-commit-stash-pop", | ||
"check-coverage" | ||
], | ||
"repository": { | ||
@@ -18,8 +37,31 @@ "type": "git", | ||
}, | ||
"author": "Guy Ellis <wildfiction@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"async": "1.4.2", | ||
"debug": "2.2.0", | ||
"lodash": "3.10.1", | ||
"match-files": "0.1.1", | ||
"minimist": "1.2.0", | ||
"typescript": "1.4.1", | ||
"walker": "1.0.7" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/guyellis/implicit/issues" | ||
}, | ||
"homepage": "https://github.com/guyellis/implicit" | ||
"homepage": "https://github.com/guyellis/implicit", | ||
"devDependencies": { | ||
"eslint": "^1.0.0", | ||
"istanbul": "^0.3.13", | ||
"mocha": "^2.2.4", | ||
"npm-update-outdated": "^0.1.4", | ||
"pre-commit": "^1.0.6" | ||
}, | ||
"keywords": [ | ||
"syntax", | ||
"javascript", | ||
"ecmascript" | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=0.10" | ||
} | ||
} |
# implicit | ||
Syntax checking helper | ||
## JavaScript Syntax Check Helper | ||
Implicit checks your JavaScript code and reports on potential errors with | ||
the syntax of the code. These are errors that cannot be found with a linter. | ||
For example, can you see the error in the following code? | ||
``` | ||
if(Object.keys(o) === 1) { | ||
console.log(o); | ||
} | ||
``` | ||
It should be: | ||
``` | ||
if(Object.keys(o).length === 1) { | ||
console.log(o); | ||
} | ||
``` | ||
Implicit will generate an error if it encounters a mistake such as this. | ||
Implicit is not a replacement for a linter. It is an additional tool that you | ||
run to check your code. A good place to put this is in a pre-commit hook. | ||
## Install | ||
``` | ||
npm install -g implicit | ||
``` | ||
## Usage | ||
Run inside the root of your project: | ||
``` | ||
implicit | ||
``` | ||
Generate default rc and ignore files: | ||
``` | ||
implicit init | ||
``` | ||
Get usage help: | ||
``` | ||
implicit --help | ||
``` | ||
## Development | ||
If you've clone the repo and are working on changes you can install your local | ||
version of `implicit` by running this in the root of the `implicit` project | ||
folder: | ||
``` | ||
npm i -g . | ||
``` | ||
Now you can go to another project and run `implicit` to have your customized | ||
changes run against your project. | ||
## Contributing and Pull Requests | ||
See [Contributing](CONTRIBUTING.md). | ||
## Help | ||
You can contact me on Twitter: [@wildfiction](https://twitter.com/wildfiction) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
19464
22
413
75
7
5
4
+ Addedasync@1.4.2
+ Addeddebug@2.2.0
+ Addedlodash@3.10.1
+ Addedmatch-files@0.1.1
+ Addedminimist@1.2.0
+ Addedtypescript@1.4.1
+ Addedwalker@1.0.7
+ Addedasync@1.4.2(transitive)
+ Addeddebug@2.2.0(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedmakeerror@1.0.12(transitive)
+ Addedmatch-files@0.1.1(transitive)
+ Addedminimist@1.2.0(transitive)
+ Addedms@0.7.1(transitive)
+ Addedstep@0.0.6(transitive)
+ Addedstep-object@0.2.2(transitive)
+ Addedtmpl@1.0.5(transitive)
+ Addedtypescript@1.4.1(transitive)
+ Addedwalker@1.0.7(transitive)