Compare commits

...

5 Commits

Author SHA1 Message Date
6dfc52821b [Code Style] Enforce codestyle during verify task 2016-05-12 16:27:11 -07:00
fb159f6361 [Code Style] Allow var decl after start of scope 2016-05-12 15:51:17 -07:00
111b241a15 [Code Style] Don't require separate var decls
...but allow them (for compatibility with existing code style)
2016-05-12 15:47:11 -07:00
370f90acb2 [Code Style] Require one decl per var
#142
2016-05-12 15:44:05 -07:00
630d7d938b [Code Style] Add JSHint rules
Add JSHint rules to complement allowing multiple var statements,
https://github.com/nasa/openmct/issues/142#issuecomment-212187972
2016-05-12 15:32:42 -07:00
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,5 @@
{
"preset": "crockford"
"preset": "crockford",
"requireMultipleVarDecl": false,
"requireVarDeclFirst": false
}

View File

@ -5,7 +5,7 @@
"eqeqeq": true,
"forin": true,
"freeze": true,
"funcscope": true,
"funcscope": false,
"futurehostile": true,
"latedef": true,
"noarg": true,
@ -16,6 +16,7 @@
"define",
"Promise"
],
"shadow": "inner",
"strict": "implied",
"undef": true,
"unused": "vars"

View File

@ -147,6 +147,6 @@ gulp.task('develop', ['serve', 'stylesheets', 'watch']);
gulp.task('install', [ 'static', 'scripts' ]);
gulp.task('verify', [ 'lint', 'test' ]);
gulp.task('verify', [ 'lint', 'test', 'checkstyle' ]);
gulp.task('build', [ 'verify', 'install' ]);