.eslintrc 1.14 KB
Newer Older
🕺 Winnie 🕺's avatar
🕺 Winnie 🕺 committed
1
{
2 3 4 5
  "env": {
    "browser": true,
    "es6": true
  },
6 7 8 9
  "extends": [
    "airbnb-base",
    "plugin:vue/recommended"
  ],
🕺 Winnie 🕺's avatar
🕺 Winnie 🕺 committed
10
  "globals": {
11
    "__webpack_public_path__": true,
🕺 Winnie 🕺's avatar
🕺 Winnie 🕺 committed
12
    "gl": false,
13 14
    "gon": false,
    "localStorage": false
Mike Greiling's avatar
Mike Greiling committed
15
  },
16
  "parserOptions": {
Filipa Lacerda's avatar
Filipa Lacerda committed
17
    "parser": "babel-eslint"
18
  },
Mike Greiling's avatar
Mike Greiling committed
19
  "plugins": [
20
    "filenames",
21
    "import",
22 23
    "html",
    "promise"
Mike Greiling's avatar
Mike Greiling committed
24
  ],
25
  "settings": {
26
    "html/html-extensions": [".html", ".html.raw"],
27 28 29 30 31 32
    "import/resolver": {
      "webpack": {
        "config": "./config/webpack.config.js"
      }
    }
  },
Mike Greiling's avatar
Mike Greiling committed
33
  "rules": {
34
    "filenames/match-regex": [2, "^[a-z0-9_]+$"],
35
    "import/no-commonjs": "error",
36
    "no-multiple-empty-lines": ["error", { "max": 1 }],
37
    "promise/catch-or-return": "error",
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    "no-underscore-dangle": ["error", { "allow": ["__", "_links"] }],
    "no-mixed-operators": 0,
    "space-before-function-paren": 0,
    "curly": 0,
    "arrow-parens": 0,
    "vue/html-self-closing": [
      "error",
      {
        "html": {
          "void": "always",
          "normal": "never",
          "component": "always"
        },
        "svg": "always",
        "math": "always"
      }
    ]
🕺 Winnie 🕺's avatar
🕺 Winnie 🕺 committed
55 56
  }
}