Files
hyperswitch/cypress-tests/eslint.config.js
likhinbopanna dc4eccb85c ci(cypress): create cypress dashboard (#8401)
Co-authored-by: PiX <69745008+pixincreate@users.noreply.github.com>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
2025-07-15 12:43:07 +00:00

40 lines
1.1 KiB
JavaScript

import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import pluginCypress from "eslint-plugin-cypress/flat";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";
/** @type {import('eslint').Linter.Config[]} */
export default [
pluginJs.configs.recommended,
pluginCypress.configs.recommended,
eslintPluginPrettierRecommended,
eslintConfigPrettier,
{
ignores: ["dist/**", "build/**", "node_modules/**"],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
"no-unused-vars": "error",
"no-undef": "error",
"no-console": "warn",
"prefer-const": "warn",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-assigning-return-values": "warn",
"cypress/no-force": "warn",
"cypress/no-unnecessary-waiting": "warn",
"cypress/no-async-tests": "error",
"cypress/unsafe-to-chain-command": "warn",
"prettier/prettier": "error",
},
},
];