sylius-axios-api
Version:
Sylius-axois-api
30 lines (28 loc) • 701 B
JavaScript
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
node: true,
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// add your custom rules here
'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,
// use 4 indent
'indent': [2, 4],
// turn off no-new
'no-new': 0,
// allow unused expressions for chai
'no-unused-expressions': 0
}
}