JSHinting
This commit is contained in:
		
							parent
							
								
									be221aa88d
								
							
						
					
					
						commit
						65e1466508
					
				
					 4 changed files with 9 additions and 14 deletions
				
			
		
							
								
								
									
										12
									
								
								.jshintrc
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								.jshintrc
									
										
									
									
									
								
							|  | @ -19,14 +19,8 @@ | ||||||
|     "dojo"          : false, |     "dojo"          : false, | ||||||
| 
 | 
 | ||||||
|     "predef"        : [ |     "predef"        : [ | ||||||
| //        "define", |         "suite", | ||||||
| //        "suite", |         "test" | ||||||
| //        "test", |  | ||||||
| //        "teardown", |  | ||||||
| //        "setup", |  | ||||||
| //        "sinon", |  | ||||||
| //        "mocha", |  | ||||||
| //        "requirejs" |  | ||||||
|     ], |     ], | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -38,7 +32,7 @@ | ||||||
|     // ECMAScript 5. |     // ECMAScript 5. | ||||||
|     "es5"           : true,   // Allow ECMAScript 5 syntax. |     "es5"           : true,   // Allow ECMAScript 5 syntax. | ||||||
|     "strict"        : true,  // Require `use strict` pragma  in every file. |     "strict"        : true,  // Require `use strict` pragma  in every file. | ||||||
|     "globalstrict"  : true,  // Allow global "use strict" (also enables 'strict'). |     "globalstrict"  : false,  // Allow global "use strict" (also enables 'strict'). | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     // The Good Parts. |     // The Good Parts. | ||||||
|  |  | ||||||
|  | @ -46,8 +46,8 @@ | ||||||
|         /* |         /* | ||||||
|          * Minuten: Objekt im folgenden Format: |          * Minuten: Objekt im folgenden Format: | ||||||
|          * { |          * { | ||||||
|          * 	<minuten>: <array-or-object>, |          *     <minuten>: <array-or-object>, | ||||||
|          * 	... |          *     ... | ||||||
|          * } |          * } | ||||||
|          * <minuten>: String von Komma-separierten Minutenwerten, zu welchem die in <array-or-object> angegebenen Buchstaben aktiv sein sollen |          * <minuten>: String von Komma-separierten Minutenwerten, zu welchem die in <array-or-object> angegebenen Buchstaben aktiv sein sollen | ||||||
|          * <array-or-object> : [ <object>, ...] | <object> |          * <array-or-object> : [ <object>, ...] | <object> | ||||||
|  | @ -56,8 +56,8 @@ | ||||||
|          * <spalte>: Die Spalte, in der ein einzelner Buchstabe liegt; von links gezählt, links ist 1. |          * <spalte>: Die Spalte, in der ein einzelner Buchstabe liegt; von links gezählt, links ist 1. | ||||||
|          * Beispiel: |          * Beispiel: | ||||||
|          * "minutes": { |          * "minutes": { | ||||||
|          * 	"0,1": {1: [6, 7, 9]}, |          *     "0,1": {1: [6, 7, 9]}, | ||||||
|          * 	"5": [ {3: [1, 2]}, {4: [10, 11]} ] |          *     "5": [ {3: [1, 2]}, {4: [10, 11]} ] | ||||||
|          * } |          * } | ||||||
|          * Erklärung: |          * Erklärung: | ||||||
|          * Bei Minuten 0 und 1 sind die Buchstaben 6, 7 und 9 der ersten Zeile aktiv. |          * Bei Minuten 0 und 1 sind die Buchstaben 6, 7 und 9 der ersten Zeile aktiv. | ||||||
|  |  | ||||||
|  | @ -53,7 +53,7 @@ | ||||||
|     // public interface methods (exported later)
 |     // public interface methods (exported later)
 | ||||||
|     var start = function start() { |     var start = function start() { | ||||||
|         if (!isOn.bind(this)()) { |         if (!isOn.bind(this)()) { | ||||||
|             this.timer = window.setInterval(function uhrTimer() { |             this.timer = window.setInterval(function () { | ||||||
|                 this.options.time = new Date(); |                 this.options.time = new Date(); | ||||||
|                 update.bind(this)(); |                 update.bind(this)(); | ||||||
|             }.bind(this), 1000); |             }.bind(this), 1000); | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  * Created by u203395 on 04.07.2014. |  * Created by u203395 on 04.07.2014. | ||||||
|  */ |  */ | ||||||
| suite('Bärneruhr', function () { | suite('Bärneruhr', function () { | ||||||
|  |     "use strict"; | ||||||
|     test('dummy', function () { |     test('dummy', function () { | ||||||
|     }); |     }); | ||||||
| }); | }); | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue