mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-21 18:02:33 +01:00
Set eslint env properly
This commit is contained in:
parent
3f4344a610
commit
5771552408
@ -7,5 +7,8 @@
|
|||||||
"no-mixed-spaces-and-tabs": "off",
|
"no-mixed-spaces-and-tabs": "off",
|
||||||
"@typescript-eslint/no-inferrable-types": "off", // Required by typeorm
|
"@typescript-eslint/no-inferrable-types": "off", // Required by typeorm
|
||||||
"@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps
|
"@typescript-eslint/no-var-requires": "off" // Sometimes requred by typeorm to resolve circular deps
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
This grabs the new changelog from `spacebarchat/server/assets/changelog.txt`
|
This grabs the new changelog from `spacebarchat/server/assets/changelog.txt`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
const fetch = require("node-fetch");
|
const fetch = require("node-fetch");
|
||||||
const fs = require("fs/promises");
|
const fs = require("fs/promises");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
Does not prepend is file contains @fc-license-skip
|
Does not prepend is file contains @fc-license-skip
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
const Path = require("path");
|
const Path = require("path");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const walk = require("./util/walk");
|
const walk = require("./util/walk");
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
require("module-alias/register");
|
require("module-alias/register");
|
||||||
const getRouteDescriptions = require("./util/getRouteDescriptions");
|
const getRouteDescriptions = require("./util/getRouteDescriptions");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
Calculates a discord.com-like rights value.
|
Calculates a discord.com-like rights value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
require("module-alias/register");
|
require("module-alias/register");
|
||||||
const { Rights } = require("..");
|
const { Rights } = require("..");
|
||||||
|
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
Regenerates the `spacebarchat/server/assets/schemas.json` file, used for API/Gateway input validation.
|
Regenerates the `spacebarchat/server/assets/schemas.json` file, used for API/Gateway input validation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const TJS = require("typescript-json-schema");
|
const TJS = require("typescript-json-schema");
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
it doesn't break the below, thus we're left with this :sob:
|
it doesn't break the below, thus we're left with this :sob:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-env node */
|
|
||||||
|
|
||||||
require("module-alias/register");
|
require("module-alias/register");
|
||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
const { initDatabase } = require("..");
|
const { initDatabase } = require("..");
|
||||||
|
Loading…
Reference in New Issue
Block a user