function tslint(options = {}) {
  return (context, util) => prevConfig => {
    let nextConfig = util.addLoader(
      Object.assign(
        {
          test: /\.(ts|tsx)$/,
          use: ['tslint-loader'],
          enforce: 'pre'
        },
        context.match
      )
    )(prevConfig)

    nextConfig = util.addPlugin(
      new context.webpack.LoaderOptionsPlugin({
        options: {
          tslint: options
        }
      })
    )(nextConfig)

    return nextConfig
  }
}
@param {object}   [options]                  See https://github.com/wbuchwalter/tslint-loader#usage
@return {Function}