.eslintrc 1.1 KB
Newer Older
W
winniehell 已提交
1
{
2 3 4 5
  "env": {
    "browser": true,
    "es6": true
  },
6 7 8 9
  "extends": [
    "airbnb-base",
    "plugin:vue/recommended"
  ],
W
winniehell 已提交
10
  "globals": {
11
    "__webpack_public_path__": true,
W
winniehell 已提交
12
    "gl": false,
13 14
    "gon": false,
    "localStorage": false
M
Mike Greiling 已提交
15
  },
16
  "parserOptions": {
F
Filipa Lacerda 已提交
17
    "parser": "babel-eslint"
18
  },
M
Mike Greiling 已提交
19
  "plugins": [
20
    "filenames",
M
Mike Greiling 已提交
21
    "import",
22 23
    "html",
    "promise"
M
Mike Greiling 已提交
24
  ],
25
  "settings": {
F
Filipa Lacerda 已提交
26
    "html/html-extensions": [".html", ".html.raw"],
27 28 29 30 31 32
    "import/resolver": {
      "webpack": {
        "config": "./config/webpack.config.js"
      }
    }
  },
M
Mike Greiling 已提交
33
  "rules": {
W
winniehell 已提交
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"
      }
    ]
W
winniehell 已提交
55 56
  }
}