Socket
Socket
Sign inDemoInstall

jscs

Package Overview
Dependencies
Maintainers
3
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.5.2 to 1.5.3

2

lib/rules/require-left-sticked-operators.js

@@ -18,3 +18,3 @@ module.exports = function() {};

'\ndisallowSpaceBeforePostfixUnaryOperators' +
'\ndisallowSpacesInConditionalExpressions',
'\ndisallowSpacesInConditionalExpression',
1,

@@ -21,0 +21,0 @@ 0

@@ -18,3 +18,3 @@ module.exports = function() {};

'\ndisallowSpaceAfterPrefixUnaryOperators' +
'\ndisallowSpacesInConditionalExpressions',
'\ndisallowSpacesInConditionalExpression',
1,

@@ -21,0 +21,0 @@ 0

var assert = require('assert');
var tokenHelper = require('../token-helper');
var allOperators = require('../utils').binaryOperators;
var allOperators = require('../../lib/utils').binaryOperators.filter(function(operator) {
return operator !== ',';
});

@@ -5,0 +7,0 @@ module.exports = function() {};

@@ -217,3 +217,3 @@ var esprima = require('esprima');

var tree;
str = str.replace(/^#![^\n]+\n/, '\n');
str = str.replace(/^#!?[^\n]+$/gm, '\n');
try {

@@ -220,0 +220,0 @@ tree = esprima.parse(str, {loc: true, range: true, comment: true, tokens: true});

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

"name": "jscs",
"version": "1.5.2",
"version": "1.5.3",
"main": "lib/checker",

@@ -8,0 +8,0 @@ "homepage": "https://github.com/mdevils/node-jscs",

@@ -58,2 +58,8 @@ {

],
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"validateLineBreaks": "LF",

@@ -66,2 +72,8 @@

},
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpaceAfterObjectKeys": true,

@@ -68,0 +80,0 @@ "disallowSpaceAfterPrefixUnaryOperators": true,

@@ -1551,3 +1551,5 @@ # node-jscs [![Build Status](https://travis-ci.org/mdevils/node-jscs.svg?branch=master)](https://travis-ci.org/mdevils/node-jscs) [![Dependency Status](https://david-dm.org/mdevils/node-jscs.svg?theme=shields.io)](https://david-dm.org/mdevils/node-jscs) [![devDependency Status](https://david-dm.org/mdevils/node-jscs/dev-status.svg?theme=shields.io)](https://david-dm.org/mdevils/node-jscs#info=devDependencies)

Values: Array of quoted operators or `true` to require space before all possible binary operators
without comma operator, since it's rarely used with this rule
#### Example

@@ -2496,3 +2498,3 @@

* disallowSpaceBeforePostfixUnaryOperators
* disallowSpacesInConditionalExpressions
* disallowSpacesInConditionalExpression

@@ -2505,3 +2507,3 @@ ### ~~requireRightStickedOperators~~

* disallowSpaceAfterPrefixUnaryOperators
* disallowSpacesInConditionalExpressions
* disallowSpacesInConditionalExpression

@@ -2508,0 +2510,0 @@ ## Browser Usage

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