mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-28 20:23:43 +08:00 
			
		
		
		
	 64383915bd
			
		
	
	64383915bd
	
	
	
		
			
			Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.0 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,
 | |
|   {
 | |
|     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",
 | |
|     },
 | |
|   },
 | |
| ];
 |