Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History

plugin-lib-prettier-eslint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

🚷 plugin-lib-prettier-eslint

npm linux windows coverage deps

Fix code(style) using Prettier + ESLint.

Install

$ yarn add --dev @start/plugin-lib-prettier-eslint
# or
$ npm install --save-dev @start/plugin-lib-prettier-eslint

Usage

Signature

prettierEslint(options?: {})

options

prettier-eslint options.

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import read from '@start/plugin-read'
import prettierEslint from '@start/plugin-lib-prettier-eslint'
import overwrite from '@start/plugin-overwrite'

export const task = () =>
  sequence(
    find('src/**/*.js'),
    read,
    prettierEslint(),
    overwrite
  )