From b7b9dd080901523becd4a7a8e122422d4aa75634 Mon Sep 17 00:00:00 2001 From: ponsfrilus Date: Fri, 17 Mar 2017 14:48:55 +0100 Subject: [PATCH] Better CSS and linter compliant --- build/webpack.base.conf.js | 10 ++++++++++ src/App.vue | 3 --- src/components/EPFLTopics.vue | 7 ++++--- src/components/partials/Avatar.vue | 4 ++-- src/components/partials/EPFLTopic.vue | 5 +++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index f8e77ce6..c8237193 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -35,6 +35,16 @@ module.exports = { }, module: { rules: [ + { // eslint + enforce: 'pre', + test: /\.(vue|js)$/, + loader: 'eslint-loader', + include: projectRoot, + exclude: /node_modules/, + options: { + formatter: require('eslint-friendly-formatter') + } + }, { test: /\.js$/, loader: 'babel-loader', diff --git a/src/App.vue b/src/App.vue index f1d7746e..5bc137f3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,9 +40,6 @@ * Root component */ export default {} - -var foo = "bar" + 'baz'; -