Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fengzilong/eslint-dashboard

Interactive ESLint workflow that lives in your terminal
https://github.com/fengzilong/eslint-dashboard

Last synced: about 6 hours ago
JSON representation

Interactive ESLint workflow that lives in your terminal

Awesome Lists containing this project

README

        

# eslint-dashboard

Interactive ESLint workflow that lives in your terminal

# Installation

```bash
npm i eslint-dashboard -g
```

# Usage

```bash
# Run command
eslint-dashboard
```

# API

```js
const dashboard = require( 'eslint-dashboard' )

// files: the same as first parameter of eslint.lintFiles
// lint and fix: the same as `lintFiles` and `fixFiles` in `lib/lint.js`
dashboard( files, {
lint() {
// implement your own lint logic
// return eslint lint results
},
fix() {
// implement your own fix logic
// return eslint fix results
}
} )
```

# License

MIT