.eslintrc.json 968 Bytes
Newer Older
1
{
2
3
  "extends": "eslint-config-airbnb",
  "root": true,
4
  "env": {
5
6
7
    "browser": true,
    "es6": true,
    "node": true
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  },
  "globals": {
    "Drupal": true,
    "drupalSettings": true,
    "drupalTranslations": true,
    "domready": true,
    "jQuery": true,
    "_": true,
    "matchMedia": true,
    "Backbone": true,
    "Modernizr": true,
    "CKEDITOR": true
  },
  "rules": {
22
23
24
25
26
    "consistent-return": ["off"],
    "no-underscore-dangle": ["off"],
    "max-nested-callbacks": ["warn", 3],
    "import/no-mutable-exports": ["warn"],
    "no-plusplus": ["warn", {
27
28
      "allowForLoopAfterthoughts": true
    }],
29
30
31
    "no-param-reassign": ["off"],
    "no-prototype-builtins": ["off"],
    "valid-jsdoc": ["warn", {
32
33
34
35
36
      "prefer": {
        "returns": "return",
        "property": "prop"
      },
      "requireReturn": false
37
38
    }],
    "brace-style": ["error", "stroustrup"],
39
40
    "no-unused-vars": ["warn"],
    "operator-linebreak": ["error", "after"]
41
42
  }
}