amenzai / myDiary

Record what you do every day
4 stars 0 forks source link

ESLint Rules #52

Open amenzai opened 6 years ago

amenzai commented 6 years ago
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
'rules': {
    // allow paren-less arrow functions
    'arrow-parens': 0,
    // allow async-await
    'generator-star-spacing': 0,
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
    'no-multiple-empty-lines': 0,
    'space-before-function-paren': 0,
    'no-trailing-spaces': 0,
    'no-extra-semi': 0,
    'semi-style': 0,
    'semi': 0,
    'eqeqeq': 0,
    'indent': 0,
    'quotes': 0
  }