aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
blob: 980f996e1dea3fb5ce4268ec2496c2ffb33063a2 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  "env": {
    "es6": true,
    "node" : true,
    "browser" : true,
    "webextensions": true
  },
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "extends": [ "eslint:all" ],
  "rules": {
    "array-bracket-newline": ["error", { "multiline": true }],
    "arrow-body-style": "off",
    "array-element-newline": "off",
    "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
    "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
    "comma-dangle": "off",
    "consistent-return": "off",
    "default-case": "off",
    "id-length": "off",
    "indent": ["error", 2],
    "function-paren-newline": "off",
    "max-statements": ["error", 15],
    "multiline-ternary": "off",
    "newline-after-var": "off",
    "newline-before-return": "off",
    "no-magic-numbers": "off",
    "no-bitwise": "off",
    "no-use-before-define": "off",
    "no-warning-comments": "off",
    "no-console": ["error", { "allow": ["warn", "error"] }],
    "no-empty-function": "off",
    "no-mixed-operators": "off",
    "no-plusplus": "off",
    "capitalized-comments": "off",
    "no-ternary": "off",
    "no-undefined": "off",
    "object-curly-spacing": [
      "error",
      "always", { "arraysInObjects": false, "objectsInObjects": false }
    ],
    "object-curly-newline": ["error", { "consistent": true }],
    "object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
    "object-shorthand": "off",
    "one-var": "off",
    "padded-blocks": "off",
    "prefer-const": "off",
    "prefer-destructuring": ["error", { "AssignmentExpression": {"array": false}}],
    "prefer-template": "off",
    "quotes": ["error", "single", { "allowTemplateLiterals": true }],
    "quote-props": "off",
    "require-jsdoc": "off",
    "sort-imports": "off",
    "sort-keys": "off",
    "sort-vars": "off",
    "space-before-function-paren": ["error", "never"]
  }
}