@berun/fluent-eslint

Use a chaining API to generate and simplify the modification of ESLint configurations.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@berun/fluent-eslint
Minified + gzip package size for @berun/fluent-eslint in KB

Readme

@berun/fluent-eslint

Use a chaining API to generate and simplify the modification of ESLint configurations.

_Note: This is is part of the broader @berun/fluent suite of configurations, but may be used standalone.

Example

export default function(berun: Berun, options) {
  berun.eslint
    .root(true)
    .parser('babel-eslint')
    .plugins.add('import')
    .add('flowtype')
    .add('jsx-a11y')
    .add('react')
    .end()
    .env({
      browser: true,
      commonjs: true,
      es6: true,
      jest: true,
      node: true
    })
    .parserOptions({
      ecmaVersion: 6,
      sourceType: 'module',
      ecmaFeatures: {
        jsx: true,
        generators: true,
        experimentalObjectRestSpread: true
      }
    })
    .rules.set('array-callback-return', 'warn')
    .set('default-case', ['warn', { commentPattern: /^no default$/ }])
    .end()
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.