Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 8, 2018
1 parent 81ff694 commit 323e741
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion sample/parcel/Sample.jsx
Expand Up @@ -36,7 +36,8 @@ export default class Sample extends Component {
</header>
<div className="Example__container">
<div className="Example__container__load">
<label htmlFor="file">Load from file:</label>&nbsp;
<label htmlFor="file">Load from file:</label>
{' '}
<input
type="file"
onChange={this.onFileChange}
Expand Down
3 changes: 2 additions & 1 deletion sample/webpack/Sample.jsx
Expand Up @@ -36,7 +36,8 @@ class Sample extends Component {
</header>
<div className="Example__container">
<div className="Example__container__load">
<label htmlFor="file">Load from file:</label>&nbsp;
<label htmlFor="file">Load from file:</label>
{' '}
<input
type="file"
onChange={this.onFileChange}
Expand Down
1 change: 1 addition & 0 deletions src/OutlineItem.jsx
Expand Up @@ -95,6 +95,7 @@ export class OutlineItemInternal extends PureComponent {
render() {
const { item } = this.props;

/* eslint-disable jsx-a11y/anchor-is-valid */
return (
<li>
<a
Expand Down
5 changes: 2 additions & 3 deletions src/__tests__/utils.js
@@ -1,4 +1,5 @@
// eslint-disable-next-line import/prefer-default-export
const fs = require('fs');

export const makeAsyncCallback = (callbackValue) => {
let promiseResolve;
const promise = new Promise((resolve) => {
Expand All @@ -14,8 +15,6 @@ export const makeAsyncCallback = (callbackValue) => {
};

export const loadPDF = (path) => {
const fs = require('fs');

const raw = fs.readFileSync(path);
const arrayBuffer = raw.buffer;

Expand Down

0 comments on commit 323e741

Please sign in to comment.