tslint-loader mit webpack 2.1.0-beta.25

Ich habe ein angle2-Projekt, das ich mit dem Webpack komprimiere / kompiliere.

Ich benutze den tslink loader mit dem Webpack, daher habe ich die Konfiguration inwebpack.config.js.

module.exports = {
...
tslint: {
    configuration: {
        rules: {
            quotemark: [true, "double"]
        }
    },

    // tslint errors are displayed by default as warnings
    // set emitErrors to true to display them as errors
    emitErrors: false,

    // tslint does not interrupt the compilation by default
    // if you want any file with tslint errors to fail
    // set failOnHint to true
    failOnHint: true,

    // name of your formatter (optional)
    formatter: "",

    // path to directory containing formatter (optional)
    formattersDirectory: "node_modules/tslint-loader/formatters/",

    // These options are useful if you want to save output to files
    // for your continuous integration server
    fileOutput: {
        // The directory where each file"s report is saved
        dir: "./webpack-log/",

        // The extension to use for each report"s filename. Defaults to "txt"
        ext: "xml",

        // If true, all files are removed from the report directory at the beginning of run
        clean: true,

        // A string to include at the top of every report file.
        // Useful for some report formats.
        header: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<checkstyle version=\"5.7\">",

        // A string to include at the bottom of every report file.
        // Useful for some report formats.
        footer: "</checkstyle>"
    }
},
...
preLoaders: [
        {
            test: /\.ts$/,
            loader: "tslint"
        }
    ],
}
}

Ich habe das Webpack 1.13.1 auf 2.1.0-beta.25 aktualisiert und die Konfiguration von tslint unterbricht den Komplikationsprozess vonnpm run build.

Ich habe das @ geändepreLoaders Direktive zuloaders

module: {
        ....
        {
            test: /\.ts$/,
            loader: 'tslint',
            exclude: /(node_modules)/,
            enforce: 'pre'
        },
    ],
}

das ist nicht genug, weil ich immer noch den Fehler bekomme

For loader options: webpack 2 no longer allows custom properties in configuration.
 Loaders should be updated to allow passing options via loader options in module.rules.

so sollte ich die tslint Konfiguration verschieben und woanders platzieren. irgendwie hier verloren. Daher sind alle Informationen zu diesem Thema sehr willkommen.

Vielen Dank

Antworten auf die Frage(6)

Ihre Antwort auf die Frage