eslint-brunch
Adds ESLint support to brunch.
Usage
Install the plugin via npm with npm install --save eslint-brunch
.
Configuration settings can be set in any acceptable .eslintrc.*
configuration file formats. If no configuration file can be found, this plugin will fallback to default ESLint options.
Options
config = plugins: eslint: pattern: /^app\/.*\.js?$/ warnOnly: true config: rules: 'array-callback-return': 'warn'
Option | Type | Optional? | Default | Description |
---|---|---|---|---|
pattern |
RegExp | Yes | /^app\/.*\.js?$/ |
Pattern of filepaths to be processed (docs). |
warnOnly |
Boolean | Yes | true |
Use warn logging level instead of error . |
config |
Object | Yes | {} |
Options to pass to the ESLint engine (docs). |
License
Licensed under the MIT license.