removed unused props, add vue/no-unused-properties

Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
dartcafe 2021-02-27 15:30:04 +01:00
Родитель 484a551037
Коммит eaf29cd182
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
6 изменённых файлов: 4 добавлений и 34 удалений

Просмотреть файл

@ -38,6 +38,10 @@ module.exports = {
allowModules: [],
tryExtensions: ['.js', '.vue'],
}],
'vue/no-unused-properties': ['error', {
groups: ['props'],
deepData: false,
}],
'comma-dangle': ['error', 'always-multiline'],
// space before function ()
'space-before-function-paren': ['error', 'never'],

Просмотреть файл

@ -74,10 +74,6 @@ export default {
type: String,
default: '',
},
emailAddress: {
type: String,
default: '',
},
type: {
type: String,
default: 'user',

Просмотреть файл

@ -59,10 +59,6 @@ export default {
type: Object,
default: undefined,
},
open: {
type: Boolean,
default: false,
},
},
data() {

Просмотреть файл

@ -70,26 +70,11 @@ export default {
CheckBoxDiv,
},
props: {
show: {
type: Boolean,
default: false,
},
},
computed: {
...mapState({
settings: state => state.settings.user,
}),
// Add bindings
realTimePolling: {
get() {
return this.settings.realTimePolling
},
set(value) {
this.writeValue({ realTimePolling: value })
},
},
experimental: {
get() {
return this.settings.experimental

Просмотреть файл

@ -67,13 +67,6 @@ export default {
CheckBoxDiv,
},
props: {
show: {
type: Boolean,
default: false,
},
},
computed: {
...mapState({
settings: state => state.settings.user,

Просмотреть файл

@ -51,10 +51,6 @@ export default {
type: String,
default: 'user',
},
icon: {
type: Boolean,
default: false,
},
},
}