fix: suppress warnings about the use of expressions where assignments are expected (#11343)

This commit is contained in:
Favour Ohanekwu 2022-02-23 08:19:44 -08:00 committed by GitHub
parent cd8db7fbc2
commit d2c96b9727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -42,11 +42,6 @@ describe("Linting warning validation with Checkbox widget", function() {
cy.get(commonlocators.lintErrorMsg)
.should("be.visible")
.contains("Expected an identifier and instead saw ')");
cy.get(commonlocators.lintErrorMsg)
.should("be.visible")
.contains(
"Expected an assignment or function call and instead saw an expression",
);
cy.get(commonlocators.lintErrorMsg)
.should("be.visible")
.contains(

View File

@ -75,6 +75,7 @@ export const getLintingErrors = (
evil: false, // Use of eval not allowed
funcscope: true, // Tolerate variable definition inside control statements
sub: true, // Don't force dot notation
expr: true, // suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls
// environments
browser: true,
worker: true,