.eslintrc.json 874 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
    "consistent-return": [0],
    "no-underscore-dangle": [0],
24
    "max-nested-callbacks": [1, 3],
25 26 27 28 29 30
    "no-mutable-exports": [1],
    "no-plusplus": [1, {
      "allowForLoopAfterthoughts": true
    }],
    "no-param-reassign": [0],
    "no-prototype-builtins": [0],
31 32 33 34 35 36
    "valid-jsdoc": [1, {
      "prefer": {
        "returns": "return",
        "property": "prop"
      },
      "requireReturn": false
37 38 39
    }],
    "brace-style": ["error", "stroustrup"],
    "no-unused-vars": [1]
40 41
  }
}