36 строки
693 B
JavaScript
36 строки
693 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
amd: true,
|
|
jquery: true,
|
|
mocha: true,
|
|
},
|
|
extends: [
|
|
'plugin:@nextcloud/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:vue/recommended',
|
|
'prettier/vue',
|
|
'eslint:recommended',
|
|
],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-unused-vars': 'off',
|
|
'vue/no-v-html': 'off',
|
|
'no-case-declarations': 'off',
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
},
|
|
globals: {
|
|
expect: true,
|
|
OC: true,
|
|
OCA: true,
|
|
OCP: true,
|
|
t: true,
|
|
__webpack_public_path__: true,
|
|
__webpack_nonce__: true,
|
|
}
|
|
}
|