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({
list: {
type: Object,
default: () => ({}),
required: false,
},
disabled: {
type: Boolean,
......
......@@ -13,29 +13,36 @@ export default {
list: {
type: Object,
default: () => ({}),
required: false,
},
issue: {
type: Object,
default: () => ({}),
required: false,
},
issueLinkBase: {
type: String,
default: '',
required: false,
},
disabled: {
type: Boolean,
default: false,
required: false,
},
index: {
type: Number,
default: 0,
required: false,
},
rootPath: {
type: String,
default: '',
required: false,
},
groupId: {
type: Number,
required: false,
},
},
data() {
......
......@@ -7,6 +7,7 @@ export default Vue.extend({
list: {
type: Object,
default: () => ({}),
required: false,
},
},
methods: {
......
......@@ -34,6 +34,7 @@ export default Vue.extend({
currentUser: {
type: Object,
default: () => ({}),
required: false,
},
},
data() {
......
......@@ -43,6 +43,7 @@ export default {
throttleDuration: {
type: Number,
default: 200,
required: false,
},
boardBaseUrl: {
type: String,
......
......@@ -95,6 +95,7 @@ export default {
updateable: {
type: Boolean,
default: true,
required: false,
},
updateSuccessful: {
type: Boolean,
......
......@@ -22,6 +22,7 @@ export default {
ingressDnsHelpPath: {
type: String,
default: '',
required: false,
},
},
computed: {
......
......@@ -13,10 +13,12 @@ export default {
items: {
type: Array,
default: () => [],
required: false,
},
stage: {
type: Object,
default: () => ({}),
required: false,
},
},
};
......
......@@ -13,10 +13,12 @@ export default {
items: {
type: Array,
default: () => [],
required: false,
},
stage: {
type: Object,
default: () => ({}),
required: false,
},
},
};
......
......@@ -15,10 +15,12 @@ export default {
items: {
type: Array,
default: () => [],
required: false,
},
stage: {
type: Object,
default: () => ({}),
required: false,
},
},
};
......
......@@ -16,10 +16,12 @@ export default {
items: {
type: Array,
default: () => [],
required: false,
},
stage: {
type: Object,
default: () => ({}),
required: false,
},
},
computed: {
......
......@@ -15,10 +15,12 @@ export default {
items: {
type: Array,
default: () => [],
required: false,
},
stage: {
type: Object,
default: () => ({}),
required: false,
},
},
computed: {
......
......@@ -24,6 +24,7 @@ export default {
isLastDeployment: {
type: Boolean,
default: true,
required: false,
},
environment: {
......
......@@ -29,6 +29,7 @@ export default {
metadata: {
type: Object,
default: () => ({}),
required: false,
},
},
computed: {
......
......@@ -22,6 +22,7 @@ export default {
metadata: {
type: Object,
default: () => ({}),
required: false,
},
},
methods: {
......
......@@ -40,6 +40,7 @@ export default {
limitToHours: {
type: Boolean,
default: false,
required: false,
},
rootPath: {
type: String,
......
......@@ -8,6 +8,7 @@ export default {
content: {
type: String,
default: '',
required: false,
},
path: {
type: String,
......
......@@ -16,6 +16,7 @@ export default {
renderInfo: {
type: Boolean,
default: true,
required: false,
},
innerCssClasses: {
type: [Array, Object, String],
......
......@@ -15,6 +15,7 @@ export default {
size: {
type: Number,
default: 40,
required: false,
},
},
computed: {
......
......@@ -77,12 +77,12 @@ export default {
},
enableScopedLabels: {
type: Boolean,
require: false,
required: false,
default: false,
},
scopedLabelsDocumentationLink: {
type: String,
require: false,
required: false,
default: '#',
},
},
......
......@@ -33,12 +33,12 @@ export default {
},
enableScopedLabels: {
type: Boolean,
require: false,
required: false,
default: false,
},
scopedLabelsDocumentationLink: {
type: String,
require: false,
required: false,
default: '#',
},
},
......
......@@ -8,9 +8,9 @@ export default {
size: { type: Number, required: true },
length: { type: Number, required: true },
remain: { type: Number, required: true },
rtag: { type: String, default: 'div' },
wtag: { type: String, default: 'div' },
wclass: { type: String, default: null },
rtag: { type: String, default: 'div', required: false },
wtag: { type: String, default: 'div', required: false },
wclass: { type: String, default: null, required: false },
},
};
</script>
......
......@@ -24,6 +24,7 @@ export default {
hideGroupDropDown: {
type: Boolean,
default: false,
required: false,
},
},
data() {
......
......@@ -31,7 +31,7 @@ export default {
},
minDate: {
type: Date,
rerquired: false,
required: false,
default: null,
},
maxDate: {
......
......@@ -15,6 +15,7 @@ export default {
isMrEdit: {
type: Boolean,
default: true,
required: false,
},
},
computed: {
......
......@@ -17,6 +17,7 @@ export default {
isMrEdit: {
type: Boolean,
default: true,
required: false,
},
},
computed: {
......
......@@ -31,6 +31,7 @@ export default {
isMrEdit: {
type: Boolean,
default: true,
required: false,
},
canEdit: {
type: Boolean,
......
......@@ -28,6 +28,7 @@ export default {
isMrEdit: {
type: Boolean,
default: true,
required: false,
},
},
data() {
......
......@@ -56,6 +56,7 @@ export default {
disabled: {
type: Boolean,
default: false,
required: false,
},
},
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