Skip to content

kasperhesthaven/gulp-prettier-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp Prettier Eslint

A Gulp plugin which allows the users to use Prettier Eslint.

Installation

npm install @kasperhesthaven/gulp-prettier-eslint

Usage

Options

prettier-eslint#options

Gulp

import prettierEslint from 'gulp-prettier-eslint';

gulp.task('js-lint', () =>
	gulp.src('glob.js')
		.pipe(prettierEslint({
			eslintConfig: {
				parserOptions: {
      		ecmaVersion: 7
    		}
			},
			prettierOptions: {
				singleQuote: true,
				useTabs: true
			},
			logLevel: 'warn'
		}))
);

Plumber example

.pipe(plumber({ errorHandler: (err) => {
	console.log(`JS lint error in ${err.message.filePath}`);
	console.log(`${err.message.loc.start.line}:${err.message.loc.start.column} ${err.message}`)
}}))

About

✨ Gulp wrapper for prettier-eslint

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published