From 08064bbecf9a5aeeec9ee29cc3ad1c9f660bd0bc Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 22 Feb 2024 13:36:35 +0100 Subject: [PATCH] fix linting --- .eslintignore | 1 + cypress.config.ts | 2 ++ cypress/e2e/step_definitions/login.ts | 5 +++-- cypress/tsconfig.json | 2 +- tsconfig.json | 5 ++++- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index 40b878d..16d8d68 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ +build/ node_modules/ \ No newline at end of file diff --git a/cypress.config.ts b/cypress.config.ts index e1e1a4d..a7d53cf 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-unsafe-argument */ +/* eslint-disable @typescript-eslint/no-unsafe-call */ import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor' import webpack from '@cypress/webpack-preprocessor' import { defineConfig } from 'cypress' diff --git a/cypress/e2e/step_definitions/login.ts b/cypress/e2e/step_definitions/login.ts index a106856..b5dcb34 100644 --- a/cypress/e2e/step_definitions/login.ts +++ b/cypress/e2e/step_definitions/login.ts @@ -1,7 +1,8 @@ +/* eslint-disable @typescript-eslint/no-unsafe-call */ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' -import { loginPage } from '../../pages/LoginPage' -import { welcomePage } from '../../pages/WelcomePage' +import { loginPage } from '#pages/LoginPage' +import { welcomePage } from '#pages/WelcomePage' Given('The web browser is at the login page', () => { cy.visit('/login') diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 1ad5b40..c8c535a 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -7,7 +7,7 @@ "#pages/*": [ "../pages/*.ts" ] - }, + } }, "include": ["./**/*.ts"] } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 0baa160..7e7bfab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,10 @@ "target": "ES2020", "lib": ["ES2022", "dom"], "strict": true, - "types": ["cypress", "node"] + "types": ["cypress", "node"], + "paths": { + "#pages/*": ["./cypress/pages/*"] + } }, "include": ["**/*.ts"], "exclude": ["node_modules"]