joinpeertube/.eslintrc.js

30 lines
538 B
JavaScript
Raw Normal View History

2019-09-11 11:52:20 +00:00
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
2019-09-18 15:24:45 +00:00
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/script-indent': ['error', 2, {
baseIndent: 1,
switchCase: 1
}]
2019-09-11 11:52:20 +00:00
},
2019-09-18 15:24:45 +00:00
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off'
}
}
],
2019-09-11 11:52:20 +00:00
parserOptions: {
parser: 'babel-eslint'
}
}