BigW Consortium Gitlab

.eslintrc 786 Bytes
Newer Older
winniehell committed
1
{
2
  "env": {
3
    "jquery": true,
4 5 6
    "browser": true,
    "es6": true
  },
7
  "extends": "airbnb-base",
winniehell committed
8
  "globals": {
9
    "__webpack_public_path__": true,
winniehell committed
10 11
    "_": false,
    "gl": false,
12 13
    "gon": false,
    "localStorage": false
Mike Greiling committed
14
  },
15
  "parser": "babel-eslint",
Mike Greiling committed
16
  "plugins": [
17
    "filenames",
18
    "import",
19 20
    "html",
    "promise"
Mike Greiling committed
21
  ],
22
  "settings": {
23
    "html/html-extensions": [".html", ".html.raw", ".vue"],
24 25 26 27 28 29
    "import/resolver": {
      "webpack": {
        "config": "./config/webpack.config.js"
      }
    }
  },
Mike Greiling committed
30
  "rules": {
31
    "filenames/match-regex": [2, "^[a-z0-9_]+$"],
32
    "import/no-commonjs": "error",
33
    "no-multiple-empty-lines": ["error", { "max": 1 }],
34
    "promise/catch-or-return": "error",
35
    "no-underscore-dangle": ["error", { "allow": ["__"]}]
winniehell committed
36 37
  }
}