0.3.1 • Published 3 years ago

@duhongwei/hotpack-eslint v0.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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