summaryrefslogtreecommitdiff
path: root/.eslintrc
blob: a419dc521e8a6bc90dbd5eea47323011ba975f5a (plain)
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
{
  "env": {
    "jquery": true,
    "browser": true,
    "es6": true
  },
  "extends": [
    "airbnb-base",
    "plugin:vue/recommended"
  ],
  "globals": {
    "__webpack_public_path__": true,
    "_": false,
    "gl": false,
    "gon": false,
    "localStorage": false
  },
  "parserOptions": {
    "parser": "babel-eslint"
  },
  "plugins": [
    "filenames",
    "import",
    "html",
    "promise"
  ],
  "settings": {
    "html/html-extensions": [".html", ".html.raw", ".vue"],
    "import/resolver": {
      "webpack": {
        "config": "./config/webpack.config.js"
      }
    }
  },
  "rules": {
    "filenames/match-regex": [2, "^[a-z0-9_]+$"],
    "import/no-commonjs": "error",
    "no-multiple-empty-lines": ["error", { "max": 1 }],
    "promise/catch-or-return": "error",
    "no-underscore-dangle": ["error", { "allow": ["__"]}]
  }
}