Skip to content

Commit

Permalink
Enabled the no-require-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jul 16, 2023
1 parent 638c50a commit a1d539b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-require-imports": "off", // TODO
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-useless-empty-export": "error",
Expand Down
3 changes: 2 additions & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* eslint-env node */

import * as coverageTask from "@cypress/code-coverage/task";
import { defineConfig } from "cypress";

export default defineConfig({
video: false,
e2e: {
setupNodeEvents(on, config) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-var-requires
require("@cypress/code-coverage/task")(on, config);
coverageTask(on, config);
return config;
},
specPattern: "__tests__/frontend/**/*.cy.ts",
Expand Down

0 comments on commit a1d539b

Please sign in to comment.