From c0f3bd92a775afd1eb92943bfeccee7706e00ac5 Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Mon, 28 May 2018 10:54:38 +0200 Subject: convert eslintrc to yml --- .eslintrc.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .eslintrc.yml (limited to '.eslintrc.yml') diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 00000000000..ceacf23f19c --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,53 @@ +--- +env: + browser: true + es6: true +extends: + - airbnb-base + - plugin:vue/recommended +globals: + __webpack_public_path__: true + gl: false + gon: false + localStorage: false +parserOptions: + parser: babel-eslint +plugins: + - filenames + - import + - html + - promise +settings: + html/html-extensions: + - ".html" + - ".html.raw" + import/resolver: + webpack: + config: "./config/webpack.config.js" +rules: + filenames/match-regex: + - error + - "^[a-z0-9_]+$" + import/no-commonjs: error + no-multiple-empty-lines: + - error + - max: 1 + promise/catch-or-return: error + no-underscore-dangle: + - error + - allow: + - __ + - _links + no-mixed-operators: 0 + vue/html-self-closing: + - error + - html: + void: always + normal: never + component: always + svg: always + math: always + ## Conflicting rules with prettier: + space-before-function-paren: 0 + curly: 0 + arrow-parens: 0 -- cgit v1.2.3