mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Update jscsrc
* Update "grunt-jscs-checker" package * Use ".jscsrc" file instead of old ".jscs.json" * Use jquery preset instead of explicitly defining all the jscs rules
This commit is contained in:
parent
95dfcc50ed
commit
b7283d738e
23
.jscs.json
23
.jscs.json
@ -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/**/*" ]
|
|
||||||
}
|
|
5
.jscsrc
Normal file
5
.jscsrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"preset": "jquery",
|
||||||
|
|
||||||
|
"excludeFiles": [ "src/intro.js", "src/outro.js", "src/sizzle/**/*" ]
|
||||||
|
}
|
@ -38,7 +38,7 @@
|
|||||||
"grunt-contrib-uglify": "0.3.2",
|
"grunt-contrib-uglify": "0.3.2",
|
||||||
"grunt-contrib-watch": "0.5.3",
|
"grunt-contrib-watch": "0.5.3",
|
||||||
"grunt-git-authors": "1.2.0",
|
"grunt-git-authors": "1.2.0",
|
||||||
"grunt-jscs-checker": "0.3.2",
|
"grunt-jscs-checker": "0.4.1",
|
||||||
"grunt-jsonlint": "1.0.4",
|
"grunt-jsonlint": "1.0.4",
|
||||||
"gzip-js": "0.3.2",
|
"gzip-js": "0.3.2",
|
||||||
"load-grunt-tasks": "0.3.0",
|
"load-grunt-tasks": "0.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user