Browse Source

jscs update

feature/nested-cache-fetch-fix
Bryan Donovan 10 years ago
parent
commit
4e3fb2c5ed
  1. 19
      .jscs.json
  2. 1
      lib/multi_caching.js
  3. 2
      package.json

19
.jscs.json

@ -24,6 +24,7 @@
"requireParenthesesAroundIIFE": true, "requireParenthesesAroundIIFE": true,
"requireSpaceBeforeBlockStatements": true, "requireSpaceBeforeBlockStatements": true,
"disallowNewlineBeforeBlockStatements": true,
"requireSpacesInConditionalExpression": true, "requireSpacesInConditionalExpression": true,
@ -31,6 +32,18 @@
"beforeOpeningCurlyBrace": true "beforeOpeningCurlyBrace": true
}, },
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpaceBeforeBinaryOperators": [ "requireSpaceBeforeBinaryOperators": [
"+", "+",
"-", "-",
@ -62,6 +75,12 @@
"safeContextKeyword": "self", "safeContextKeyword": "self",
"maximumLineLength": {
"value": 120,
"allowUrlComments": true,
"allowRegex": true
},
"validateIndentation": 4, "validateIndentation": 4,
"validateParameterSeparator": ", ", "validateParameterSeparator": ", ",

1
lib/multi_caching.js

@ -37,7 +37,6 @@ var multi_caching = function (caches) {
* *
* When a key is found in a lower cache, all higher levels are updated * When a key is found in a lower cache, all higher levels are updated
*/ */
self.get_and_pass_up = function(key, cb) { self.get_and_pass_up = function(key, cb) {
get_from_highest_priority_cache(key, function(err, result, index) { get_from_highest_priority_cache(key, function(err, result, index) {
if (err) { if (err) {

2
package.json

@ -26,7 +26,7 @@
"devDependencies": { "devDependencies": {
"coveralls": "^2.3.0", "coveralls": "^2.3.0",
"istanbul": "^0.2.11", "istanbul": "^0.2.11",
"jscs": "^1.7.1", "jscs": "^1.9.0",
"jshint": "^2.5.4", "jshint": "^2.5.4",
"mocha": "^1.20.1", "mocha": "^1.20.1",
"optimist": "^0.6.1", "optimist": "^0.6.1",

Loading…
Cancel
Save