diff options
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/.eslintrc b/.eslintrc index 73cd7ecf66d..3f187db0c07 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,16 +1,21 @@ { "env": { - "jquery": true, "browser": true, "es6": true }, - "extends": "airbnb-base", + "extends": [ + "airbnb-base", + "plugin:vue/recommended" + ], "globals": { - "_": false, + "__webpack_public_path__": true, "gl": false, "gon": false, "localStorage": false }, + "parserOptions": { + "parser": "babel-eslint" + }, "plugins": [ "filenames", "import", @@ -18,7 +23,7 @@ "promise" ], "settings": { - "html/html-extensions": [".html", ".html.raw", ".vue"], + "html/html-extensions": [".html", ".html.raw"], "import/resolver": { "webpack": { "config": "./config/webpack.config.js" @@ -29,6 +34,23 @@ "filenames/match-regex": [2, "^[a-z0-9_]+$"], "import/no-commonjs": "error", "no-multiple-empty-lines": ["error", { "max": 1 }], - "promise/catch-or-return": "error" + "promise/catch-or-return": "error", + "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" + } + ] } } |