IGNITE-5200 Fixed eslint-loader options.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e36c02ce Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e36c02ce Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e36c02ce Branch: refs/heads/ignite-5075 Commit: e36c02cebbca90899e0a5b3a6ec437f0c62a6dcb Parents: c45de16 Author: Andrey Novikov <[email protected]> Authored: Wed May 31 14:54:13 2017 +0700 Committer: Andrey Novikov <[email protected]> Committed: Wed May 31 14:54:13 2017 +0700 ---------------------------------------------------------------------- modules/web-console/frontend/webpack/webpack.common.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/e36c02ce/modules/web-console/frontend/webpack/webpack.common.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/webpack/webpack.common.js b/modules/web-console/frontend/webpack/webpack.common.js index ca7f672..5fefd59 100644 --- a/modules/web-console/frontend/webpack/webpack.common.js +++ b/modules/web-console/frontend/webpack/webpack.common.js @@ -27,6 +27,8 @@ import ExtractTextPlugin from 'extract-text-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import ProgressBarPlugin from 'progress-bar-webpack-plugin'; +import eslintFormatter from 'eslint-friendly-formatter'; + const basedir = path.resolve('./'); const contentBase = path.resolve('public'); const node_modules = path.resolve('node_modules'); @@ -103,7 +105,7 @@ export default { options: { failOnWarning: false, failOnError: false, - formatter: 'eslint-friendly-formatter' + formatter: eslintFormatter } }] }, @@ -159,6 +161,9 @@ export default { pug: { basedir }, + eslint: { + configFile: path.join(basedir, '.eslintrc') + }, target: 'web' } }),
