Skip to content

Instantly share code, notes, and snippets.

@tzvsi
Last active November 9, 2018 15:33
Show Gist options
  • Save tzvsi/d42350e75e3df51c99d6c8133186dec0 to your computer and use it in GitHub Desktop.
Save tzvsi/d42350e75e3df51c99d6c8133186dec0 to your computer and use it in GitHub Desktop.
ESLint Config
test/unit/coverage/**
test/unit/*.js
test/e2e/*.js
src/db/migrations/*.js
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: 'standard',
globals: {
__static: true
},
plugins: [
'html'
],
'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-trailing-spaces': 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment