Skip to content

Commit

Permalink
chore: disable no-continue eslint rule (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored Oct 1, 2024
1 parent 556885b commit 115a1f1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .changeset/thin-waves-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

chore: disable `no-continue` eslint rule
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
},
},
rules: {
'no-continue': 'off',
'no-restricted-syntax': [
'off',
{
Expand Down
1 change: 0 additions & 1 deletion packages/account/src/providers/fuel-graphql-subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class FuelGraphqlSubscriber implements AsyncIterator<unknown> {
.replace(':keep-alive-text\n\n', '');

if (decoded === '') {
// eslint-disable-next-line no-continue
continue;
}

Expand Down
1 change: 0 additions & 1 deletion packages/contract/src/contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ export default class ContractFactory {
// is still valid so we can use this for the loader contract
if ((<Error>err).message.indexOf(`BlobId is already taken ${blobId}`) > -1) {
uploadedBlobs.push(blobId);
// eslint-disable-next-line no-continue
continue;
}

Expand Down
4 changes: 0 additions & 4 deletions packages/merkle/src/sparse/sparseMerkleTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export class SparseMerkleTree {

for (let i = 0; i < sideNodes.length; i += 1) {
if (sideNodes[i] === '') {
// eslint-disable-next-line no-continue
continue;
}

Expand All @@ -127,7 +126,6 @@ export class SparseMerkleTree {
// This is the leaf sibling that needs to be percolated up the tree.
currentHash = sideNode;
currentData = sideNode;
// eslint-disable-next-line no-continue
continue;
} else {
// This is the node sibling that needs to be left in its place.
Expand All @@ -139,7 +137,6 @@ export class SparseMerkleTree {
if (!nonPlaceholderReached && sideNode === ZERO) {
// We found another placeholder sibling node, keep going up the
// tree until we find the first sibling that is not a placeholder.
// eslint-disable-next-line no-continue
continue;
} else if (!nonPlaceholderReached) {
// We found the first sibling node that is not a placeholder, it is
Expand Down Expand Up @@ -221,7 +218,6 @@ export class SparseMerkleTree {
if (commonPrefixCount !== MAX_HEIGHT && commonPrefixCount > MAX_HEIGHT - 1 - i) {
sideNode = ZERO;
} else {
// eslint-disable-next-line no-continue
continue;
}
} else {
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/utils/toUtf8String.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-continue */
import type { BytesLike } from '@fuel-ts/interfaces';

import { arrayify } from './arrayify';
Expand Down

0 comments on commit 115a1f1

Please sign in to comment.