gulp-lint-tasks
v1.5.5
Published
Collection of Gulp tasks for linting with Airbnb's ESLint config
Downloads
10
Readme
gulp-lint-tasks
Collection of Gulp tasks for linting with Airbnb's ESLint config.
Installation
Install using npm:
$ npm install --save-dev gulp-lint-tasks
Usage
Include the package in your project's gulpfile.js
:
require('gulp-lint-tasks');
Tasks
The following gulp tasks are provided:
lint
Lints all js and jsx files in your project, using the linting config as provided by eslint-config-airbnb
.
lint:fix
Tries to autofix linting errors and warnings where possible.
lint:watch
Watches your project and will lint when code changes.
Adjusting linting rules
The linting rules can be adjusted/overwritten by providing a .eslintrc.json
file with a rules property.