0.1.5 • Published 6 years ago

eslint-fixer v0.1.5

Weekly downloads
1,276
License
MIT
Repository
github
Last release
6 years ago

DEPRECATED

eslint-fixer

Simple module which provides a promise based function to apply eslint --fix to given directory or files.

Usage

const fix = require("eslint-fixer");

fix("./my-file.js")
  .then(result => doSomething())
  .catch(err => console.error(err));

API

Functions

Typedefs

fix(filePath, options) ⇒ Promise.<void>

Executes eslint --fix for given filePath based on options.

Kind: global function
Returns: Promise.<void> - - Result promise

ParamTypeDescription
filePathstringFile path is passed to eslint --fix.
optionsOptionsOptions

Options : Object

Options to determine fix function's behaviour.

Kind: global typedef
Properties

NameTypeDefaultDescription
checkAvailablebooleanfalseWhen true, eslint command availability is checked. If eslint is not available, eslint command will not be executed.
useEslintbooleantrueWhen false, eslint command will not be executed.
0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago