mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
chore: migrate eslint configs (#11234)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/eslintrc.json",
|
||||
"root": true,
|
||||
"extends": ["neon/common", "neon/node", "neon/prettier"],
|
||||
"rules": {
|
||||
"jsdoc/valid-types": 0,
|
||||
"jsdoc/check-tag-names": 0,
|
||||
"jsdoc/no-undefined-types": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import common from 'eslint-config-neon/common';
|
||||
import node from 'eslint-config-neon/node';
|
||||
import prettier from 'eslint-config-neon/prettier';
|
||||
|
||||
const config = [
|
||||
{
|
||||
ignores: [],
|
||||
},
|
||||
...common,
|
||||
...node,
|
||||
...prettier,
|
||||
{
|
||||
rules: {
|
||||
'jsdoc/check-tag-names': 0,
|
||||
'jsdoc/no-undefined-types': 0,
|
||||
'jsdoc/valid-types': 0,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default config;
|
||||
@@ -1,3 +1,4 @@
|
||||
import { URL } from 'node:url';
|
||||
import { Events } from 'discord.js';
|
||||
import { loadCommands } from '../util/loaders.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { glob, stat } from 'node:fs/promises';
|
||||
import { fileURLToPath, resolve, URL } from 'node:url';
|
||||
import { resolve } from 'node:path';
|
||||
import { fileURLToPath, URL } 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