Socket
Socket
Sign inDemoInstall

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 0.0.10 to 0.0.11

lib/rules/disallow-space-after-object-keys.js

4

CHANGELOG.md

@@ -0,1 +1,5 @@

Version 0.0.11:
* Option `disallow_space_after_object_keys`.
* Do not automatically exclude hidden files.
Version 0.0.10:

@@ -2,0 +6,0 @@ * Fix in `disallow_quoted_keys_in_objects`.

3

lib/checker.js

@@ -38,2 +38,4 @@ var esprima = require('esprima');

this.registerRule(new (require('./rules/disallow-spaces-inside-object-brackets'))());
this.registerRule(new (require('./rules/disallow-spaces-inside-array-brackets'))());
this.registerRule(new (require('./rules/disallow-space-after-object-keys'))());
this.registerRule(new (require('./rules/disallow-quoted-keys-in-objects'))());

@@ -82,3 +84,2 @@ },

return vowFs.listDir(path).then(function(filenames) {
filenames = filenames.filter(filterHiddenFiles);
return Vow.all(filenames.map(function(filename) {

@@ -85,0 +86,0 @@ var fullname = path + '/' + filename;

@@ -5,3 +5,3 @@ {

"name" : "jscs",
"version" : "0.0.10",
"version" : "0.0.11",
"repository" : "https://github.com/mdevils/jscs",

@@ -8,0 +8,0 @@ "contributors" : [

@@ -124,2 +124,16 @@ node-jscs [![Build Status](https://travis-ci.org/mdevils/node-jscs.png?branch=master)](https://travis-ci.org/mdevils/node-jscs)

/*
Option: disallow_spaces_inside_array_brackets
Disallows space after opening array square brace and before closing.
Valid example:
var x = [a: 1];
Invalid example:
var x = [ a: 1 ];
*/
"disallow_spaces_inside_array_brackets": true,
/*
Option: require_spaces_inside_object_brackets

@@ -158,2 +172,16 @@ Possible values: "all" for strict mode, "all_but_nested" ignores closing brackets in a row.

/*
Option: disallow_space_after_object_keys
Disallows space after object keys.
Valid example:
var x = {a: 1};
Invalid example:
var x = {a : 1};
*/
"disallow_space_after_object_keys": true,
/*
Option: disallow_left_sticked_operators

@@ -160,0 +188,0 @@ Disallows sticking operators to the left.

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