From 5771552408898a3c33a7432a207fcfa51ad5f5df Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:43:49 +1000 Subject: Set eslint env properly --- scripts/changelog.js | 2 -- scripts/license.js | 2 -- scripts/openapi.js | 2 -- scripts/rights.js | 2 -- scripts/schema.js | 2 -- scripts/syncronise.js | 2 -- 6 files changed, 12 deletions(-) (limited to 'scripts') diff --git a/scripts/changelog.js b/scripts/changelog.js index f6329a46..658193ba 100644 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -26,8 +26,6 @@ This grabs the new changelog from `spacebarchat/server/assets/changelog.txt` */ -/* eslint-env node */ - const fetch = require("node-fetch"); const fs = require("fs/promises"); const path = require("path"); diff --git a/scripts/license.js b/scripts/license.js index d36165bb..b12080dd 100644 --- a/scripts/license.js +++ b/scripts/license.js @@ -5,8 +5,6 @@ Does not prepend is file contains @fc-license-skip */ -/* eslint-env node */ - const Path = require("path"); const fs = require("fs"); const walk = require("./util/walk"); diff --git a/scripts/openapi.js b/scripts/openapi.js index b5001829..49d5dfde 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js @@ -16,8 +16,6 @@ along with this program. If not, see . */ -/* eslint-env node */ - require("module-alias/register"); const getRouteDescriptions = require("./util/getRouteDescriptions"); const path = require("path"); diff --git a/scripts/rights.js b/scripts/rights.js index 148570eb..bf79ef79 100644 --- a/scripts/rights.js +++ b/scripts/rights.js @@ -20,8 +20,6 @@ Calculates a discord.com-like rights value. */ -/* eslint-env node */ - require("module-alias/register"); const { Rights } = require(".."); diff --git a/scripts/schema.js b/scripts/schema.js index 2a19ea26..c29d5bab 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -20,8 +20,6 @@ Regenerates the `spacebarchat/server/assets/schemas.json` file, used for API/Gateway input validation. */ -/* eslint-env node */ - const path = require("path"); const fs = require("fs"); const TJS = require("typescript-json-schema"); diff --git a/scripts/syncronise.js b/scripts/syncronise.js index 5f6987c3..34cd0ddd 100644 --- a/scripts/syncronise.js +++ b/scripts/syncronise.js @@ -25,8 +25,6 @@ it doesn't break the below, thus we're left with this :sob: */ -/* eslint-env node */ - require("module-alias/register"); require("dotenv").config(); const { initDatabase } = require(".."); -- cgit 1.4.1