From 7c4874fe5d2e73559dbf5cdae1a5b2d5113a723e Mon Sep 17 00:00:00 2001 From: Splines Date: Thu, 4 Jan 2024 19:02:23 +0100 Subject: [PATCH] Fix ESLint code violations --- .mocharc.js | 10 +++++----- lib/postprocess.js | 2 +- tests/postprocess.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.mocharc.js b/.mocharc.js index c006647..ab925f6 100644 --- a/.mocharc.js +++ b/.mocharc.js @@ -1,6 +1,6 @@ module.exports = { - "spec": "tests/**/*.js", - "ignore": [ - "tests/fixtures/**" - ], -} \ No newline at end of file + spec: "tests/**/*.js", + ignore: [ + "tests/fixtures/**", + ], +}; diff --git a/lib/postprocess.js b/lib/postprocess.js index 4228ce4..0c27770 100644 --- a/lib/postprocess.js +++ b/lib/postprocess.js @@ -1,5 +1,5 @@ const cache = require("./cache.js"); -const { coordinatesToIndex, indexToColumn } = require("./file_coordinates.js"); +const { coordinatesToIndex } = require("./file_coordinates.js"); const { calculateOffset } = require("./offset_calculation.js"); const { transformFix } = require("./autofix.js"); diff --git a/tests/postprocess.js b/tests/postprocess.js index 0484cbf..a586441 100644 --- a/tests/postprocess.js +++ b/tests/postprocess.js @@ -7,7 +7,7 @@ const cache = require("../lib/cache.js"); describe("postprocess", () => { it("deletes file from cache after postprocessing", () => { - const text = `console.log("Hello world!");`; + const text = 'console.log("Hello world!");'; const name = "testfile.js"; pre(text, name);