Aseem Bansal 71759f969b
feat(ci): add linting for cypress tests (#10424)
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
Co-authored-by: gaurav2733 <gaurav.wagh@apptware.com>
2024-05-07 14:16:22 +05:30

32 lines
677 B
JavaScript

module.exports = {
env: {
es2021: true,
node: true,
},
plugins: ["cypress"],
extends: ["airbnb-base", "plugin:cypress/recommended", "prettier"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
camelcase: "off",
"import/prefer-default-export": "off",
// TODO: These should be upgraded to warnings and fixed.
"cypress/no-unnecessary-waiting": "off",
"cypress/unsafe-to-chain-command": "off",
"no-unused-vars": "off",
},
};