twofactor_totp/.eslintrc.js

38 строки
739 B
JavaScript

module.exports = {
root: true,
env: {
node: true,
amd: true,
mocha: true,
},
plugins: [
'nextcloud',
],
extends: [
'plugin:vue/recommended',
'plugin:prettier/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',
'nextcloud/no-deprecations': 'warn',
'nextcloud/no-removed-apis': 'error',
},
parserOptions: {
parser: 'babel-eslint',
},
globals: {
expect: true,
OC: true,
OCA: true,
t: true,
__webpack_public_path__: true,
__webpack_nonce__: true,
}
}