Last active
November 9, 2018 15:33
-
-
Save tzvsi/d42350e75e3df51c99d6c8133186dec0 to your computer and use it in GitHub Desktop.
ESLint Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test/unit/coverage/** | |
test/unit/*.js | |
test/e2e/*.js | |
src/db/migrations/*.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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