Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jscs

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

lib/rules/require-spaces-inside-array-brackets.js

3

CHANGELOG.md

@@ -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'))());

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc