@northbrook/eslint
Version:
Northbrook Plugin for ESlint
43 lines (31 loc) • 737 B
Markdown
> Lint your projects with ESLint
```sh
npm install --save-dev @northbrook/eslint
```
**northbrook.js**
```js
const eslint = require('@northbrook/eslint').plugin
module.exports = {
plugins: [ eslint ]
}
```
**`northbrook eslint`**
Run ESLint on all of your source code files. Will look for a
`.eslintrc` at the root of your northbrook project, but will fallback
to using `eslint-config-standard`.
Inside of your `northbrook.js`
```js
{
// all 100% optional
eslint: {
// default : ['src/']
"directories": ["lib/**/*.js"], // paths to lint - supports globs
// default: 'stylish'
"formatter": "table" // allows you to specify
}
}
```