28 lines
550 B
JavaScript
28 lines
550 B
JavaScript
|
|
module.exports = {
|
||
|
|
root: true,
|
||
|
|
parser: 'babel-eslint',
|
||
|
|
parserOptions: {
|
||
|
|
sourceType: 'module'
|
||
|
|
},
|
||
|
|
env: {
|
||
|
|
browser: true,
|
||
|
|
node: true,
|
||
|
|
es6: true
|
||
|
|
},
|
||
|
|
extends: ['standard'],
|
||
|
|
globals: {
|
||
|
|
ga: 'readonly',
|
||
|
|
cordova: 'readonly',
|
||
|
|
__dirname: 'readonly'
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
'no-new': 'off',
|
||
|
|
'no-undef': 'off',
|
||
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||
|
|
'space-before-function-paren': ['error', {
|
||
|
|
anonymous: 'always',
|
||
|
|
named: 'never',
|
||
|
|
asyncArrow: 'always'
|
||
|
|
}]
|
||
|
|
}
|
||
|
|
}
|