removed unused props, add vue/no-unused-properties
Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
484a551037
Коммит
eaf29cd182
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче