{"size": 1292, "ext": "js", "max_stars_repo_path": "webpack.config.js", "max_stars_repo_name": "boosted-dot-club/Boosted-Work", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "webpack.config.js", "max_issues_repo_name": "boosted-dot-club/Boosted-Work", "max_issues_repo_issues_event_min_datetime": "2021-05-20T00:51:51.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-20T00:51:51.000Z", "max_forks_repo_path": "webpack.config.js", "max_forks_repo_name": "boosted-dot-club/Boosted-Work", "max_forks_repo_forks_event_min_datetime": "2020-05-29T15:12:58.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-29T15:12:58.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 24.8461538462, "max_line_length": 91, "alphanum_fraction": 0.4419504644}
const path = require("path");

module.exports = {
    // 1
    entry: "./src/index.js",
    module: {
        rules: [{
            test: /\.(js)$/,
            exclude: /node_modules/,
            use: ["babel-loader", "eslint-loader"],

            // several examples !
            emitError: true,

            emitWarning: true,

            failOnError: true,

            quiet: true,
            cache: true,
            eslintPath: path.join(__dirname, 'reusable-eslint'),
            // default value
            formatter: "stylish",

            formatter: require('eslint-friendly-formatter'),

            // custom formatter
            formatter: function(results) {
                // `results` format is available here
                // http://eslint.org/docs/developer-guide/nodejs-api.html#executeonfiles()

                // you should return a string
                // DO NOT USE console.*() directly !
                return 'OUTPUT';
            },

        }, ],
    },
    resolve: {
        extensions: ["*", ".js"],
    },
    // 2
    output: {
        path: __dirname + "/dist",
        publicPath: "/",
        filename: "bundle.js",
    },
    // 3
    devServer: {
        contentBase: "./dist",
    },
};