.eslintrc.json 1.12 KB
Newer Older
Jacob Thornton's avatar
Jacob Thornton committed
1
{
2
3
  "root": true,
  "parser": "babel-eslint",
4
5
6
7
8
9
10
  "extends": [
    "plugin:import/errors",
    "plugin:import/warnings",
    "plugin:unicorn/recommended",
    "xo/esnext",
    "xo/browser"
  ],
11
  "rules": {
12
13
14
15
16
17
18
    "capitalized-comments": "off",
    "indent": [
      "error",
      2,
      {
        "MemberExpression": "off",
        "SwitchCase": 1
19
20
      }
    ],
21
22
23
24
25
26
27
28
    "max-params": [
      "warn",
      5
    ],
    "multiline-ternary": [
      "error",
      "always-multiline"
    ],
XhmikosR's avatar
XhmikosR committed
29
    "new-cap": "off",
30
    "no-console": "error",
31
32
33
34
35
36
37
38
    "object-curly-spacing": [
      "error",
      "always"
    ],
    "semi": [
      "error",
      "never"
    ],
XhmikosR's avatar
XhmikosR committed
39
    "unicorn/consistent-function-scoping": "off",
XhmikosR's avatar
XhmikosR committed
40
41
    "unicorn/explicit-length-check": "off",
    "unicorn/import-index": "off",
XhmikosR's avatar
XhmikosR committed
42
    "unicorn/no-for-loop": "off",
XhmikosR's avatar
XhmikosR committed
43
    "unicorn/no-unused-properties": "error",
XhmikosR's avatar
XhmikosR committed
44
    "unicorn/prefer-dataset": "off",
45
    "unicorn/prefer-includes": "off",
XhmikosR's avatar
XhmikosR committed
46
    "unicorn/prefer-node-append": "off",
47
48
49
50
    "unicorn/prefer-node-remove": "off",
    "unicorn/prefer-query-selector": "off",
    "unicorn/prefer-text-content": "off",
    "unicorn/prevent-abbreviations": "off"
51
  }
Jacob Thornton's avatar
Jacob Thornton committed
52
}