fix: suppress warnings about the use of expressions where assignments are expected (#11343)
This commit is contained in:
parent
cd8db7fbc2
commit
d2c96b9727
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user