From 582b8d5a732a01ed1c278790c33a61ded82909e1 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Thu, 13 Mar 2014 14:42:43 -0400 Subject: [PATCH] Change the default config file to .jscsrc and bump version to 2.0.0 --- README.md | 4 ++-- linter.py | 2 +- messages.json | 3 ++- messages/2.0.0.txt | 5 +++++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 messages/2.0.0.txt diff --git a/README.md b/README.md index 39eaaf9..6bfe50c 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ To install via Package Control, do the following: ## Settings For general information on how SublimeLinter works with settings, please see [Settings](http://sublimelinter.readthedocs.org/en/latest/settings.html). For information on generic linter settings, please see [Linter Settings](http://sublimelinter.readthedocs.org/en/latest/linter_settings.html). -Since this plugin is executing `jscs` on your system, you may use `.jscs.json` files to configure its behavior. See the [jscs documentation](https://github.com/mdevils/node-jscs#configuration) for more information. +Since this plugin is executing `jscs` on your system, you may use `.jscsrc` files to configure its behavior. See the [jscs documentation](https://github.com/mdevils/node-jscs#configuration) for more information. -**Note**: Whereas `jscs` only looks in the linted file’s directory for a `.jscs.json` file, this linter plugin extends that behavior by searching the file hierarchy up to the root directory and then in the user’s home directory. +**Note**: Whereas `jscs` only looks in the linted file’s directory for a `.jscsrc` file, this linter plugin extends that behavior by searching the file hierarchy up to the root directory and then in the user’s home directory. ## Contributing If you would like to contribute enhancements or fixes, please do the following: diff --git a/linter.py b/linter.py index bfc4508..5499b3a 100644 --- a/linter.py +++ b/linter.py @@ -32,4 +32,4 @@ class Jscs(Linter): multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js' - config_file = ('--config', '.jscs.json', '~') + config_file = ('--config', '.jscsrc', '~') diff --git a/messages.json b/messages.json index 6e197e8..4085206 100644 --- a/messages.json +++ b/messages.json @@ -1,4 +1,5 @@ { "install": "messages/install.txt", - "1.0.2": "messages/1.0.2.txt" + "1.0.2": "messages/1.0.2.txt", + "2.0.0": "messages/2.0.0.txt" } diff --git a/messages/2.0.0.txt b/messages/2.0.0.txt new file mode 100644 index 0000000..f922300 --- /dev/null +++ b/messages/2.0.0.txt @@ -0,0 +1,5 @@ +SublimeLinter-jscs 2.0.0 +------------------------- +The default configuration file for `jscs` is now +`.jscsrc` instead of `.jscs.json`. Please consider +renaming this file.