File tree Expand file tree Collapse file tree 12 files changed +33
-27
lines changed
Expand file tree Collapse file tree 12 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 1+ // This is a workaround for https://github.com/eslint/eslint/issues/3458
2+ require ( "@rushstack/eslint-config/patch-eslint6" ) ;
3+
4+ module . exports = {
5+ extends : [ "@rushstack/eslint-config" ] ,
6+ parserOptions : { tsconfigRootDir : __dirname } ,
7+
8+ rules : {
9+ // api-extractor-model uses namespaces to represent mixins
10+ "@typescript-eslint/no-namespace" : "off"
11+ }
12+ } ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export interface IApiDeclaredItemJson extends IApiDocumentedItemJson {
3131 *
3232 * @public
3333 */
34- // tslint: disable-next-line: interface-name
34+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
3535export class ApiDeclaredItem extends ApiDocumentedItem {
3636 private _excerptTokens : ExcerptToken [ ] ;
3737 private _excerpt : Excerpt ;
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ export interface IApiItemJson {
5252
5353// PRIVATE - Allows ApiItemContainerMixin to assign the parent.
5454//
55- // tslint:disable-next-line:variable-name
56- export const ApiItem_onParentChanged : unique symbol = Symbol ( 'ApiItem._onAddToContainer' ) ;
55+ export const apiItem_onParentChanged : unique symbol = Symbol ( 'ApiItem._onAddToContainer' ) ;
5756
5857/**
5958 * The abstract base class for all members of an `ApiModel` object.
@@ -70,6 +69,7 @@ export class ApiItem {
7069 public static deserialize ( jsonObject : IApiItemJson , context : DeserializerContext ) : ApiItem {
7170 // The Deserializer class is coupled with a ton of other classes, so we delay loading it
7271 // to avoid ES5 circular imports.
72+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7373 const deserializerModule : typeof import ( '../model/Deserializer' ) = require ( '../model/Deserializer' ) ;
7474 return deserializerModule . Deserializer . deserialize ( context , jsonObject ) ;
7575 }
@@ -268,7 +268,7 @@ export class ApiItem {
268268 *
269269 * @internal
270270 */
271- public [ ApiItem_onParentChanged ] ( parent : ApiItem | undefined ) : void {
271+ public [ apiItem_onParentChanged ] ( parent : ApiItem | undefined ) : void {
272272 this . _parent = parent ;
273273 this . _canonicalReference = undefined ;
274274 }
Original file line number Diff line number Diff line change 33
44import {
55 ApiItem ,
6- ApiItem_onParentChanged ,
6+ apiItem_onParentChanged ,
77 IApiItemJson ,
88 IApiItemOptions ,
99 IApiItemConstructor ,
@@ -51,7 +51,7 @@ const _membersByKind: unique symbol = Symbol('ApiItemContainerMixin._membersByKi
5151 *
5252 * @public
5353 */
54- // tslint: disable-next-line: interface-name
54+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
5555export interface ApiItemContainerMixin extends ApiItem {
5656 /**
5757 * Returns the members of this container, sorted alphabetically.
@@ -129,7 +129,7 @@ export function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(ba
129129 }
130130
131131 // eslint-disable-next-line @typescript-eslint/no-explicit-any
132- constructor ( ...args : any [ ] ) {
132+ public constructor ( ...args : any [ ] ) {
133133 super ( ...args ) ;
134134 const options : IApiItemContainerMixinOptions = args [ 0 ] as IApiItemContainerMixinOptions ;
135135
@@ -168,7 +168,7 @@ export function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(ba
168168 this [ _membersSorted ] = false ;
169169 this [ _membersByContainerKey ] . set ( member . containerKey , member ) ;
170170
171- member [ ApiItem_onParentChanged ] ( this ) ;
171+ member [ apiItem_onParentChanged ] ( this ) ;
172172 }
173173
174174 public tryGetMemberByKey ( containerKey : string ) : ApiItem | undefined {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const _name: unique symbol = Symbol('ApiNameMixin._name');
3434 *
3535 * @public
3636 */
37- // tslint: disable-next-line: interface-name
37+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
3838export interface ApiNameMixin extends ApiItem {
3939 /**
4040 * The exported name of this API item.
@@ -72,7 +72,7 @@ export function ApiNameMixin<TBaseClass extends IApiItemConstructor>(baseClass:
7272 }
7373
7474 // eslint-disable-next-line @typescript-eslint/no-explicit-any
75- constructor ( ...args : any [ ] ) {
75+ public constructor ( ...args : any [ ] ) {
7676 super ( ...args ) ;
7777
7878 const options : IApiNameMixinOptions = args [ 0 ] ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const _parameters: unique symbol = Symbol('ApiParameterListMixin._parameters');
4949 *
5050 * @public
5151 */
52- // tslint: disable-next-line: interface-name
52+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
5353export interface ApiParameterListMixin extends ApiItem {
5454 /**
5555 * When a function has multiple overloaded declarations, this zero-based integer index can be used to unqiuely
@@ -114,7 +114,7 @@ export function ApiParameterListMixin<TBaseClass extends IApiItemConstructor>(ba
114114 }
115115
116116 // eslint-disable-next-line @typescript-eslint/no-explicit-any
117- constructor ( ...args : any [ ] ) {
117+ public constructor ( ...args : any [ ] ) {
118118 super ( ...args ) ;
119119
120120 const options : IApiParameterListMixinOptions = args [ 0 ] ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const _releaseTag: unique symbol = Symbol('ApiReleaseTagMixin._releaseTag');
3535 *
3636 * @public
3737 */
38- // tslint: disable-next-line: interface-name
38+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
3939export interface ApiReleaseTagMixin extends ApiItem {
4040 /**
4141 * The effective release tag for this declaration. If it is not explicitly specified, the value may be
@@ -79,7 +79,7 @@ export function ApiReleaseTagMixin<TBaseClass extends IApiItemConstructor>(baseC
7979 }
8080
8181 // eslint-disable-next-line @typescript-eslint/no-explicit-any
82- constructor ( ...args : any [ ] ) {
82+ public constructor ( ...args : any [ ] ) {
8383 super ( ...args ) ;
8484
8585 const options : IApiReleaseTagMixinOptions = args [ 0 ] ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const _returnTypeExcerpt: unique symbol = Symbol('ApiReturnTypeMixin._returnType
3636 *
3737 * @public
3838 */
39- // tslint: disable-next-line: interface-name
39+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
4040export interface ApiReturnTypeMixin extends ApiItem {
4141 /**
4242 * An {@link Excerpt} that describes the type of the function's return value.
@@ -71,7 +71,7 @@ export function ApiReturnTypeMixin<TBaseClass extends IApiItemConstructor>(baseC
7171 }
7272
7373 // eslint-disable-next-line @typescript-eslint/no-explicit-any
74- constructor ( ...args : any [ ] ) {
74+ public constructor ( ...args : any [ ] ) {
7575 super ( ...args ) ;
7676
7777 const options : IApiReturnTypeMixinOptions = args [ 0 ] ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const _isStatic: unique symbol = Symbol('ApiStaticMixin._isStatic');
3333 *
3434 * @public
3535 */
36- // tslint: disable-next-line: interface-name
36+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
3737export interface ApiStaticMixin extends ApiItem {
3838 /**
3939 * Whether the declaration has the TypeScript `static` keyword.
@@ -68,7 +68,7 @@ export function ApiStaticMixin<TBaseClass extends IApiItemConstructor>(baseClass
6868 }
6969
7070 // eslint-disable-next-line @typescript-eslint/no-explicit-any
71- constructor ( ...args : any [ ] ) {
71+ public constructor ( ...args : any [ ] ) {
7272 super ( ...args ) ;
7373
7474 const options : IApiStaticMixinOptions = args [ 0 ] ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const _typeParameters: unique symbol = Symbol('ApiTypeParameterListMixin._typePa
4747 *
4848 * @public
4949 */
50- // tslint: disable-next-line: interface-name
50+ // eslint- disable-next-line @typescript-eslint/ interface-name-prefix
5151export interface ApiTypeParameterListMixin extends ApiItem {
5252 /**
5353 * The type parameters.
@@ -82,7 +82,7 @@ export function ApiTypeParameterListMixin<TBaseClass extends IApiItemConstructor
8282 }
8383
8484 // eslint-disable-next-line @typescript-eslint/no-explicit-any
85- constructor ( ...args : any [ ] ) {
85+ public constructor ( ...args : any [ ] ) {
8686 super ( ...args ) ;
8787
8888 const options : IApiTypeParameterListMixinOptions = args [ 0 ] ;
You can’t perform that action at this time.
0 commit comments