Update JSCS
This commit is contained in:
+8
-1
@@ -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
@@ -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": [
|
||||
"++",
|
||||
"--"
|
||||
@@ -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,8 +1,5 @@
|
||||
module.exports = ->
|
||||
@loadNpmTasks "grunt-jscs-checker"
|
||||
@loadNpmTasks "grunt-jscs"
|
||||
|
||||
@config "jscs",
|
||||
options:
|
||||
config: ".jscs.json"
|
||||
|
||||
src: "backbone.layoutmanager.js"
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user