Commit c3254bca authored by Phil Hughes's avatar Phil Hughes

Merge branch 'renovate/gitlab-packages' into 'master'

Update dependency @gitlab/eslint-plugin to v2.2.1

Closes #205390

See merge request gitlab-org/gitlab!29744
parents 467ac44e b53f2f23
...@@ -108,14 +108,14 @@ export default { ...@@ -108,14 +108,14 @@ export default {
return acc.concat({ return acc.concat({
name, name,
path, path,
to: `/-/tree/${joinPaths(escape(this.ref), path)}`, to: `/-/tree/${joinPaths(encodeURIComponent(this.ref), path)}`,
}); });
}, },
[ [
{ {
name: this.projectShortPath, name: this.projectShortPath,
path: '/', path: '/',
to: `/-/tree/${escape(this.ref)}/`, to: `/-/tree/${encodeURIComponent(this.ref)}/`,
}, },
], ],
); );
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
return splitArray.map(p => encodeURIComponent(p)).join('/'); return splitArray.map(p => encodeURIComponent(p)).join('/');
}, },
parentRoute() { parentRoute() {
return { path: `/-/tree/${escape(this.commitRef)}/${this.parentPath}` }; return { path: `/-/tree/${encodeURIComponent(this.commitRef)}/${this.parentPath}` };
}, },
}, },
methods: { methods: {
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
computed: { computed: {
routerLinkTo() { routerLinkTo() {
return this.isFolder return this.isFolder
? { path: `/-/tree/${escape(this.ref)}/${escapeFileUrl(this.path)}` } ? { path: `/-/tree/${encodeURIComponent(this.ref)}/${escapeFileUrl(this.path)}` }
: null; : null;
}, },
isFolder() { isFolder() {
......
...@@ -48,7 +48,7 @@ const defaultClient = createDefaultClient( ...@@ -48,7 +48,7 @@ const defaultClient = createDefaultClient(
case 'TreeEntry': case 'TreeEntry':
case 'Submodule': case 'Submodule':
case 'Blob': case 'Blob':
return `${escape(obj.flatPath)}-${obj.id}`; return `${encodeURIComponent(obj.flatPath)}-${obj.id}`;
default: default:
// If the type doesn't match any of the above we fallback // If the type doesn't match any of the above we fallback
// to using the default Apollo ID // to using the default Apollo ID
......
...@@ -100,7 +100,9 @@ export default function setupVueRepositoryList() { ...@@ -100,7 +100,9 @@ export default function setupVueRepositoryList() {
render(h) { render(h) {
return h(TreeActionLink, { return h(TreeActionLink, {
props: { props: {
path: `${historyLink}/${this.$route.params.path ? escape(this.$route.params.path) : ''}`, path: `${historyLink}/${
this.$route.params.path ? encodeURIComponent(this.$route.params.path) : ''
}`,
text: __('History'), text: __('History'),
}, },
}); });
......
...@@ -766,10 +766,10 @@ ...@@ -766,10 +766,10 @@
resolved "https://registry.yarnpkg.com/@gitlab/at.js/-/at.js-1.5.5.tgz#5f6bfe6baaef360daa9b038fa78798d7a6a916b4" resolved "https://registry.yarnpkg.com/@gitlab/at.js/-/at.js-1.5.5.tgz#5f6bfe6baaef360daa9b038fa78798d7a6a916b4"
integrity sha512-282Dn3SPVsUHVDhMsXgfnv+Rzog0uxecjttxGRQvxh25es1+xvkGQFsvJfkSKJ3X1kHVkSjKf+Tt5Rra+Jhp9g== integrity sha512-282Dn3SPVsUHVDhMsXgfnv+Rzog0uxecjttxGRQvxh25es1+xvkGQFsvJfkSKJ3X1kHVkSjKf+Tt5Rra+Jhp9g==
"@gitlab/eslint-plugin@2.1.1": "@gitlab/eslint-plugin@2.2.1":
version "2.1.1" version "2.2.1"
resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin/-/eslint-plugin-2.1.1.tgz#6149a0dc1b093c40eb92800b1c49e7136f11dda1" resolved "https://registry.yarnpkg.com/@gitlab/eslint-plugin/-/eslint-plugin-2.2.1.tgz#7033030787981ded5ae24f4051109d069c98fcc0"
integrity sha512-hPno+eYl9lpe3nGa748TQ2eftAooFu2SS9b+BwY8mZr3tuIS937GgB0FeFXJAjKFdfoFgLgRfQIQXkHm4Ywt0A== integrity sha512-OM0gU2wfUeFZU5MP4Qaj1QHeJwpi9Ps35dRo8V1BP1lFskn2nDl6dEINAgqpdpjRV33LJ5/TZLfcGIswad0UtQ==
dependencies: dependencies:
babel-eslint "^10.0.3" babel-eslint "^10.0.3"
eslint-config-airbnb-base "^14.0.0" eslint-config-airbnb-base "^14.0.0"
......
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