var preloaders = require("./preloaders");
var loaders = require("./loaders");
var webpack = require('webpack');

module.exports = {
  entry: ['./src/index.ts'],
  output: {
    filename: 'build.js',
    path: 'tmp'
  },
  resolve: {
    root: __dirname,
    extensions: ['', '.ts', '.js', '.json']
  },
  resolveLoader: {
    modulesDirectories: ["node_modules"]
  },
  devtool: "source-map-inline",
  module: {
    preLoaders: preloaders,
    loaders: loaders,
    postLoaders: [
      {
        test: /^((?!\.spec\.ts).)*.ts$/,
        exclude: /(node_modules|bower_components)/,
        loader: 'istanbul-instrumenter'
      }
    ]
  },
  tslint: {
        emitErrors: true,
        failOnHint: true
  }
};


const preloaders = require("./preloaders");
const loaders = require("./loaders");
const webpack = require("webpack");

module.exports = {
  entry: ["./src/index.ts"],
  output: {
    filename: "build.js",
    path: "tmp"
  },
  resolve: {
    root: __dirname,
    extensions: [".ts", ".js", ".json"]
  },
  resolveLoader: {
    modulesDirectories: ["node_modules"]
  },
  devtool: "source-map-inline",
  module: {
    preLoaders: preloaders,
    loaders: loaders,
    postLoaders: [
      {
        test: /^((?!\.spec\.ts).)*.ts$/,
        exclude: /(node_modules|bower_components)/,
        loader: "istanbul-instrumenter"
      }
    ]
  },
  tslint: {
      emitErrors: true,
      failOnHint: true
  }
};


Replace single quotes -> double quotes, var -> const, spaces
Refactoring: Replace single quotes -> double quotes, var -> const, spaces
