ESLint plugin for fuse-box
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.eslintrc.js
.gitignore
.travis.yml
LICENSE
README.md
fuse.js
package.json

README.md

fuse-box-eslint-plugin

Build Status Package version Coverage Status

ESlint plugin for fuse-box

Usage

const fsbx = require('fuse-box');
const eslinter = require('fuse-box-eslint-plugin');

fsbx.FuseBox.init({
    homeDir: "src/",
    plugins: [
        eslinter()
    ],
    outFile: "build/out.js"
}).bundle(">index.ts [**/*.js]");

Optional config

To configure plugin you only need to pass all options in form of Object:

eslinter({
    pattern: /js(x)*$/,
    eslint: {
        useEslintrc: false
    }
})

pattern

Specifies regular expression to filter files.

Default: /js$/

eslint

Specifies ESLint options that are passed to ESlint engine.

Defaults:

  • cwd - root of your project;
  • configFile - <root>/.eslintc.js if presents
  • baseConfig - {"extends": ["eslint:recommended"]}