Skip to content

Commit 0ed3c9b

Browse files
committed
lint fix
1 parent b2ca0dd commit 0ed3c9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/CubeValidator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,13 +885,12 @@ export class CubeValidator {
885885
}
886886

887887
public validate(cube, errorReporter: ErrorReporter) {
888-
889888
// Joi schema validation (v17.8-v17.13) doesn't work correctly with custom prototypes
890889
// the workaround found - is to flatten the cube object before passing it to validator
891890
// it's important to include all enumerable keys from own and all prototypes in chain
892891
// that's why for (const key in cube) is used here
893892
const allKeys: string[] = [];
894-
// eslint-disable-next-line guard-for-in
893+
// eslint-disable-next-line guard-for-in,no-restricted-syntax
895894
for (const key in cube) {
896895
allKeys.push(key);
897896
}

0 commit comments

Comments
 (0)