eslint-brunch

Adds eslint support to brunch.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-brunch
1113.12.07 years ago8 years agoMinified + gzip package size for eslint-brunch in KB

Readme

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.