Skip to content

Commit 354d87b

Browse files
committed
Fix lint errors
1 parent 4bb4e10 commit 354d87b

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.eslintrc.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "next/core-web-vitals",
3-
"react/jsx-no-target-blank": [true, {
4-
"allowReferrer": true
5-
}]
3+
"rules": {
4+
"react/jsx-no-target-blank": ["warn", {
5+
"allowReferrer": true
6+
}]
7+
}
68
}

cypress/e2e/reader.cy.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export {};
2+
13
const viewports: Cypress.ViewportPreset[] = [
24
'macbook-13',
35
'iphone-x',

cypress/e2e/selection.cy.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export {};
2+
13
describe('selection view', () => {
24
beforeEach(() => {
35
cy.visit('/228mrk3xXL:0:7'); // Section 2.4 API
@@ -10,7 +12,7 @@ describe('selection view', () => {
1012
// Selection is highlighted
1113
cy.window().then((w) => {
1214
const selection = w.getSelection();
13-
expect(selection.toString()).to.equal('2.4 API');
15+
expect(selection?.toString()).to.equal('2.4 API');
1416
});
1517
});
1618

cypress/support/commands.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export {};
12
/// <reference types="cypress" />
23
// ***********************************************
34
// This example commands.ts shows you how to
@@ -34,4 +35,4 @@
3435
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
3536
// }
3637
// }
37-
// }
38+
// }

cypress/support/e2e.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export {};
12
// ***********************************************************
23
// This example support/e2e.ts is processed and
34
// loaded automatically before your test files.
@@ -14,7 +15,7 @@
1415
// ***********************************************************
1516

1617
// Import commands.js using ES2015 syntax:
17-
import './commands'
18+
import './commands';
1819

1920
// Alternatively you can use CommonJS syntax:
20-
// require('./commands')
21+
// require('./commands')

0 commit comments

Comments
 (0)