From 8cdf51d18234441906c40ac779495b89687f5ff0 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Tue, 21 May 2019 15:23:21 -0400 Subject: [PATCH] Remove "public" explicit accessibility --- .eslintrc.json | 5 +++-- packages/core/src/command.ts | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index db3c608d..241986aa 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,11 +10,12 @@ "no-unused-vars": "off", "eslint-comments/no-use": "off", "import/no-namespace": "off", - "@typescript-eslint/no-unused-vars": "error" + "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}] }, "env": { "node": true, "es6": true, "jest/globals": true } -} \ No newline at end of file +} diff --git a/packages/core/src/command.ts b/packages/core/src/command.ts index a3d241b6..41724d37 100644 --- a/packages/core/src/command.ts +++ b/packages/core/src/command.ts @@ -42,11 +42,11 @@ class Command { this.message = message } - public command: string - public message: string - public properties: {[key: string]: string} + command: string + message: string + properties: {[key: string]: string} - public toString() { + toString() { let cmdStr = CMD_PREFIX + this.command if (this.properties && Object.keys(this.properties).length > 0) {