diff --git a/lib/init.coffee b/lib/init.coffee index a4a666c..8da4621 100644 --- a/lib/init.coffee +++ b/lib/init.coffee @@ -22,6 +22,11 @@ module.exports = type: 'boolean' default: false description: 'Disable linter if there is no config file found for the linter.' + messageType: + type: 'string' + default: 'info' + enum: ['info', 'warning', 'error'] + description: 'Setup type of message (info(blue), warning(yellow), error(red)).' activate: -> console.log 'activate linter-jscs' diff --git a/lib/linter-jscs.coffee b/lib/linter-jscs.coffee index 57d7829..b76d840 100644 --- a/lib/linter-jscs.coffee +++ b/lib/linter-jscs.coffee @@ -27,6 +27,9 @@ class LinterJscs extends Linter # A string to indicate using jscs config config: '' + # A string to setup type of message (don't understand why default isn't work) + defaultLevel: atom.config.get 'linter-jscs.messageType' or 'info' + isNodeExecutable: yes options: ['executablePath', 'preset', 'harmony', 'verbose', 'onlyConfig']