Commit 2dc51b6f authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Mike Greiling

Narrow down violation of promise/no-nesting ESLint rule

parent 6cae55a9
......@@ -45,7 +45,6 @@ rules:
no-jquery/no-serialize: error
promise/always-return: off
promise/no-callback-in-promise: off
promise/no-nesting: off
overrides:
files:
- '**/spec/**/*'
......
rules:
# https://gitlab.com/gitlab-org/gitlab/issues/33024
promise/no-nesting: off
......@@ -124,6 +124,8 @@ describe('ee/ide/lib/mirror', () => {
it('disconnects when connected again', () => {
const result = connection
.then(() => {
// https://gitlab.com/gitlab-org/gitlab/issues/33024
// eslint-disable-next-line promise/no-nesting
mirror.connect(TEST_PATH).catch(() => {});
})
.then(() => {
......
rules:
# https://gitlab.com/gitlab-org/gitlab/issues/33025
promise/no-nesting: off
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