Skip to content

Commit

Permalink
Invert default disable_if_not_dependency setting (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
danreeves authored Nov 13, 2017
1 parent 50dcf2a commit e385312
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Standard(NodeLinter):
npm_name = 'standard'
defaults = {
'enable_if_dependency': True,
'disable_if_not_dependency': True
'disable_if_not_dependency': False
}

def run(self, cmd, code):
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"3.0.1": "messages/3.0.1.txt",
"3.1.0": "messages/3.1.0.txt",
"3.1.1": "messages/3.1.1.txt",
"3.1.2": "messages/3.1.2.txt"
"3.1.2": "messages/3.1.2.txt",
"3.1.3": "messages/3.1.3.txt"
}
13 changes: 13 additions & 0 deletions messages/3.1.3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SublimeLinter-contrib-standard
-------------------------------

3.1.3

- Remove the default setting to disable the linter if standard is not a project
dependency.

If you would like to only lint projects where standard is a dependency there
is a new setting "disable_if_not_dependency" which you can set to true.

For more information about SublimeLinter settings see the docs:
http://www.sublimelinter.com/en/latest/settings.html

1 comment on commit e385312

@bfulop
Copy link

@bfulop bfulop commented on e385312 Nov 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for inverting the setting, I didn't understand at first why suddenly linting was not working (with the previous defaults)!

Please sign in to comment.