You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
3.5 KiB
156 lines
3.5 KiB
6 years ago
|
{
|
||
|
"es3": true,
|
||
|
|
||
|
"additionalRules": [],
|
||
|
|
||
|
"requireSemicolons": true,
|
||
|
|
||
|
"disallowMultipleSpaces": true,
|
||
|
|
||
|
"disallowIdentifierNames": [],
|
||
|
|
||
|
"requireCurlyBraces": {
|
||
|
"allExcept": [],
|
||
|
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
|
||
|
},
|
||
|
|
||
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
||
|
|
||
|
"disallowSpaceAfterKeywords": [],
|
||
|
|
||
|
"disallowSpaceBeforeComma": true,
|
||
|
"disallowSpaceAfterComma": false,
|
||
|
"disallowSpaceBeforeSemicolon": true,
|
||
|
|
||
|
"disallowNodeTypes": [
|
||
|
"DebuggerStatement",
|
||
|
"ForInStatement",
|
||
|
"LabeledStatement",
|
||
|
"SwitchCase",
|
||
|
"SwitchStatement",
|
||
|
"WithStatement"
|
||
|
],
|
||
|
|
||
|
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
|
||
|
|
||
|
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
||
|
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||
|
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
||
|
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
||
|
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
||
|
|
||
|
"requireSpaceBetweenArguments": true,
|
||
|
|
||
|
"disallowSpacesInsideParentheses": true,
|
||
|
|
||
|
"disallowSpacesInsideArrayBrackets": true,
|
||
|
|
||
|
"disallowQuotedKeysInObjects": "allButReserved",
|
||
|
|
||
|
"disallowSpaceAfterObjectKeys": true,
|
||
|
|
||
|
"requireCommaBeforeLineBreak": true,
|
||
|
|
||
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||
|
"requireSpaceAfterPrefixUnaryOperators": [],
|
||
|
|
||
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||
|
"requireSpaceBeforePostfixUnaryOperators": [],
|
||
|
|
||
|
"disallowSpaceBeforeBinaryOperators": [],
|
||
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||
|
|
||
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||
|
"disallowSpaceAfterBinaryOperators": [],
|
||
|
|
||
|
"disallowImplicitTypeConversion": ["binary", "string"],
|
||
|
|
||
|
"disallowKeywords": ["with", "eval"],
|
||
|
|
||
|
"requireKeywordsOnNewLine": [],
|
||
|
"disallowKeywordsOnNewLine": ["else"],
|
||
|
|
||
|
"requireLineFeedAtFileEnd": true,
|
||
|
|
||
|
"disallowTrailingWhitespace": true,
|
||
|
|
||
|
"disallowTrailingComma": true,
|
||
|
|
||
|
"excludeFiles": ["node_modules/**", "vendor/**"],
|
||
|
|
||
|
"disallowMultipleLineStrings": true,
|
||
|
|
||
|
"requireDotNotation": { "allExcept": ["keywords"] },
|
||
|
|
||
|
"requireParenthesesAroundIIFE": true,
|
||
|
|
||
|
"validateLineBreaks": "LF",
|
||
|
|
||
|
"validateQuoteMarks": {
|
||
|
"escape": true,
|
||
|
"mark": "'"
|
||
|
},
|
||
|
|
||
|
"disallowOperatorBeforeLineBreak": [],
|
||
|
|
||
|
"requireSpaceBeforeKeywords": [
|
||
|
"do",
|
||
|
"for",
|
||
|
"if",
|
||
|
"else",
|
||
|
"switch",
|
||
|
"case",
|
||
|
"try",
|
||
|
"catch",
|
||
|
"finally",
|
||
|
"while",
|
||
|
"with",
|
||
|
"return"
|
||
|
],
|
||
|
|
||
|
"validateAlignedFunctionParameters": {
|
||
|
"lineBreakAfterOpeningBraces": true,
|
||
|
"lineBreakBeforeClosingBraces": true
|
||
|
},
|
||
|
|
||
|
"requirePaddingNewLinesBeforeExport": true,
|
||
|
|
||
|
"validateNewlineAfterArrayElements": {
|
||
|
"maximum": 12
|
||
|
},
|
||
|
|
||
|
"requirePaddingNewLinesAfterUseStrict": true,
|
||
|
|
||
|
"disallowArrowFunctions": true,
|
||
|
|
||
|
"disallowMultiLineTernary": true,
|
||
|
|
||
|
"validateOrderInObjectKeys": false,
|
||
|
|
||
|
"disallowIdenticalDestructuringNames": true,
|
||
|
|
||
|
"disallowNestedTernaries": { "maxLevel": 1 },
|
||
|
|
||
|
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
|
||
|
"requireAlignedMultilineParams": false,
|
||
|
|
||
|
"requireSpacesInGenerator": {
|
||
|
"afterStar": true
|
||
|
},
|
||
|
|
||
|
"disallowSpacesInGenerator": {
|
||
|
"beforeStar": true
|
||
|
},
|
||
|
|
||
|
"disallowVar": false,
|
||
|
|
||
|
"requireArrayDestructuring": false,
|
||
|
|
||
|
"requireEnhancedObjectLiterals": false,
|
||
|
|
||
|
"requireObjectDestructuring": false,
|
||
|
|
||
|
"requireEarlyReturn": false
|
||
|
}
|
||
|
|