mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
chore: remove usage of the prefer-global rules (#11279)
This commit is contained in:
committed by
GitHub
parent
548d75258b
commit
9bf1f739e0
@@ -11,6 +11,14 @@ const config = [
|
||||
...prettier,
|
||||
{
|
||||
rules: {
|
||||
'no-restricted-globals': 0,
|
||||
'n/prefer-global/buffer': [2, 'never'],
|
||||
'n/prefer-global/console': [2, 'always'],
|
||||
'n/prefer-global/process': [2, 'never'],
|
||||
'n/prefer-global/text-decoder': [2, 'always'],
|
||||
'n/prefer-global/text-encoder': [2, 'always'],
|
||||
'n/prefer-global/url-search-params': [2, 'always'],
|
||||
'n/prefer-global/url': [2, 'always'],
|
||||
'jsdoc/check-tag-names': 0,
|
||||
'jsdoc/no-undefined-types': 0,
|
||||
'jsdoc/valid-types': 0,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { URL } from 'node:url';
|
||||
import { Events } from 'discord.js';
|
||||
import { loadCommands } from '../util/loaders.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import process from 'node:process';
|
||||
import { URL } from 'node:url';
|
||||
import { Client, GatewayIntentBits } from 'discord.js';
|
||||
import { loadEvents } from './util/loaders.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import process from 'node:process';
|
||||
import { URL } from 'node:url';
|
||||
import { API } from '@discordjs/core/http-only';
|
||||
import { REST } from 'discord.js';
|
||||
import { loadCommands } from './loaders.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { glob, stat } from 'node:fs/promises';
|
||||
import { basename, resolve } from 'node:path';
|
||||
import { fileURLToPath, URL } from 'node:url';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { predicate as commandPredicate } from '../commands/index.js';
|
||||
import { predicate as eventPredicate } from '../events/index.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user