forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🧹 Improve and fix linting in webapp-e2e-tests (airbytehq#20134)
* Apply similar eslint rules to the webapp project and fix outstanding issues * add paths to e2e tsconfig (for webstorm)
- Loading branch information
Showing
13 changed files
with
1,088 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"plugin:cypress/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"plugin:prettier/recommended", | ||
], | ||
plugins: ["@typescript-eslint", "prettier"], | ||
parser: "@typescript-eslint/parser", | ||
rules: { | ||
"cypress/no-unnecessary-waiting": "warn", | ||
"prettier/prettier": "warn", | ||
|
||
curly: "warn", | ||
"dot-location": ["warn", "property"], | ||
"dot-notation": "warn", | ||
"no-else-return": "warn", | ||
"no-lonely-if": "warn", | ||
"no-inner-declarations": "off", | ||
"no-unused-vars": "off", | ||
"no-useless-computed-key": "warn", | ||
"no-useless-return": "warn", | ||
"no-var": "warn", | ||
"object-shorthand": ["warn", "always"], | ||
"prefer-arrow-callback": "warn", | ||
"prefer-const": "warn", | ||
"prefer-destructuring": ["warn", { AssignmentExpression: { array: true } }], | ||
"prefer-object-spread": "warn", | ||
"prefer-template": "warn", | ||
"spaced-comment": ["warn", "always", { markers: ["/"] }], | ||
yoda: "warn", | ||
|
||
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], | ||
"@typescript-eslint/ban-ts-comment": [ | ||
"warn", | ||
{ | ||
"ts-expect-error": "allow-with-description", | ||
}, | ||
], | ||
"@typescript-eslint/ban-types": "warn", | ||
"@typescript-eslint/consistent-indexed-object-style": ["warn", "record"], | ||
"@typescript-eslint/consistent-type-definitions": ["warn", "interface"], | ||
"@typescript-eslint/no-unused-vars": "warn", | ||
|
||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/triple-slash-reference": "off", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
airbyte-webapp-e2e-tests/cypress/pages/modals/updateSchemaModal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const updateSchemaModalConfirmBtnClick = () => { | ||
cy.get("[data-testid='update-schema-confirm-btn']").click(); | ||
}; | ||
cy.get("[data-testid='update-schema-confirm-btn']").click(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.