]> source.dussan.org Git - jquery.git/commitdiff
Build: Update jscsrc
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 15 Apr 2014 14:08:18 +0000 (18:08 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 15 Apr 2014 14:10:51 +0000 (18:10 +0400)
* Update "grunt-jscs-checker" package

* Use ".jscsrc" file instead of old ".jscs.json"

* Use jquery preset instead of explicitly defining all the jscs rules

(Cherry-picked from b7283d738ec4c2d9d87cb16c32a3209cab567ed1 commit)

.jscs.json [deleted file]
.jscsrc [new file with mode: 0644]
package.json

diff --git a/.jscs.json b/.jscs.json
deleted file mode 100644 (file)
index f2d8a1f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-    "requireCurlyBraces": [ "if", "else", "for", "while", "do" ],
-    "requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return" ],
-    "requireSpacesInFunctionExpression": {
-        "beforeOpeningCurlyBrace": true
-    },
-    "disallowSpacesInFunctionExpression": {
-        "beforeOpeningRoundBrace": true
-    },
-    "requireMultipleVarDecl": true,
-    "requireSpacesInsideObjectBrackets": "all",
-    "requireSpacesInsideArrayBrackets": "all",
-    "disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
-    "disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
-    "requireRightStickedOperators": [ "!" ],
-    "requireLeftStickedOperators": [ "," ],
-    "disallowKeywords": [ "with" ],
-    "disallowMultipleLineBreaks": true,
-    "disallowKeywordsOnNewLine": [ "else" ],
-    "requireLineFeedAtFileEnd": true,
-
-    "excludeFiles": [ "src/intro.js", "src/outro.js", "src/sizzle/**/*" ]
-}
diff --git a/.jscsrc b/.jscsrc
new file mode 100644 (file)
index 0000000..2193989
--- /dev/null
+++ b/.jscsrc
@@ -0,0 +1,5 @@
+{
+    "preset": "jquery",
+
+    "excludeFiles": [ "src/intro.js", "src/outro.js", "src/sizzle/**/*" ]
+}
index e4970fa78aeca6f6ca4c11f1fed9bf796336c71f..39c5b22a25ba1bda3fbba26375d16f1bcee6f52b 100644 (file)
@@ -38,7 +38,7 @@
     "grunt-contrib-uglify": "0.3.2",
     "grunt-contrib-watch": "0.5.3",
     "grunt-git-authors": "1.2.0",
-    "grunt-jscs-checker": "0.3.2",
+    "grunt-jscs-checker": "0.4.1",
     "grunt-jsonlint": "1.0.4",
     "gzip-js": "0.3.2",
     "load-grunt-tasks": "0.3.0",