Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ykaiboussiSO committed Dec 23, 2024
1 parent a6eeca3 commit d481d06
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions cmd/e2e/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2024 Specter Ops, Inc.
//
// Licensed under the Apache License, Version 2.0
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0

import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
Expand All @@ -6,6 +22,10 @@ import tseslint from "typescript-eslint";
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{ignores: [
"prisma/client.ts",
"prisma/seed.ts"
]},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
Expand Down
2 changes: 1 addition & 1 deletion cmd/e2e/src/tests/steps/disabled_user.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
// SPDX-License-Identifier: Apache-2.0

import { Given, When, Then } from "@cucumber/cucumber";
import { Given, Then } from "@cucumber/cucumber";
import { expect } from "@playwright/test";

Given('User visits the login page', async function () {
Expand Down
2 changes: 1 addition & 1 deletion cmd/e2e/src/tests/steps/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
// SPDX-License-Identifier: Apache-2.0

import { Given, When, Then, setDefaultTimeout } from "@cucumber/cucumber";
import { Given, When, Then } from "@cucumber/cucumber";
import { expect } from "@playwright/test";

Then('User is redirect to {string} page', async function (text: string) {
Expand Down

0 comments on commit d481d06

Please sign in to comment.