summaryrefslogtreecommitdiffstats
path: root/middleware/node_modules/qs/.eslintrc
blob: 6884760ee3e1fce41088c3bae92549185c7c7d46 (plain) (blame)
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
38
{
    "root": true,

    "extends": "@ljharb",

    "ignorePatterns": [
        "dist/",
    ],

    "rules": {
        "complexity": 0,
        "consistent-return": 1,
        "func-name-matching": 0,
        "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
        "indent": [2, 4],
        "max-lines-per-function": [2, { "max": 150 }],
        "max-params": [2, 15],
        "max-statements": [2, 52],
        "multiline-comment-style": 0,
        "no-continue": 1,
        "no-magic-numbers": 0,
        "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
    },

    "overrides": [
        {
            "files": "test/**",
            "rules": {
                "function-paren-newline": 0,
                "max-lines-per-function": 0,
                "max-statements": 0,
                "no-buffer-constructor": 0,
                "no-extend-native": 0,
                "no-throw-literal": 0,
            }
        }
    ]
}