mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
refactor: use eslint-config-neon for packages. (#8579)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
export type Access = 'public' | 'private' | 'protected';
|
||||
export type Access = 'private' | 'protected' | 'public';
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import type { Constructor, Event, Member, Method } from './index.js';
|
||||
|
||||
export type ChildTypes = Constructor | Member | Method | Event;
|
||||
export type ChildTypes = Constructor | Event | Member | Method;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import type { Access, Item, Meta, Scope } from './index.js';
|
||||
|
||||
export interface Class extends Item {
|
||||
kind: 'class';
|
||||
scope: Scope;
|
||||
implements?: string[];
|
||||
augments?: string[];
|
||||
see?: string[];
|
||||
access?: Access;
|
||||
virtual?: boolean;
|
||||
augments?: string[];
|
||||
deprecated?: boolean | string;
|
||||
implements?: string[];
|
||||
kind: 'class';
|
||||
meta: Meta;
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
virtual?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export interface Config {
|
||||
input: string[];
|
||||
custom: string;
|
||||
root: string;
|
||||
input: string[];
|
||||
output: string;
|
||||
root: string;
|
||||
typescript: boolean;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { Access, Item, Param } from './index.js';
|
||||
|
||||
export interface Constructor extends Item {
|
||||
access?: Access;
|
||||
kind: 'constructor';
|
||||
memberof: string;
|
||||
see?: string[];
|
||||
access?: Access;
|
||||
params?: Param[];
|
||||
see?: string[];
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export interface CustomDocs {
|
||||
name?: string;
|
||||
files: Record<
|
||||
string,
|
||||
{
|
||||
name?: string;
|
||||
type?: string;
|
||||
content?: string;
|
||||
name?: string;
|
||||
path?: string;
|
||||
type?: string;
|
||||
}
|
||||
>;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { Item, Meta, Param, Scope } from './index.js';
|
||||
|
||||
export interface Event extends Item {
|
||||
kind: 'event';
|
||||
scope: Scope;
|
||||
memberof: string;
|
||||
see?: string[];
|
||||
deprecated?: boolean | string;
|
||||
params?: Param[];
|
||||
kind: 'event';
|
||||
memberof: string;
|
||||
meta: Meta;
|
||||
params?: Param[];
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Type } from './index.js';
|
||||
|
||||
export interface Exception {
|
||||
type: Type;
|
||||
nullable?: boolean;
|
||||
description?: string;
|
||||
nullable?: boolean;
|
||||
type: Type;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ import type { Item, Meta } from './index.js';
|
||||
|
||||
export interface External extends Item {
|
||||
kind: 'external';
|
||||
see?: string[];
|
||||
meta: Meta;
|
||||
see?: string[];
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Class } from './index.js';
|
||||
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error: Inheritance type error
|
||||
export interface Interface extends Class {
|
||||
kind: 'interface';
|
||||
classdesc: string;
|
||||
kind: 'interface';
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export interface Item {
|
||||
description: string;
|
||||
id: string;
|
||||
ignore?: boolean;
|
||||
kind: string;
|
||||
longname: string;
|
||||
name: string;
|
||||
kind: string;
|
||||
description: string;
|
||||
order: number;
|
||||
ignore?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import type { Access, Item, Meta, Param, Scope, Type } from './index.js';
|
||||
|
||||
export interface Member extends Item {
|
||||
kind: 'member';
|
||||
see?: string[];
|
||||
scope: Scope;
|
||||
memberof: string;
|
||||
type: Type;
|
||||
access?: Access;
|
||||
readonly?: boolean;
|
||||
nullable?: boolean;
|
||||
virtual?: boolean;
|
||||
deprecated?: boolean | string;
|
||||
default?: string;
|
||||
properties?: Param[];
|
||||
deprecated?: boolean | string;
|
||||
kind: 'member';
|
||||
memberof: string;
|
||||
meta: Meta;
|
||||
nullable?: boolean;
|
||||
properties?: Param[];
|
||||
readonly?: boolean;
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
type: Type;
|
||||
virtual?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface Meta {
|
||||
lineno: number;
|
||||
filename: string;
|
||||
lineno: number;
|
||||
path: string;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import type { Access, Exception, Item, Meta, Param, Return, Scope } from './index.js';
|
||||
|
||||
export interface Method extends Item {
|
||||
kind: 'function';
|
||||
see?: string[];
|
||||
scope: Scope;
|
||||
access?: Access;
|
||||
inherits?: string;
|
||||
inherited?: boolean;
|
||||
implements?: string[];
|
||||
examples?: string[];
|
||||
virtual?: boolean;
|
||||
deprecated?: boolean | string;
|
||||
memberof?: string;
|
||||
params?: Param[];
|
||||
async?: boolean;
|
||||
generator?: boolean;
|
||||
fires?: string[];
|
||||
returns?: Return[];
|
||||
deprecated?: boolean | string;
|
||||
examples?: string[];
|
||||
exceptions?: Exception[];
|
||||
fires?: string[];
|
||||
generator?: boolean;
|
||||
implements?: string[];
|
||||
inherited?: boolean;
|
||||
inherits?: string;
|
||||
kind: 'function';
|
||||
memberof?: string;
|
||||
meta: Meta;
|
||||
params?: Param[];
|
||||
returns?: Return[];
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
virtual?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { Type } from './index.js';
|
||||
|
||||
export interface Param {
|
||||
type: Type;
|
||||
defaultvalue?: string;
|
||||
description: string;
|
||||
name: string;
|
||||
optional?: boolean;
|
||||
defaultvalue?: string;
|
||||
variable?: string;
|
||||
nullable?: boolean;
|
||||
optional?: boolean;
|
||||
type: Type;
|
||||
variable?: string;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Type } from './index.js';
|
||||
|
||||
export interface Return {
|
||||
type: Required<Type>;
|
||||
nullable?: boolean;
|
||||
description?: string;
|
||||
nullable?: boolean;
|
||||
type: Required<Type>;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import type { Class, External, Interface, Method, Typedef } from './index.js';
|
||||
|
||||
export type RootTypes = Class | Method | Interface | Typedef | External;
|
||||
export type RootTypes = Class | External | Interface | Method | Typedef;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { Access, Item, Meta, Param, Return, Scope, Type } from './index.js';
|
||||
|
||||
export interface Typedef extends Item {
|
||||
kind: 'typedef';
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
access?: Access;
|
||||
deprecated?: boolean | string;
|
||||
type: Type;
|
||||
properties?: Param[];
|
||||
params?: Param[];
|
||||
returns?: Return[];
|
||||
kind: 'typedef';
|
||||
meta: Meta;
|
||||
params?: Param[];
|
||||
properties?: Param[];
|
||||
returns?: Return[];
|
||||
scope: Scope;
|
||||
see?: string[];
|
||||
type: Type;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Type } from './index.js';
|
||||
|
||||
export interface VarType extends Type {
|
||||
type?: Required<Type> | undefined;
|
||||
description?: string | undefined;
|
||||
nullable?: boolean | undefined;
|
||||
type?: Required<Type> | undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user