Skip to content

Instantly share code, notes, and snippets.

@a-x-
Created July 24, 2015 16:59
Show Gist options
  • Save a-x-/011958661c1c8fd41bf7 to your computer and use it in GitHub Desktop.
Save a-x-/011958661c1c8fd41bf7 to your computer and use it in GitHub Desktop.
{
"preset": "yandex",
"plugins": [
"jscs-jsdoc"
],
"excludeFiles": [
".enb/tmp/*",
"**/*.i18n/**",
"**/libs/**",
"**/node_modules/**",
"report/**",
"*/flags_allowed.json",
"**/desktop/pages*/**",
"**/touch-pad/pages*/**",
"**/touch-phone/pages*/**",
"*/.tanker/**",
"**/i-lodash/*",
"**/i-jquery/*",
"**/counter/__map/counter__map.js",
"*.json"
],
"disallowSpacesInsideObjectBrackets": null,
"requireDotNotation": null,
"disallowImplicitTypeConversion": null,
"disallowMultipleVarDecl": null,
"requireSpacesInAnonymousFunctionExpression": null,
"requireMultipleVarDecl": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpacesInsideObjectBrackets": "all",
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"requireBlocksOnNewline": true,
"requirePaddingNewlinesInBlocks": 3,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"validateQuoteMarks": { "mark": "'", "escape": true },
"disallowTrailingComma": true,
"safeContextKeyword": ["_this"],
"disallowNewlineBeforeBlockStatements": true,
"jsDoc": {
"checkAnnotations": {
"preset": "closurecompiler",
"extra": {
"abstract": true,
"bem": true,
"constructor": true,
"copypaste": true,
"file": true,
"fires": true,
"listens": true,
"override": true,
"TODO:": true,
"url": true
}
},
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"checkRedundantAccess": true,
"leadingUnderscoreAccess": true,
"requireHyphenBeforeDescription": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment