Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'CLIMATE-945' of https://github.com/MichaelArthurAnderso…
Browse files Browse the repository at this point in the history
  • Loading branch information
lewismc committed Jan 17, 2018
2 parents d4d2eab + ac52e38 commit 3be7da8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
17 changes: 17 additions & 0 deletions ocw-ui/frontend/.jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"disallowTrailingWhitespace": true,
"disallowUnusedParams": true,
"disallowUnusedVariables": true,
"requireCapitalizedComments": true,
"requireCurlyBraces": true,
"requireDotNotation": true,
"requireLineFeedAtFileEnd": true,
"requireSemicolons": true,
"requireSpaceAfterComma": true,
"requireSpaceAfterLineComment": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInConditionalExpression": true,
"requireTemplateStrings": true,
"requireYodaConditions": true,
"validateQuoteMarks": "'"
}
9 changes: 9 additions & 0 deletions ocw-ui/frontend/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ module.exports = function (grunt) {
}
},

// Supplements jshint with a focus on style.
jscs: {
src: '<%= yeoman.app %>/scripts/{,*/}*.js',
options: {
config: ".jscsrc",
fix: false
}
},
// Empties folders to start fresh
clean: {
dist: {
Expand Down Expand Up @@ -408,6 +416,7 @@ module.exports = function (grunt) {

grunt.registerTask('default', [
'newer:jshint',
'jscs',
'test',
'build'
]);
Expand Down
2 changes: 1 addition & 1 deletion ocw-ui/frontend/app/views/modelselect.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</div>
<div class="control-group">
<label class="control-label" for="lonSelect">Longitude Variable</label>
<div class"controls">
<div class="controls">
<select id="lonSelect">
<option ng-repeat="lon in lonVariables">
{{lon.text}}
Expand Down
2 changes: 2 additions & 0 deletions ocw-ui/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"generator-angular": "^0.9.5",
"generator-karma": "^0.8.3",
"grunt": "^0.4.1",
"grunt-jscs": "^3.0.1",
"grunt-autoprefixer": "^0.7.3",
"grunt-cli": "^0.1.13",
"grunt-concurrent": "^0.5.0",
Expand All @@ -32,6 +33,7 @@
"grunt-google-cdn": "^0.4.0",
"grunt-karma": "^0.12.2",
"grunt-newer": "^0.7.0",
"grunt-ngmin": "^0.0.3",
"grunt-ng-annotate": "^0.1.0",
"grunt-svgmin": "^0.4.0",
"grunt-usemin": "^2.1.1",
Expand Down

0 comments on commit 3be7da8

Please sign in to comment.