refactor: use eslint-config-neon for packages. (#8579)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2022-09-01 14:50:16 -04:00
committed by GitHub
parent 4bdb0593ae
commit edadb9fe5d
219 changed files with 2608 additions and 2053 deletions

View File

@@ -1 +1 @@
export type Access = 'public' | 'private' | 'protected';
export type Access = 'private' | 'protected' | 'public';

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -1,7 +1,7 @@
export interface Config {
input: string[];
custom: string;
root: string;
input: string[];
output: string;
root: string;
typescript: boolean;
}

View File

@@ -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[];
}

View File

@@ -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;
}

View File

@@ -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[];
}

View File

@@ -1,7 +1,7 @@
import type { Type } from './index.js';
export interface Exception {
type: Type;
nullable?: boolean;
description?: string;
nullable?: boolean;
type: Type;
}

View File

@@ -2,6 +2,6 @@ import type { Item, Meta } from './index.js';
export interface External extends Item {
kind: 'external';
see?: string[];
meta: Meta;
see?: string[];
}

View File

@@ -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';
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -1,5 +1,5 @@
export interface Meta {
lineno: number;
filename: string;
lineno: number;
path: string;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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>;
}

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;
}