Commit 63d42885 authored by Ragnar-H's avatar Ragnar-H

Explicitly set required key on props

We've been violating our styleguide a number of times.
Now we enforce this with eslint, so we catch the violoations.
parent 6d9c0c82
...@@ -36,6 +36,7 @@ export default Vue.extend({ ...@@ -36,6 +36,7 @@ export default Vue.extend({
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
......
...@@ -13,29 +13,36 @@ export default { ...@@ -13,29 +13,36 @@ export default {
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
issue: { issue: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
issueLinkBase: { issueLinkBase: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
index: { index: {
type: Number, type: Number,
default: 0, default: 0,
required: false,
}, },
rootPath: { rootPath: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
groupId: { groupId: {
type: Number, type: Number,
required: false,
}, },
}, },
data() { data() {
......
...@@ -7,6 +7,7 @@ export default Vue.extend({ ...@@ -7,6 +7,7 @@ export default Vue.extend({
list: { list: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
methods: { methods: {
......
...@@ -34,6 +34,7 @@ export default Vue.extend({ ...@@ -34,6 +34,7 @@ export default Vue.extend({
currentUser: { currentUser: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
data() { data() {
......
...@@ -43,6 +43,7 @@ export default { ...@@ -43,6 +43,7 @@ export default {
throttleDuration: { throttleDuration: {
type: Number, type: Number,
default: 200, default: 200,
required: false,
}, },
boardBaseUrl: { boardBaseUrl: {
type: String, type: String,
......
...@@ -95,6 +95,7 @@ export default { ...@@ -95,6 +95,7 @@ export default {
updateable: { updateable: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
updateSuccessful: { updateSuccessful: {
type: Boolean, type: Boolean,
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
ingressDnsHelpPath: { ingressDnsHelpPath: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -13,10 +13,12 @@ export default { ...@@ -13,10 +13,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -13,10 +13,12 @@ export default { ...@@ -13,10 +13,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -15,10 +15,12 @@ export default { ...@@ -15,10 +15,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
}; };
......
...@@ -16,10 +16,12 @@ export default { ...@@ -16,10 +16,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -15,10 +15,12 @@ export default { ...@@ -15,10 +15,12 @@ export default {
items: { items: {
type: Array, type: Array,
default: () => [], default: () => [],
required: false,
}, },
stage: { stage: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -24,6 +24,7 @@ export default { ...@@ -24,6 +24,7 @@ export default {
isLastDeployment: { isLastDeployment: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
environment: { environment: {
......
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
metadata: { metadata: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
metadata: { metadata: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
required: false,
}, },
}, },
methods: { methods: {
......
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
limitToHours: { limitToHours: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
rootPath: { rootPath: {
type: String, type: String,
......
...@@ -8,6 +8,7 @@ export default { ...@@ -8,6 +8,7 @@ export default {
content: { content: {
type: String, type: String,
default: '', default: '',
required: false,
}, },
path: { path: {
type: String, type: String,
......
...@@ -16,6 +16,7 @@ export default { ...@@ -16,6 +16,7 @@ export default {
renderInfo: { renderInfo: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
innerCssClasses: { innerCssClasses: {
type: [Array, Object, String], type: [Array, Object, String],
......
...@@ -15,6 +15,7 @@ export default { ...@@ -15,6 +15,7 @@ export default {
size: { size: {
type: Number, type: Number,
default: 40, default: 40,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -77,12 +77,12 @@ export default { ...@@ -77,12 +77,12 @@ export default {
}, },
enableScopedLabels: { enableScopedLabels: {
type: Boolean, type: Boolean,
require: false, required: false,
default: false, default: false,
}, },
scopedLabelsDocumentationLink: { scopedLabelsDocumentationLink: {
type: String, type: String,
require: false, required: false,
default: '#', default: '#',
}, },
}, },
......
...@@ -33,12 +33,12 @@ export default { ...@@ -33,12 +33,12 @@ export default {
}, },
enableScopedLabels: { enableScopedLabels: {
type: Boolean, type: Boolean,
require: false, required: false,
default: false, default: false,
}, },
scopedLabelsDocumentationLink: { scopedLabelsDocumentationLink: {
type: String, type: String,
require: false, required: false,
default: '#', default: '#',
}, },
}, },
......
...@@ -8,9 +8,9 @@ export default { ...@@ -8,9 +8,9 @@ export default {
size: { type: Number, required: true }, size: { type: Number, required: true },
length: { type: Number, required: true }, length: { type: Number, required: true },
remain: { type: Number, required: true }, remain: { type: Number, required: true },
rtag: { type: String, default: 'div' }, rtag: { type: String, default: 'div', required: false },
wtag: { type: String, default: 'div' }, wtag: { type: String, default: 'div', required: false },
wclass: { type: String, default: null }, wclass: { type: String, default: null, required: false },
}, },
}; };
</script> </script>
......
...@@ -24,6 +24,7 @@ export default { ...@@ -24,6 +24,7 @@ export default {
hideGroupDropDown: { hideGroupDropDown: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
}, },
data() { data() {
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
minDate: { minDate: {
type: Date, type: Date,
rerquired: false, required: false,
default: null, default: null,
}, },
maxDate: { maxDate: {
......
...@@ -15,6 +15,7 @@ export default { ...@@ -15,6 +15,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -17,6 +17,7 @@ export default { ...@@ -17,6 +17,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
computed: { computed: {
......
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
canEdit: { canEdit: {
type: Boolean, type: Boolean,
......
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
isMrEdit: { isMrEdit: {
type: Boolean, type: Boolean,
default: true, default: true,
required: false,
}, },
}, },
data() { data() {
......
...@@ -56,6 +56,7 @@ export default { ...@@ -56,6 +56,7 @@ export default {
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false, default: false,
required: false,
}, },
}, },
data() { data() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment