31 lines
709 B
JavaScript
31 lines
709 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true
|
|
},
|
|
globals: {
|
|
'cordova': true,
|
|
'DEV': true,
|
|
'PROD': true,
|
|
'__THEME': true
|
|
},
|
|
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
|
extends: 'standard',
|
|
// required to lint *.vue files
|
|
plugins: [
|
|
'html'
|
|
],
|
|
// add your custom rules here
|
|
'rules': {
|
|
// allow paren-less arrow functions
|
|
'arrow-parens': 0,
|
|
'one-var': 0,
|
|
'import/first': 0,
|
|
// allow debugger during development
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }]
|
|
}
|
|
}
|