Comparing version 1.0.3 to 1.0.4
@@ -38,2 +38,3 @@ var esprima = require('esprima'); | ||
this.registerRule(new (require('./rules/disallow-space-after-keywords'))()); | ||
/* TODO: should delete this rules (start) */ | ||
this.registerRule(new (require('./rules/require-left-sticked-operators'))()); | ||
@@ -43,2 +44,3 @@ this.registerRule(new (require('./rules/disallow-left-sticked-operators'))()); | ||
this.registerRule(new (require('./rules/disallow-right-sticked-operators'))()); | ||
/* should delete this rules (end) */ | ||
this.registerRule(new (require('./rules/disallow-implicit-type-conversion'))()); | ||
@@ -60,2 +62,11 @@ this.registerRule(new (require('./rules/disallow-keywords'))()); | ||
this.registerRule(new (require('./rules/require-aligned-object-values'))()); | ||
this.registerRule(new (require('./rules/disallow-space-before-binary-operators'))()); | ||
this.registerRule(new (require('./rules/require-space-before-binary-operators'))()); | ||
this.registerRule(new (require('./rules/disallow-space-after-binary-operators'))()); | ||
this.registerRule(new (require('./rules/require-space-after-binary-operators'))()); | ||
this.registerRule(new (require('./rules/require-spaces-in-function-expression'))()); | ||
this.registerRule(new (require('./rules/disallow-spaces-in-function-expression'))()); | ||
}, | ||
@@ -62,0 +73,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"name" : "jscs", | ||
"version" : "1.0.3", | ||
"version" : "1.0.4", | ||
"repository" : "https://github.com/mdevils/node-jscs", | ||
@@ -18,3 +18,8 @@ "contributors" : [ | ||
"name": "Igor Agarlev" | ||
}, | ||
{ | ||
"name": "Alexey Androsov", | ||
"email": "doochik@ya.ru" | ||
} | ||
], | ||
@@ -21,0 +26,0 @@ "engines" : { |
@@ -82,3 +82,34 @@ node-jscs [![Build Status](https://travis-ci.org/mdevils/node-jscs.png?branch=master)](https://travis-ci.org/mdevils/node-jscs) | ||
/* | ||
Option: requireSpacesInFunctionExpression | ||
Requires space before () or {} in function declarations. | ||
Valid examples: | ||
function () {} | ||
function a () {} | ||
Invalid examples: | ||
function() {} | ||
function (){} | ||
*/, | ||
"requireSpacesInFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, | ||
/* | ||
Option: disallowSpacesInFunctionExpression | ||
Disallows space before () or {} in function declarations. | ||
Valid examples: | ||
function(){} | ||
function a(){} | ||
Invalid examples: | ||
function () {} | ||
function a (){} | ||
*/, | ||
"disallowSpacesInFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, | ||
/* | ||
Option: disallowMultipleVarDecl | ||
@@ -85,0 +116,0 @@ Disallows multiple var declaration (except for-loop). |
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
80
3170
460
138333