http/.eslintrc.js

32 lines
605 B
JavaScript
Raw Normal View History

2017-08-13 11:22:10 +00:00
module.exports = {
root: true,
2017-08-13 12:10:55 +00:00
// parser: 'babel-eslint',
2017-08-13 11:22:10 +00:00
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
2017-08-13 12:10:55 +00:00
node: true,
jest: true
2017-08-13 11:22:10 +00:00
},
extends: 'standard',
plugins: [
2017-08-13 12:10:55 +00:00
'jest',
'vue'
2017-08-13 11:22:10 +00:00
],
rules: {
2017-08-13 12:10:55 +00:00
// Allow paren-less arrow functions
2017-08-13 11:22:10 +00:00
'arrow-parens': 0,
2017-08-13 12:10:55 +00:00
// Allow async-await
2017-08-13 11:22:10 +00:00
'generator-star-spacing': 0,
2017-08-13 12:10:55 +00:00
// Allow debugger during development
2017-08-13 11:22:10 +00:00
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
2017-08-13 12:10:55 +00:00
// Do not allow console.logs etc...
2017-08-13 11:22:10 +00:00
'no-console': 2
},
2017-08-13 12:10:55 +00:00
globals: {
'jest/globals': true,
jasmine: true
}
2017-08-13 11:22:10 +00:00
}