forked from Yoast/wordpress-seo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Yoast#74 from Yoast/stories/at/codestyle
Fix jshint & jscs codestyle
- Loading branch information
Showing
24 changed files
with
1,120 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"preset": "jquery" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
module.exports = function(grunt) { | ||
'use strict'; | ||
module.exports = function( grunt ) { | ||
"use strict"; | ||
|
||
//require('time-grunt')(grunt); | ||
//require('time-grunt')(grunt); | ||
|
||
// Define project configuration | ||
var project = { | ||
paths: { | ||
grunt: 'grunt/', | ||
js: 'js/', | ||
css: 'css/', | ||
// Define project configuration | ||
var project = { | ||
paths: { | ||
grunt: "grunt/", | ||
js: "js/", | ||
css: "css/", | ||
get config() { | ||
return this.grunt + 'config/'; | ||
return this.grunt + "config/"; | ||
} | ||
}, | ||
files: { | ||
js: [ | ||
'js/*.js', | ||
'!js/*.min.js', | ||
'spec/*.js', | ||
'!spec/*.min.js' | ||
], | ||
get config() { | ||
return project.paths.config + '*.js'; | ||
}, | ||
grunt: 'Gruntfile.js' | ||
}, | ||
pkg: grunt.file.readJSON( 'package.json' ) | ||
}; | ||
}, | ||
files: { | ||
js: [ | ||
"js/*.js", | ||
"!js/*.min.js" | ||
], | ||
get config() { | ||
return project.paths.config + "*.js"; | ||
}, | ||
grunt: "Gruntfile.js" | ||
}, | ||
pkg: grunt.file.readJSON( "package.json" ) | ||
}; | ||
|
||
// Load Grunt configurations and tasks | ||
require( 'load-grunt-config' )(grunt, { | ||
configPath: require( 'path' ).join( process.cwd(), project.paths.config ), | ||
data: project | ||
}); | ||
}; | ||
// Load Grunt configurations and tasks | ||
require( "load-grunt-config" )( grunt, { | ||
configPath: require( "path" ).join( process.cwd(), project.paths.config ), | ||
data: project | ||
} ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ check: | |
- 'jshint' | ||
- 'jsonlint' | ||
- 'jsvalidate' | ||
- 'jscs' | ||
# Default task | ||
default: | ||
- check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
'build': ['js/dist/*.min.js', '!<%= paths.js %>/dist/yoast-seo-content-analysis.min.js'] | ||
}; | ||
"build": [ "js/dist/*.min.js", "!<%= paths.js %>/dist/yoast-seo-content-analysis.min.js" ] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.