summaryrefslogtreecommitdiff
path: root/.eslintrc
blob: 70947143a6fdff87afb86e382615cc24acbd07c2 (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
38
39
40
41
42
43
44
45
46
47
48
49
# vim: ft=yaml

env:
   browser: true

rules:
    block-scoped-var: 2
    dot-location: 2
    default-case: 2
    guard-for-in: 2
    no-div-regex: 2
    no-param-reassign: 2
    no-eq-null: 2
    no-floating-decimal: 2
    no-self-compare: 2
    no-throw-literal: 2
    no-void: 2
    radix: 2
    wrap-iife: [2, "inside"]
    brace-style: [2, "1tbs", {"allowSingleLine": true}]
    comma-style: [2, "last"]
    consistent-this: [2, "self"]
    func-style: [2, "declaration"]
    indent: [2, 4, {"SwitchCase": 1}]
    linebreak-style: [2, "unix"]
    max-nested-callbacks: [2, 3]
    no-lonely-if: 2
    no-multiple-empty-lines: [2, {"max": 2}]
    no-nested-ternary: 2
    no-unneeded-ternary: 2
    operator-assignment: [2, "always"]
    operator-linebreak: [2, "after"]
    keyword-spacing: 2
    space-before-blocks: [2, "always"]
    space-before-function-paren: [2, {"anonymous": "never", "named": "never"}]
    object-curly-spacing: [2, "never"]
    array-bracket-spacing: [2, "never"]
    computed-property-spacing: [2, "never"]
    space-in-parens: [2, "never"]
    space-unary-ops: [2, {"words": true, "nonwords": false}]
    spaced-comment: [2, "always"]
    max-depth: [2, 5]
    max-len: [2, 79, 4]
    max-params: [2, 5]
    max-statements: [2, 30]
    no-bitwise: 2
    quote-props: [2, "always"]
    global-strict: 0
    quotes: 0