4.0.0 • Published 7 years ago

@easy-webpack/config-tslint v4.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@easy-webpack/config-tslint

Lint TypeScript file using tslint and tslint-loader.

Installation

npm install --save-dev @easy-webpack/config-tslint

easy-webpack is also required.

Usage

// webpack.config.js
const generateConfig = require('@easy-webpack/core').generateConfig;

const baseConfig = { ... }; // project-specific config like the entry file

module.exports = generateConfig(
  baseConfig,

  require('@easy-webpack/config-tslint')
    ({ /* Options object */ exclude: /(node_modules|bower_components)/ })
);

// tslint.json
{
  "extends": "tslint-config-standard"
}

// This config will lint TypeScript files before compiling

Remember to add a tslint.json file on the root of your repository (where webpack.config.js is located).

Options

exclude

Type: (Array of) webpack exclude object Default: node_modules

Files to be excluded from tslint linting. Check webpack documentation on how to exclude files.

Related tutorials

4.0.0

7 years ago

3.0.0

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago