Skip to content

Commit

Permalink
Add eslint for Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyMay committed Oct 10, 2024
1 parent 56bdfa4 commit c0faa89
Show file tree
Hide file tree
Showing 5 changed files with 4,916 additions and 3,498 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": [
"vue",
"@typescript-eslint"
],
"rules": {
"no-unused-vars": [ "off" ],
"@typescript-eslint/no-unused-vars": [ "off" ]
}
}
4 changes: 2 additions & 2 deletions cypress/support/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { mount } from 'cypress/vue2'
// Alternatively, can be defined in cypress/support/component.d.ts
// with a <reference path="./component" /> at the top of your spec.
declare global {
namespace Cypress {
namespace Cypress { //eslint-disable-line @typescript-eslint/no-namespace
interface Chainable {
mount: typeof mount
}
Expand All @@ -36,4 +36,4 @@ declare global {
Cypress.Commands.add('mount', mount)

// Example use:
// cy.mount(MyComponent)
// cy.mount(MyComponent)
Loading

0 comments on commit c0faa89

Please sign in to comment.