From 712ee3efb122b716a6622491cc329b6dce21444a Mon Sep 17 00:00:00 2001 From: sigma-andex Date: Tue, 22 Mar 2022 19:20:50 +0000 Subject: [PATCH 1/2] Update eslintrc --- .eslintrc.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9f28578..7b219e5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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"], From 29f732ec653af2e83f3ec2f55acc54ad0e8bc8a8 Mon Sep 17 00:00:00 2001 From: sigma-andex Date: Tue, 22 Mar 2022 19:24:36 +0000 Subject: [PATCH 2/2] Fix eslint errors --- test/Main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Main.js b/test/Main.js index f105e15..d623c00 100644 --- a/test/Main.js +++ b/test/Main.js @@ -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() { @@ -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; }