fuse-box-eslint-plugin
v0.0.3
Published
ESlint plugin for fuse-box
Downloads
24
Readme
fuse-box-eslint-plugin
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"]}