diff --git a/.eslintrc.js b/.eslintrc.js index ba6d577fe..5d5b120c1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,7 +10,8 @@ module.exports = { env: { es6: true, - node: true + node: true, + mocha: true }, plugins: ['vue'], @@ -24,10 +25,6 @@ module.exports = { window: false }, - env: { - mocha: true - }, - rules: { 'accessor-pairs': 2, 'arrow-spacing': [2, { 'before': true, 'after': true }], diff --git a/test/unit/get-webpack-conf.js b/test/unit/get-webpack-conf.js index e7a38aacc..73ecfcb6e 100644 --- a/test/unit/get-webpack-conf.js +++ b/test/unit/get-webpack-conf.js @@ -4,7 +4,7 @@ const to2 = require('2webpack2'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const getPostcssPlugin = require('../../build/utils/postcss_pipe'); -let webpackConfig = { +const webpackConfig = { output: { path: path.resolve(process.cwd(), 'dist'), publicPath: '/dist/', @@ -129,4 +129,4 @@ let webpackConfig = { } }; -module.exports = to2(webpackConfig, {quiet: true, context: true}); +module.exports = to2(webpackConfig, { quiet: true, context: true });