Socket
Book a DemoInstallSign in
Socket

lint-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-webpack-plugin

A webpack plugin to run custom lint shell command

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
15
87.5%
Maintainers
1
Weekly downloads
 
Created
Source

lint-webpack-plugin

npm Travis code style: prettier

A webpack plugin to run custom lint shell command

What's this?

lint-webpack-plugin is a simple script to run custom lint commands.

If it's build (webpack), it will run the commands before the webpack build starts. If there is any error occuring in the commands, the webpack process will stop.

If it's watch (webpack --watch), it will run the commands with the webpack build. Although there is any error, it will be ignored and the webpack process will continue to work.

Install

npm i --save-dev lint-webpack-plugin

How to use

An example webpack.config.js with TypeScript and Prettier:

const LintPlugin = require('lint-webpack-plugin');

module.exports = {
  ...

  plugins: [
    new LintPlugin([
      'tsc --noEmit',
      "prettier -l --parser=babylon \'src/**/*'"
    ])
  ]
};

Demo

Build

build

Watch

watch

Similar works

webpack-shell-plugin

If you want to run shell commands at more specific timings, please use webpack-shell-plugin.

License

MIT

Keywords

webpack

FAQs

Package last updated on 23 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.