2018-04-05 15:11:59 -07:00
|
|
|
module.exports = {
|
2019-01-01 17:23:46 -08:00
|
|
|
ecmaFeatures: {
|
|
|
|
modules: true,
|
|
|
|
spread: true,
|
|
|
|
restParams: true
|
2018-04-05 15:11:59 -07:00
|
|
|
},
|
2019-01-01 17:23:46 -08:00
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
mocha: true
|
2018-04-05 15:11:59 -07:00
|
|
|
},
|
2019-01-01 17:23:46 -08:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module',
|
|
|
|
parser: 'babel-eslint'
|
2018-04-05 15:11:59 -07:00
|
|
|
},
|
2019-01-01 17:23:46 -08:00
|
|
|
extends: 'eslint:recommended',
|
|
|
|
rules: {
|
|
|
|
indent: ['error', 2],
|
|
|
|
'space-before-function-paren': ['error', 'always'],
|
|
|
|
'no-console': 0,
|
|
|
|
semi: ['error', 'never'],
|
|
|
|
'linebreak-style': ['error', 'unix'],
|
|
|
|
quotes: ['error', 'single']
|
2018-04-05 15:11:59 -07:00
|
|
|
}
|
|
|
|
}
|