Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-mobile
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
2015-08-26 09:42:38 +0800
Commit
0adc4891d47b76b4c62576e0f7a34149d84a9d32
1 parent
5efe7382
code-checker configuration
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
0 deletions
.jscsrc
.jshintrc
.jscsrc
0 → 100644
View file @
0adc489
{
"disallowDanglingUnderscores"
:
true
,
"disallowEmptyBlocks"
:
true
,
"disallowKeywordsInComments"
:
[
"TODO"
,
"FIXME"
],
"disallowKeywordsOnNewLine"
:
[
"else"
,
"else if"
],
"disallowKeywords"
:
[
"with"
,
"eval"
],
"disallowMixedSpacesAndTabs"
:
true
,
"disallowMultipleLineStrings"
:
true
,
"disallowMultipleSpaces"
:
{
"allowEOLComments"
:
true
},
"disallowNamedUnassignedFunctions"
:
true
,
"disallowNewlineBeforeBlockStatements"
:
true
,
"disallowOperatorBeforeLineBreak"
:
[
"."
],
"disallowQuotedKeysInObjects"
:
true
,
"disallowSpaceAfterObjectKeys"
:
true
,
"disallowSpaceAfterPrefixUnaryOperators"
:
true
,
"disallowSpaceBeforeComma"
:
true
,
"disallowSpaceBeforePostfixUnaryOperators"
:
true
,
"disallowSpaceBeforeSemicolon"
:
true
,
"disallowSpacesInCallExpression"
:
true
,
"disallowSpacesInFunctionDeclaration"
:
{
"beforeOpeningRoundBrace"
:
true
},
"disallowSpacesInsideArrayBrackets"
:
true
,
"disallowSpacesInsideObjectBrackets"
:
true
,
"disallowSpacesInsideParentheses"
:
true
,
"disallowTrailingComma"
:
true
,
"disallowTrailingWhitespace"
:
true
,
"maximumLineLength"
:
120
,
"requireAnonymousFunctions"
:
{
"allExcept"
:
[
"declarations"
]
},
"requireBlocksOnNewline"
:
{
"includeComments"
:
true
},
"requireCamelCaseOrUpperCaseIdentifiers"
:
true
,
"requireCapitalizedConstructors"
:
true
,
"requireCommaBeforeLineBreak"
:
true
,
"requireCurlyBraces"
:
true
,
"requireDollarBeforejQueryAssignment"
:
true
,
"requireDotNotation"
:
true
,
"requireLineBreakAfterVariableAssignment"
:
true
,
"requireObjectKeysOnNewLine"
:
true
,
"requireOperatorBeforeLineBreak"
:
true
,
"requirePaddingNewLineAfterVariableDeclaration"
:
true
,
"requirePaddingNewLinesBeforeLineComments"
:
true
,
"requirePaddingNewLinesInObjects"
:
true
,
"requireParenthesesAroundIIFE"
:
true
,
"requireSpaceAfterBinaryOperators"
:
true
,
"requireSpaceAfterKeywords"
:
[
"do"
,
"for"
,
"if"
,
"else"
,
"switch"
,
"case"
,
"try"
,
"catch"
,
"void"
,
"while"
,
"with"
,
"return"
,
"typeof"
,
"function"
],
"requireSpaceBeforeBinaryOperators"
:
true
,
"requireSpaceBeforeBlockStatements"
:
1
,
"requireSpaceBeforeKeywords"
:
[
"else"
,
"while"
,
"catch"
],
"requireSpaceBeforeObjectValues"
:
true
,
"requireSpaceBetweenArguments"
:
true
,
"requireSpacesInAnonymousFunctionExpression"
:
{
"beforeOpeningCurlyBrace"
:
true
},
"requireSpacesInConditionalExpression"
:
{
"afterTest"
:
true
,
"beforeConsequent"
:
true
,
"afterConsequent"
:
true
,
"beforeAlternate"
:
true
},
"requireSpacesInForStatement"
:
true
,
"requireSpacesInFunction"
:
{
"beforeOpeningCurlyBrace"
:
true
},
"requireVarDeclFirst"
:
true
,
"validateAlignedFunctionParameters"
:
{
"lineBreakAfterOpeningBrace"
:
true
,
"lineBreakBeforeClosingBrace"
:
true
},
"validateIndentation"
:
4
,
"validateParameterSeparator"
:
", "
,
"maxErrors"
:
20
}
...
...
.jshintrc
0 → 100644
View file @
0adc489
{
"asi"
:
false
,
"bitwise"
:
false
,
"boss"
:
false
,
"browser"
:
true
,
"camelcase"
:
true
,
"couch"
:
false
,
"curly"
:
true
,
"debug"
:
false
,
"devel"
:
true
,
"dojo"
:
false
,
"eqeqeq"
:
true
,
"eqnull"
:
true
,
"es3"
:
false
,
"esnext"
:
false
,
"evil"
:
false
,
"expr"
:
true
,
"forin"
:
true
,
"funcscope"
:
true
,
"gcl"
:
false
,
"globalstrict"
:
false
,
"immed"
:
true
,
"iterator"
:
false
,
"jquery"
:
true
,
"lastsemic"
:
false
,
"latedef"
:
true
,
"laxbreak"
:
true
,
"laxcomma"
:
false
,
"loopfunc"
:
false
,
"mootools"
:
false
,
"moz"
:
false
,
"multistr"
:
false
,
"newcap"
:
true
,
"noarg"
:
true
,
"node"
:
true
,
"noempty"
:
false
,
"nonew"
:
true
,
"nonstandard"
:
false
,
"nomen"
:
false
,
"onecase"
:
false
,
"onevar"
:
false
,
"passfail"
:
false
,
"phantom"
:
false
,
"plusplus"
:
false
,
"proto"
:
false
,
"prototypejs"
:
false
,
"regexdash"
:
true
,
"regexp"
:
false
,
"rhino"
:
false
,
"scripturl"
:
true
,
"shadow"
:
false
,
"shelljs"
:
false
,
"smarttabs"
:
true
,
"strict"
:
false
,
"sub"
:
false
,
"supernew"
:
false
,
"trailing"
:
true
,
"undef"
:
true
,
"unused"
:
"vars"
,
"validthis"
:
true
,
"withstmt"
:
false
,
"white"
:
true
,
"worker"
:
false
,
"wsh"
:
false
,
"yui"
:
false
,
"maxerr"
:
20
,
"predef"
:
[
"define"
,
"seajs"
],
"quotmark"
:
"single"
,
"maxcomplexity"
:
10
}
...
...
Please
register
or
login
to post a comment