diff --git a/.eslintrc b/.eslintrc index 00ce9892..40eac134 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,5 +7,8 @@ "no-mixed-spaces-and-tabs": "off", "@typescript-eslint/no-inferrable-types": "off", // Required by typeorm "@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps + }, + "env": { + "node": true } } 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("..");