Commit 93615feb authored by Sarah GP's avatar Sarah GP

Lint and prettify

This involves more than three files
parent af3ec601
......@@ -18,9 +18,9 @@ export default {
configPaths: {
type: Object,
required: true,
validator: function(value) {
validator(value) {
return Object.keys(value).includes('graphqlResourceEtag');
}
},
},
pipeline: {
type: Object,
......
......@@ -8,7 +8,7 @@ import {
getQueryHeaders,
reportToSentry,
toggleQueryPollingByVisibility,
unwrapPipelineData
unwrapPipelineData,
} from './utils';
export default {
......@@ -85,7 +85,7 @@ export default {
};
}
},
configPaths(){
configPaths() {
return {
graphqlResourceEtag: this.graphqlResourceEtag,
metricsPath: this.metricsPath,
......
......@@ -7,7 +7,7 @@ import {
getQueryHeaders,
reportToSentry,
toggleQueryPollingByVisibility,
unwrapPipelineData
unwrapPipelineData,
} from './utils';
export default {
......@@ -23,9 +23,9 @@ export default {
configPaths: {
type: Object,
required: true,
validator: function(value) {
validator(value) {
return Object.keys(value).includes('graphqlResourceEtag');
}
},
},
linkedPipelines: {
type: Array,
......
......@@ -10,6 +10,7 @@ const addMulti = (mainPipelineProjectPath, linkedPipeline) => {
};
};
/* eslint-disable @gitlab/require-i18n-strings */
const getQueryHeaders = (etagResource) => {
return {
fetchOptions: {
......@@ -22,6 +23,7 @@ const getQueryHeaders = (etagResource) => {
},
};
};
/* eslint-enable @gitlab/require-i18n-strings */
const reportToSentry = (component, failureType) => {
Sentry.withScope((scope) => {
......
......@@ -16,7 +16,10 @@ const apolloProvider = new VueApollo({
),
});
const createPipelinesDetailApp = (selector, { pipelineProjectPath, pipelineIid, metricsPath, graphqlResourceEtag } = {}) => {
const createPipelinesDetailApp = (
selector,
{ pipelineProjectPath, pipelineIid, metricsPath, graphqlResourceEtag } = {},
) => {
// eslint-disable-next-line no-new
new Vue({
el: selector,
......
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