/fuse-box-eslint-plugin

ESLint plugin for fuse-box

Primary LanguageJavaScriptMIT LicenseMIT

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"]}