summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.jscsrc
blob: 0b5067c2de72fa45db74f7f474898fe0c07ff1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
    "preset": "airbnb",
    "esnext": true,
    "excludeFiles": [
      "src/main/js/libs/**"
    ],

    "disallowSpacesInFunctionDeclaration": false,
    "requireTrailingComma": false,
    "requirePaddingNewLinesAfterBlocks": false,
    "requireShorthandArrowFunctions": false,
    "disallowQuotedKeysInObjects": false,
    "requireSpacesInFunctionDeclaration": {
      "beforeOpeningRoundBrace": true,
      "beforeOpeningCurlyBrace": true
    },
    "requireDotNotation": {
      "allExcept": [
        "snake_case"
      ]
    },
    "disallowSpaceAfterObjectKeys": false,
    "maximumLineLength": 120,
    "safeContextKeyword": [
      "that"
    ],
    "requireDollarBeforejQueryAssignment": false,
    "requireDotNotation": false,
    "disallowArrayDestructuringReturn": false,
    "requireEnhancedObjectLiterals": true,
    "requireObjectKeysOnNewLine": {
      "allExcept": ["sameLine"]
    },
    "requireSpaceBeforeDestructuredValues": true,
    "requireSpaceBeforeObjectValues": true,
    "requireSpacesInsideObjectBrackets": "all"
}