@duhongwei/hotpack-eslint

0.3.1 • Public • Published

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);

eslint options detail

config

Generally speaking, it is recommended to put a configuration file in the project root directory

Configuring ESLint

Readme

Keywords

none

Package Sidebar

Install

npm i @duhongwei/hotpack-eslint

Weekly Downloads

0

Version

0.3.1

License

ISC

Unpacked Size

5.29 kB

Total Files

5

Last publish

Collaborators

  • duhongwei