@duhongwei/hotpack-eslint
v0.3.1
Published
hotpack eslint plugin
Downloads
4
Readme
hotpack-eslint
eslint plugin for hotpack
npm install --save-dev @duhongwei/hotpack-eslint
usage
import babel from '@duhongwei/hotpack-eslint'
export default {
{
name: 'eslint',
use: eslint,
opt: {
//eslint options,default is {}
eslintOpt: { },
/**
* default value is 0
*
* 0 no abort
* 1 abort program if there are errors
* 2 abort program if there are wainings or errors
*/
abort:0
}
}
}
eslintOpt
the same as eslint constructor options
const eslint = new ESLint(options);
config
Generally speaking, it is recommended to put a configuration file in the project root directory