Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
Set default config file to .jsrsc
Browse files Browse the repository at this point in the history
As of jscs@1.3.0, the config file is no longer .jscs.json.
  • Loading branch information
Gustavo Henke committed Feb 25, 2014
1 parent 886d5c6 commit 0f1ac1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Any specified option will be passed through directly to JSCS, plust this plugin

#### config
Type: `String`
Default value: `.jscs.json`
Default value: `.jscsrc`

The path to the jscs configuration file.

Expand Down
2 changes: 1 addition & 1 deletion tasks/lib/jscs.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports.init = function( grunt ) {
* @return {Object}
*/
JSCS.prototype.findConfig = function() {
var configPath = this.options && this.options.config || ".jscs.json";
var configPath = this.options && this.options.config || ".jscsrc";

if ( !grunt.file.isPathAbsolute( configPath ) ) {
configPath = path.join( process.cwd(), configPath );
Expand Down

0 comments on commit 0f1ac1a

Please sign in to comment.