Adding shard_allocation vis

Original commit: elastic/x-pack-elasticsearch@081ba8aa5d
This commit is contained in:
Chris Cowan 2015-07-16 13:59:09 -07:00
parent c43433d580
commit 90e98766ac
4 changed files with 108 additions and 0 deletions

58
.jscsrc Normal file
View File

@ -0,0 +1,58 @@
{
"maximumLineLength": {
"value": 140,
"allowComments": true
},
"requireCurlyBraces": [
"for",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"case",
"return",
"try",
"catch",
"function",
"typeof"
],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"requireSpaceBetweenArguments": true,
"disallowMultipleVarDecl": "exceptUndefined",
"disallowEmptyBlocks": true,
"requireCommaBeforeLineBreak": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [
","
],
"requireSpacesInForStatement": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceAfterBinaryOperators": true,
"disallowKeywords": [
"with"
],
"validateIndentation": 2,
"validateQuoteMarks": { "mark": "'", "escape": true },
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowMultipleLineStrings": true
}

27
.jshintrc Normal file
View File

@ -0,0 +1,27 @@
{
// for files at project root
"node": true,
// shared with .jshintrc files for browser and node
"unused": false,
"bitwise": false,
"eqnull": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"expr": true,
"latedef": "nofunc",
"noarg": true,
"noempty": true,
"undef": true,
"quotmark": "single",
"plusplus": false,
"boss": true,
"laxbreak": true,
"laxcomma": true,
"validthis": true,
"sub": true,
"-W084": true,
"scripturl": true,
"evil": true
}

14
.jshintrc.browser Normal file
View File

@ -0,0 +1,14 @@
{
"extends": "./.jshintrc",
"node": false,
"browser": true,
"predef": {
// require.js
"define": true,
"require": true,
"console": false,
"-event": true,
"-name": true
}
}

9
.jshintrc.node Normal file
View File

@ -0,0 +1,9 @@
{
"extends": "./.jshintrc",
"node": true,
"globals": {
"Promise": true,
"status": true
}
}