From 9033fd71298981a047dcb81a0ec0d8036f2a7c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 16 Jan 2018 14:48:17 +0100 Subject: [PATCH] Update .eslintrc.js --- template/.eslintrc.js | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/template/.eslintrc.js b/template/.eslintrc.js index d0436bbc8..734bfbd9e 100644 --- a/template/.eslintrc.js +++ b/template/.eslintrc.js @@ -1,27 +1,21 @@ module.exports = { root: true, - parser: 'babel-eslint', env: { browser: true, node: true }, - extends: 'standard', + parserOptions: { + parser: 'babel-eslint' + }, + extends: [ + // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention + // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. + 'plugin:vue/essential', + ], // required to lint *.vue files plugins: [ - 'html' + 'vue' ], // add your custom rules here - rules: { - 'space-before-function-paren': [ - 2, - { - anonymous: 'always', - named: 'never' - } - ], - }, - globals: {<% if (server === 'adonis') { %> - use: true, - make: true<% } %> - } + rules: {} }