Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Feature: Can select type of lint message #50

Merged
merged 2 commits into from
May 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions lib/linter-jscs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down