Skip to content

duhongwei/hotpack-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

hotpack eslint plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published