Skip to content

Commit

Permalink
Make ESLint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jan 15, 2024
1 parent 48fe5b2 commit 989a64b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"overrides": [
{
"files": ["**/*.test.js"],
"files": ["**/*.test.js", "**/tests/**/*.js", "setup.jest.js"],
"env": {
"jest": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/tests/emoji.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import renderToImage from './renderComponent';
import { Document, Page, Text, Font } from '@react-pdf/renderer';
import renderToImage from './renderComponent';

describe('emoji', () => {
test('should support builder function', async () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/renderer/tests/node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ describe('node', () => {
});

test('should render to file', async () => {
const path = `${__dirname}/test.pdf`;
await ReactPDF.renderToFile(<TestDocument />, path);
const pdfPath = `${__dirname}/test.pdf`;
await ReactPDF.renderToFile(<TestDocument />, pdfPath);

expect(fs.existsSync(path)).toBeTruthy();
expect(fs.existsSync(pdfPath)).toBeTruthy();

fs.unlinkSync(path);
fs.unlinkSync(pdfPath);
});

test('should export font store', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/tests/pageWrap.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable react/no-array-index-key */
import renderToImage from './renderComponent';
import {
Document,
Font,
Expand All @@ -8,6 +7,7 @@ import {
Image,
StyleSheet,
} from '@react-pdf/renderer';
import renderToImage from './renderComponent';

const styles = StyleSheet.create({
body: {
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/tests/resume.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable react/no-array-index-key */
import renderToImage from './renderComponent';
import {
Link,
Text,
Expand All @@ -10,6 +9,7 @@ import {
Document,
StyleSheet,
} from '@react-pdf/renderer';
import renderToImage from './renderComponent';

const headerStyles = StyleSheet.create({
container: {
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/tests/text.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable react/jsx-one-expression-per-line */
/* eslint-disable react/no-array-index-key */
import renderToImage from './renderComponent';
import {
Document,
Page,
Expand All @@ -10,6 +9,7 @@ import {
Font,
StyleSheet,
} from '@react-pdf/renderer';
import renderToImage from './renderComponent';

const styles = StyleSheet.create({
title: {
Expand Down

0 comments on commit 989a64b

Please sign in to comment.