Skip to content

Commit

Permalink
Update eslintrc (#40)
Browse files Browse the repository at this point in the history
* Update eslintrc

* Fix eslint errors
  • Loading branch information
sigma-andex authored Mar 22, 2022
1 parent b40025a commit f100d2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"parserOptions": {
"ecmaVersion": 5
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"env": {
"node": true,
"commonjs": true
"node": true
},
"rules": {
"strict": [2, "global"],
Expand Down
10 changes: 5 additions & 5 deletions test/Main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { WritableStreamBuffer, ReadableStreamBuffer } from 'stream-buffers';
import { PassThrough } from 'stream';
import { WritableStreamBuffer, ReadableStreamBuffer } from "stream-buffers";
import { PassThrough } from "stream";

export function writableStreamBuffer() {
return new WritableStreamBuffer;
}

export function getContentsAsString(w) {
return () => w.getContentsAsString('utf8');
return () => w.getContentsAsString("utf8");
}

export function readableStreamBuffer() {
Expand All @@ -19,8 +19,8 @@ export function putImpl(str) {
};
}

export { createGzip, createGunzip } from 'zlib';
export { createGzip, createGunzip } from "zlib";

export function passThrough() {
return new PassThrough;
return new PassThrough;
}

0 comments on commit f100d2f

Please sign in to comment.