/make-lint

lint makefile target with sane defaults using eslint

make-lint

ESLint lint target for Make with sane defaults.

Installation

$ npm install --save-dev make-lint

Example

Include, defaulting to *.js:

include node_modules/make-lint/index.mk

Specify the source:

SRC = lib/*.js
include node_modules/make-lint/index.mk

Specify configuration:

LINT_CONFIG = myconfig.json

Typically also:

test: lint
  # test stuff here

License

MIT