From edcb1715205aefe6571af7660d2477bcda7c7c03 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 6 Mar 2019 11:48:31 +0100 Subject: Add liniting config Signed-off-by: Christoph Wurst --- .eslintrc.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index 6f58e803a..a8687ea74 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,17 +2,33 @@ module.exports = { root: true, env: { node: true, + amd: true, + jquery: true, + mocha: true, }, extends: [ - 'eslint:recommended', 'plugin:vue/recommended', 'plugin:prettier/recommended', + 'prettier/vue', + 'eslint:recommended', ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-unused-vars': 'off', + 'vue/no-v-html': 'off', + 'no-case-declarations': 'off', }, parserOptions: { parser: 'babel-eslint', }, + globals: { + expect: true, + OC: true, + OCA: true, + t: true, + __webpack_public_path__: true, + __webpack_nonce__: true, + _: true, + } } -- cgit v1.2.3