Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,4 @@ | ||
Version 1.0.2: | ||
* Option `requireSpacesInsideArrayBrackets` (@mishanga). | ||
Version 1.0.1: | ||
@@ -2,0 +5,0 @@ * Not reporting about extra quotes for zero-starting numbers in `disallowQuotedKeysInObjects`. |
@@ -51,2 +51,3 @@ var esprima = require('esprima'); | ||
this.registerRule(new (require('./rules/require-spaces-inside-object-brackets'))()); | ||
this.registerRule(new (require('./rules/require-spaces-inside-array-brackets'))()); | ||
this.registerRule(new (require('./rules/disallow-spaces-inside-object-brackets'))()); | ||
@@ -53,0 +54,0 @@ this.registerRule(new (require('./rules/disallow-spaces-inside-array-brackets'))()); |
@@ -5,3 +5,3 @@ { | ||
"name" : "jscs", | ||
"version" : "1.0.1", | ||
"version" : "1.0.2", | ||
"repository" : "https://github.com/mdevils/node-jscs", | ||
@@ -8,0 +8,0 @@ "contributors" : [ |
@@ -134,7 +134,7 @@ node-jscs [![Build Status](https://travis-ci.org/mdevils/node-jscs.png?branch=master)](https://travis-ci.org/mdevils/node-jscs) | ||
var x = [a: 1]; | ||
var x = [1]; | ||
Invalid example: | ||
var x = [ a: 1 ]; | ||
var x = [ 1 ]; | ||
*/ | ||
@@ -163,2 +163,21 @@ "disallowSpacesInsideArrayBrackets": true, | ||
/* | ||
Option: requireSpacesInsideArrayBrackets | ||
Possible values: "all" for strict mode, "allButNested" ignores closing brackets in a row. | ||
Requires space after opening array square brace and before closing. | ||
Valid example for mode "all": | ||
var x = [ 1 ]; | ||
Valid example for mode "allButNested": | ||
var x = [[ 1 ], [ 2 ]]; | ||
Invalid example: | ||
var x = [1]; | ||
*/ | ||
"requireSpacesInsideArrayBrackets": "all", | ||
/* | ||
Option: disallowQuotedKeysInObjects | ||
@@ -165,0 +184,0 @@ Disallows quoted keys in object if possible. |
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
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
301240
77
2656
427