eslint-config-scratch/es6.js
2016-10-21 16:56:57 -04:00

22 lines
582 B
JavaScript

module.exports = {
rules: {
'arrow-body-style': [2, 'as-needed'],
'arrow-parens': [2, 'always'],
'arrow-spacing': [2, {
before: true,
after: true
}],
'no-confusing-arrow': [2],
'no-useless-computed-key': [2],
'no-useless-constructor': [2],
'no-var': [1],
'prefer-arrow-callback': [2],
'prefer-const': [1],
'prefer-template': [2],
'rest-spread-spacing': [2, 'never'],
'template-curly-spacing': [2, 'never']
},
env: {
es6: true
}
}