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