From f100d2f7e90087e1c823e189b30f73756f98b601 Mon Sep 17 00:00:00 2001 From: sigma-andex <77549848+sigma-andex@users.noreply.github.com> Date: Tue, 22 Mar 2022 19:41:12 +0000 Subject: [PATCH] Update eslintrc (#40) * Update eslintrc * Fix eslint errors --- .eslintrc.json | 6 +++--- test/Main.js | 10 +++++----- 2 files changed, 8 insertions(+), 8 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"], 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; }