Allow enum-like objects to use upper case naming

This commit is contained in:
Daniel Imms
2020-03-30 06:17:37 -07:00
parent 55190fd703
commit 8842625bb4
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -74,6 +74,9 @@ module.exports = {
{ "selector": "memberLike", "modifiers": ["private"], "format": ["camelCase"], "leadingUnderscore": "require" },
{ "selector": "memberLike", "modifiers": ["protected"], "format": ["camelCase"], "leadingUnderscore": "require" },
{ "selector": "enumMember", "format": ["UPPER_CASE"] },
// memberLike - Allow enum-like objects to use UPPER_CASE
{ "selector": "property", "modifiers": ["public"], "format": ["camelCase", "UPPER_CASE"] },
{ "selector": "method", "modifiers": ["public"], "format": ["camelCase", "UPPER_CASE"] },
// typeLike
{ "selector": "typeLike", "format": ["PascalCase"] },
{ "selector": "interface", "format": ["PascalCase"], "prefix": ["I"] },
-3
View File
@@ -6,9 +6,6 @@ import { IBufferService, ICoreService, ICoreMouseService } from 'common/services
import { EventEmitter, IEvent } from 'common/EventEmitter';
import { ICoreMouseProtocol, ICoreMouseEvent, CoreMouseEncoding, CoreMouseEventType, CoreMouseButton, CoreMouseAction } from 'common/Types';
// Disable naming convention as this file uses non-standard naming and it might be dangerous to change it
/* eslint-disable @typescript-eslint/naming-convention */
/**
* Supported default protocols.
*/