ESlint plugin for fuse-box
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]");
To configure plugin you only need to pass all options in form of Object:
eslinter({
pattern: /js(x)*$/,
eslint: {
useEslintrc: false
}
})
Specifies regular expression to filter files.
Default: /js$/
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"]}