aboutsummaryrefslogtreecommitdiff
path: root/webpack.common.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-05-11 10:47:49 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-05-11 10:47:49 +0000
commited6bde2bbf1ea880fb81f07abee973e296d14a00 (patch)
tree7adfc121d00471eb65364e600ee830381c807cc7 /webpack.common.js
parent40876d756145ae8a1316efe67bc85d9cf1528b73 (diff)
Integrate `eslint` into the `webpack` build process.
Closes #963 Merge request studip/studip!557
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 22469db..03b91f5 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -2,6 +2,7 @@ const webpack = require("webpack");
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const VueLoaderPlugin = require('vue-loader/lib/plugin');
+const ESLintPlugin = require('eslint-webpack-plugin');
const assetsPath = path.resolve(__dirname, "resources/assets/javascripts");
@@ -106,6 +107,14 @@ module.exports = {
filename: "stylesheets/[name].css",
chunkFilename: "stylesheets/[name].css?h=[chunkhash]"
}),
+ new ESLintPlugin({
+ exclude: [
+ 'node_modules',
+ 'public/assets/javascripts/ckeditor/ckeditor.js',
+ 'resources/assets/javascripts/vendor',
+ 'resources/assets/javascripts/jquery/jstree/jquery.jstree.js',
+ ]
+ }),
],
resolve: {
alias: {