mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
webpack: remove lint overrides
This commit is contained in:
+1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/jaketrent/html-webpack-template
|
||||
// Definitions by: Benjamin Lim <https://github.com/bumbleblym>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { Options as HtmlWebpackPluginOptions } from 'html-webpack-plugin';
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -3,9 +3,11 @@
|
||||
// Definitions by: Gyusun Yeom <https://github.com/Perlmint>
|
||||
// Totooria Hyperion <https://github.com/TotooriaHyperion>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { loader } from "webpack";
|
||||
import { loader } from 'webpack';
|
||||
|
||||
export interface InterpolateOption {
|
||||
context?: string;
|
||||
|
||||
+2
-1
@@ -2,8 +2,9 @@
|
||||
// Project: https://github.com/JaKXz/stylelint-webpack-plugin
|
||||
// Definitions by: Arne Bahlo <https://github.com/bahlo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { Plugin } from "webpack";
|
||||
import { Plugin } from 'webpack';
|
||||
|
||||
export = StylelintWebpackPlugin;
|
||||
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/TiddoLangerak/webpack-fail-plugin
|
||||
// Definitions by: Simon Hartcher <https://github.com/deevus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
///<reference types="webpack" />
|
||||
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/survivejs/webpack-merge
|
||||
// Definitions by: Simon Hartcher <https://github.com/deevus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
///<reference types="webpack" />
|
||||
|
||||
|
||||
Vendored
+16
-13
@@ -492,7 +492,7 @@ declare namespace webpack {
|
||||
*/
|
||||
maxEntrypointSize?: number;
|
||||
}
|
||||
type Stats = webpack.Stats.ToStringOptions;
|
||||
type Stats = Stats.ToStringOptions;
|
||||
type WatchOptions = ICompiler.WatchOptions;
|
||||
}
|
||||
|
||||
@@ -542,7 +542,7 @@ declare namespace webpack {
|
||||
type Handler = ICompiler.Handler;
|
||||
type WatchOptions = ICompiler.WatchOptions;
|
||||
|
||||
class Watching implements webpack.Watching {
|
||||
class Watching implements Watching {
|
||||
constructor(compiler: Compiler, watchOptions: Watching.WatchOptions, handler: Watching.Handler);
|
||||
|
||||
close(callback: () => void): void;
|
||||
@@ -1260,37 +1260,40 @@ declare namespace webpack {
|
||||
/** @deprecated */
|
||||
namespace compiler {
|
||||
/** @deprecated use webpack.Compiler */
|
||||
// tslint:disable-next-line:no-unnecessary-qualifier
|
||||
type Compiler = webpack.Compiler;
|
||||
|
||||
/** @deprecated use webpack.Compiler.Watching */
|
||||
type Watching = webpack.Compiler.Watching;
|
||||
type Watching = Compiler.Watching;
|
||||
|
||||
/** @deprecated use webpack.Compiler.WatchOptions */
|
||||
type WatchOptions = webpack.Compiler.WatchOptions;
|
||||
|
||||
type WatchOptions = Compiler.WatchOptions;
|
||||
|
||||
/** @deprecated use webpack.Stats */
|
||||
// tslint:disable-next-line:no-unnecessary-qualifier
|
||||
type Stats = webpack.Stats;
|
||||
|
||||
/** @deprecated use webpack.Stats.ToJsonOptions */
|
||||
type StatsOptions = webpack.Stats.ToJsonOptions;
|
||||
type StatsOptions = Stats.ToJsonOptions;
|
||||
|
||||
/** @deprecated use webpack.Stats.ToStringOptions */
|
||||
type StatsToStringOptions = webpack.Stats.ToStringOptions;
|
||||
type StatsToStringOptions = Stats.ToStringOptions;
|
||||
|
||||
/** @deprecated use webpack.Compiler.Handler */
|
||||
type CompilerCallback = webpack.Compiler.Handler;
|
||||
type CompilerCallback = Compiler.Handler;
|
||||
}
|
||||
|
||||
/** @deprecated use webpack.Options.Performance */
|
||||
type PerformanceOptions = webpack.Options.Performance;
|
||||
type PerformanceOptions = Options.Performance;
|
||||
/** @deprecated use webpack.Options.WatchOptions */
|
||||
type WatchOptions = webpack.Options.WatchOptions;
|
||||
type WatchOptions = Options.WatchOptions;
|
||||
/** @deprecated use webpack.EvalSourceMapDevToolPlugin.Options */
|
||||
type EvalSourceMapDevToolPluginOptions = webpack.EvalSourceMapDevToolPlugin.Options;
|
||||
type EvalSourceMapDevToolPluginOptions = EvalSourceMapDevToolPlugin.Options;
|
||||
/** @deprecated use webpack.SourceMapDevToolPlugin.Options */
|
||||
type SourceMapDevToolPluginOptions = webpack.SourceMapDevToolPlugin.Options;
|
||||
type SourceMapDevToolPluginOptions = SourceMapDevToolPlugin.Options;
|
||||
/** @deprecated use webpack.optimize.UglifyJsPlugin.CommentFilter */
|
||||
type UglifyCommentFunction = webpack.optimize.UglifyJsPlugin.CommentFilter;
|
||||
type UglifyCommentFunction = optimize.UglifyJsPlugin.CommentFilter;
|
||||
/** @deprecated use webpack.optimize.UglifyJsPlugin.Options */
|
||||
type UglifyPluginOptions = webpack.optimize.UglifyJsPlugin.Options;
|
||||
type UglifyPluginOptions = optimize.UglifyJsPlugin.Options;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// TODO
|
||||
"no-unnecessary-qualifier": false,
|
||||
"no-void-expression": false,
|
||||
"space-within-parens": false
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
@@ -509,8 +509,10 @@ declare function successfullyCompiled(): void;
|
||||
webpack({
|
||||
// configuration
|
||||
}, (err, stats) => {
|
||||
if (err)
|
||||
return handleFatalError(err);
|
||||
if (err) {
|
||||
handleFatalError(err);
|
||||
return;
|
||||
}
|
||||
const jsonStats = stats.toJson();
|
||||
const jsonStatsWithAllOptions = stats.toJson({
|
||||
assets: true,
|
||||
@@ -537,10 +539,13 @@ webpack({
|
||||
excludeAssets: ["filter", "excluded"]
|
||||
});
|
||||
|
||||
if (jsonStats.errors.length > 0)
|
||||
return handleSoftErrors(jsonStats.errors);
|
||||
if (jsonStats.warnings.length > 0)
|
||||
if (jsonStats.errors.length > 0) {
|
||||
handleSoftErrors(jsonStats.errors);
|
||||
return;
|
||||
}
|
||||
if (jsonStats.warnings.length > 0) {
|
||||
handleWarnings(jsonStats.warnings);
|
||||
}
|
||||
successfullyCompiled();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user