Update JSCS

This commit is contained in:
Simen Bekkhus
2015-04-18 12:08:41 +02:00
parent 37aa2445cb
commit 41388efd14
5 changed files with 30 additions and 49 deletions
+8 -1
View File
@@ -1,4 +1,11 @@
root = true
[*]
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
indent_size = 2
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
+19 -42
View File
@@ -9,7 +9,7 @@
},
"validateLineBreaks": "LF",
"validateQuoteMarks": true,
"validateQuoteMarks": { "mark": "\"", "escape": true },
"requireCurlyBraces": [
"if",
@@ -59,10 +59,15 @@
"==",
"===",
"!=",
"!=="
"!==",
">",
">=",
"<",
"<="
],
"requireSpaceAfterBinaryOperators": [
",",
"+",
"-",
"/",
@@ -71,17 +76,19 @@
"==",
"===",
"!=",
"!=="
"!==",
">",
">=",
"<",
"<="
],
"requireRightStickedOperators": [
"!"
],
"requireLeftStickedOperators": [
"disallowSpaceBeforeBinaryOperators": [
","
],
"requireSpacesInConditionalExpression": true,
"requireKeywordsOnNewLine": [
"catch",
"while"
@@ -91,29 +98,16 @@
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireParenthesesAroundIIFE": true,
"requireCommaBeforeLineBreak": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"disallowLeftStickedOperators": [
"?",
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"disallowSpaceAfterPrefixUnaryOperators": [
"++",
"--",
@@ -123,23 +117,6 @@
"!"
],
"disallowRightStickedOperators": [
"?",
"+",
"/",
"*",
":",
"=",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"disallowSpaceBeforePostfixUnaryOperators": [
"++",
"--"
+1 -1
View File
@@ -30,7 +30,7 @@
else {
factory.call(window, window.Backbone, window._, window.Backbone.$);
}
}(typeof global === "object" ? global : this, function (Backbone, _, $) {
}(typeof global === "object" ? global : this, function(Backbone, _, $) {
"use strict";
// Create a reference to the global object. In browsers, it will map to the
+1 -4
View File
@@ -1,8 +1,5 @@
module.exports = ->
@loadNpmTasks "grunt-jscs-checker"
@loadNpmTasks "grunt-jscs"
@config "jscs",
options:
config: ".jscs.json"
src: "backbone.layoutmanager.js"
+1 -1
View File
@@ -30,7 +30,7 @@
"grunt-browserify": "^3.3.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-jshint": "^0.11.0",
"grunt-jscs-checker": "^0.4.4",
"grunt-jscs": "^1.6.0",
"grunt-nodequnit": "^0.2.0",
"grunt-qunit-istanbul": "^0.4.7",
"jquery": "^2.1.3",