mirror of
https://github.com/remarkjs/remark-lint.git
synced 2024-09-11 19:57:15 +03:00
141 lines
2.8 KiB
JSON
141 lines
2.8 KiB
JSON
{
|
|
"plugins": [
|
|
"jscs-jsdoc"
|
|
],
|
|
"jsDoc": {
|
|
"checkAnnotations": "jsdoc3",
|
|
"checkParamNames": true,
|
|
"requireParamTypes": true,
|
|
"checkRedundantParams": true,
|
|
"checkReturnTypes": true,
|
|
"checkRedundantReturns": true,
|
|
"requireReturnTypes": true,
|
|
"checkTypes": "strictNativeCase",
|
|
"checkRedundantAccess": true,
|
|
"enforceExistence": true,
|
|
"requireHyphenBeforeDescription": true
|
|
},
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"return",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpacesInFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true,
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true,
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireBlocksOnNewline": true,
|
|
"disallowEmptyBlocks": true,
|
|
"disallowSpacesInsideObjectBrackets": true,
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"requireSpacesInsideObjectBrackets": "all",
|
|
"disallowDanglingUnderscores": true,
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireOperatorBeforeLineBreak": [
|
|
"?",
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"=",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!==",
|
|
">",
|
|
">=",
|
|
"<",
|
|
"<="
|
|
],
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"=",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
"requireSpaceAfterBinaryOperators": [
|
|
"+",
|
|
"-",
|
|
"/",
|
|
"*",
|
|
"=",
|
|
"==",
|
|
"===",
|
|
"!=",
|
|
"!=="
|
|
],
|
|
"disallowSpaceAfterPrefixUnaryOperators": [
|
|
"++",
|
|
"--",
|
|
"+",
|
|
"-",
|
|
"~",
|
|
"!"
|
|
],
|
|
"disallowSpaceBeforePostfixUnaryOperators": [
|
|
"++",
|
|
"--"
|
|
],
|
|
"disallowImplicitTypeConversion": [
|
|
"numeric",
|
|
"boolean",
|
|
"binary",
|
|
"string"
|
|
],
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
"disallowKeywords": [
|
|
"with"
|
|
],
|
|
"disallowMultipleLineStrings": true,
|
|
"validateLineBreaks": "LF",
|
|
"validateQuoteMarks": "'",
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowKeywordsOnNewLine": [
|
|
"else"
|
|
],
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"safeContextKeyword": "self",
|
|
"requireDotNotation": true,
|
|
"disallowYodaConditions": true,
|
|
"validateJSDoc": {
|
|
"checkParamNames": true,
|
|
"checkRedundantParams": true,
|
|
"requireParamTypes": true
|
|
}
|
|
}
|