fix linting

This commit is contained in:
mahula 2024-02-22 13:36:35 +01:00
parent 89846e6b89
commit 08064bbecf
5 changed files with 11 additions and 4 deletions

View File

@ -1 +1,2 @@
build/
node_modules/

View File

@ -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'

View File

@ -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')

View File

@ -7,7 +7,7 @@
"#pages/*": [
"../pages/*.ts"
]
},
}
},
"include": ["./**/*.ts"]
}

View File

@ -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"]