Skip to content

Commit f100d2f

Browse files
authored
Update eslintrc (#40)
* Update eslintrc * Fix eslint errors
1 parent b40025a commit f100d2f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"parserOptions": {
3-
"ecmaVersion": 5
3+
"ecmaVersion": 6,
4+
"sourceType": "module"
45
},
56
"extends": "eslint:recommended",
67
"env": {
7-
"node": true,
8-
"commonjs": true
8+
"node": true
99
},
1010
"rules": {
1111
"strict": [2, "global"],

test/Main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { WritableStreamBuffer, ReadableStreamBuffer } from 'stream-buffers';
2-
import { PassThrough } from 'stream';
1+
import { WritableStreamBuffer, ReadableStreamBuffer } from "stream-buffers";
2+
import { PassThrough } from "stream";
33

44
export function writableStreamBuffer() {
55
return new WritableStreamBuffer;
66
}
77

88
export function getContentsAsString(w) {
9-
return () => w.getContentsAsString('utf8');
9+
return () => w.getContentsAsString("utf8");
1010
}
1111

1212
export function readableStreamBuffer() {
@@ -19,8 +19,8 @@ export function putImpl(str) {
1919
};
2020
}
2121

22-
export { createGzip, createGunzip } from 'zlib';
22+
export { createGzip, createGunzip } from "zlib";
2323

2424
export function passThrough() {
25-
return new PassThrough;
25+
return new PassThrough;
2626
}

0 commit comments

Comments
 (0)