Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "tslint", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "a static analysis linter for TypeScript", | ||
@@ -22,3 +22,4 @@ "bin": { | ||
"dependencies": { | ||
"optimist": "~0.6.0" | ||
"optimist": "~0.6.0", | ||
"underscore.string": "~2.3.3" | ||
}, | ||
@@ -25,0 +26,0 @@ "devDependencies": { |
@@ -9,22 +9,23 @@ tslint [![NPM version](https://badge.fury.io/js/tslint.png)](http://badge.fury.io/js/tslint) [![Builds](https://api.travis-ci.org/repositories/palantir/tslint.png?branch=master)](https://travis-ci.org/palantir/tslint) | ||
* `bitwise` disallows bitwise operators. | ||
* `classname` enforces PascalCased class and interface names. | ||
* `class-name` enforces PascalCased class and interface names. | ||
* `curly` enforces braces for `if`/`for`/`do`/`while` statements. | ||
* `debug` disallows `debugger` statements. | ||
* `dupkey` disallows duplicate keys in object literals. | ||
* `duplicate-variable` disallows duplicate variable declarations. | ||
* `eofline` enforces the file to end with a newline. | ||
* `eqeqeq` enforces === and !== in favor of == and !=. | ||
* `evil` disallows `eval` function invocations. | ||
* `forin` enforces a `for ... in` statement to be filtered with an `if` statement.* | ||
* `indent` enforces consistent indentation levels (currently disabled). | ||
* `labelpos` enforces labels only on sensible statements. | ||
* `label-position` enforces labels only on sensible statements. | ||
* `label-undefined` checks that labels are defined before usage. | ||
* `maxlen` sets the maximum length of a line. | ||
* `noarg` disallows access to `arguments.callee`. | ||
* `noconsole` disallows access to the specified properties on `console`. Rule options are properties to ban on the console variable. | ||
* `noconstruct` disallows access to the constructors of `String`, `Number`, and `Boolean`. | ||
* `nounreachable` disallows unreachable code after `break`, `catch`, `throw`, and `return` statements. | ||
* `noempty` disallows empty blocks. | ||
* `oneline` enforces the specified tokens to be on the same line as the expression preceding it. Rule options: | ||
* `max-line-length` sets the maximum length of a line. | ||
* `no-arg` disallows access to `arguments.callee`. | ||
* `no-bitwise` disallows bitwise operators. | ||
* `no-console` disallows access to the specified properties on `console`. Rule options are properties to ban on the console variable. | ||
* `no-construct` disallows access to the constructors of `String`, `Number`, and `Boolean`. | ||
* `no-debugger` disallows `debugger` statements. | ||
* `no-duplicate-key` disallows duplicate keys in object literals. | ||
* `no-duplicate-variable` disallows duplicate variable declarations. | ||
* `no-empty` disallows empty blocks. | ||
* `no-eval` disallows `eval` function invocations. | ||
* `no-string-literal` disallows object access via string literals. | ||
* `no-trailing-whitespace` disallows trailing whitespace at the end of a line. | ||
* `no-unreachable` disallows unreachable code after `break`, `catch`, `throw`, and `return` statements. | ||
* `one-line` enforces the specified tokens to be on the same line as the expression preceding it. Rule options: | ||
* `"check-catch"` checks that `catch` is on the same line as the closing brace for `try` | ||
@@ -37,5 +38,4 @@ * `"check-else"` checks that `else` is on the same line as the closing brace for `if` | ||
* `semicolon` enforces semicolons at the end of every statement. | ||
* `sub` disallows object access via string literals. | ||
* `trailing` disallows trailing whitespace at the end of a line. | ||
* `varname` allows only camelCased or UPPER_CASED variable names. Rule options: | ||
* `triple-equals` enforces === and !== in favor of == and !=. | ||
* `variable-name` allows only camelCased or UPPER_CASED variable names. Rule options: | ||
* `"allow-leading-underscore"` allows underscores at the beginnning. | ||
@@ -71,6 +71,7 @@ * `whitespace` enforces spacing whitespace. Rule options: | ||
Options: | ||
-c, --config configuration file | ||
-f, --file file to lint [required] | ||
-o, --out output file | ||
-t, --format output format (prose, json) [default: "prose"] | ||
-c, --config configuration file | ||
-f, --file file to lint [required] | ||
-o, --out output file | ||
-r, --rules-dir rules directory | ||
-t, --format output format (prose, json) [default: "prose"] | ||
@@ -83,3 +84,4 @@ By default, configuration is loaded from `.tslintrc` or `tslint.json`, if either exists in the current path. | ||
formatter: "json", | ||
configuration: configuration | ||
configuration: configuration, | ||
rulesDirectory: "customRules/" | ||
}; | ||
@@ -86,0 +88,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
6639777
37
115701
111
2
+ Addedunderscore.string@~2.3.3
+ Addedunderscore.string@2.3.3(transitive)