Skip to content

Commit

Permalink
configure eslint for e2e project
Browse files Browse the repository at this point in the history
  • Loading branch information
ykaiboussiSO committed Dec 23, 2024
1 parent 053d578 commit a6eeca3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/e2e/.env-cmdrc.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dev": {
"ENV": "dev",
"BASEURL": "bloodhound.localhost",
"BASEURL": "http://bloodhound.localhost",
"DEFAULT_BROWSER":"chrome"
},
"staging": {
Expand Down
12 changes: 12 additions & 0 deletions cmd/e2e/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
10 changes: 8 additions & 2 deletions cmd/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"generate:prisma": "yarn prisma db pull && yarn prisma generate",
"pretest": "tsc src/helpers/init.ts",
"test:e2e": "env-cmd -e dev cucumber-js --config=src/cucumber.json --tags '@e2e'",
"test:failed": "env-cmd -e dev cucumber-js -p rerun --config=src/cucumber.json @rerun.txt"
"test:failed": "env-cmd -e dev cucumber-js -p rerun --config=src/cucumber.json @rerun.txt",
"lint": "eslint src prisma"
},
"type": "module",
"description": "E2E BDD Tests",
"devDependencies": {
"@cucumber/cucumber": "^11.0.1",
"@eslint/js": "^9.17.0",
"@faker-js/faker": "^9.0.3",
"@playwright/browser-chromium": "1.49.0",
"@playwright/browser-firefox": "1.49.0",
Expand All @@ -23,9 +25,13 @@
"@types/uuid": "^10.0.0",
"dotenv": "^16.4.5",
"env-cmd": "^10.1.0",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"playwright": "1.49.0",
"prisma": "5.22.0",
"typescript": "5.6.3"
"ts-node": "^10.9.2",
"typescript": "5.6.3",
"typescript-eslint": "^8.18.2"
},
"dependencies": {
"@prisma/client": "5.22.0",
Expand Down

0 comments on commit a6eeca3

Please sign in to comment.