1
0
Fork 0

Remove "public" explicit accessibility

pull/4/head
Jonathan Clem 2019-05-21 15:23:21 -04:00
parent 140d6cd367
commit 8cdf51d182
No known key found for this signature in database
GPG Key ID: 3C201F0BBD6B3B77
2 changed files with 7 additions and 6 deletions

View File

@ -10,11 +10,12 @@
"no-unused-vars": "off", "no-unused-vars": "off",
"eslint-comments/no-use": "off", "eslint-comments/no-use": "off",
"import/no-namespace": "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": { "env": {
"node": true, "node": true,
"es6": true, "es6": true,
"jest/globals": true "jest/globals": true
} }
} }

View File

@ -42,11 +42,11 @@ class Command {
this.message = message this.message = message
} }
public command: string command: string
public message: string message: string
public properties: {[key: string]: string} properties: {[key: string]: string}
public toString() { toString() {
let cmdStr = CMD_PREFIX + this.command let cmdStr = CMD_PREFIX + this.command
if (this.properties && Object.keys(this.properties).length > 0) { if (this.properties && Object.keys(this.properties).length > 0) {