mirror of https://github.com/sveltejs/svelte
				
				
				
			warn on unused helpers - fixes #1704
	
		
	
				
					
				
			
							parent
							
								
									9031c16905
								
							
						
					
					
						commit
						945134bc81
					
				@ -1,15 +1,32 @@
 | 
				
			||||
[{
 | 
				
			||||
	"code": "invalid-callee",
 | 
				
			||||
	"message": "'foo' is an invalid callee (should be one of this.*, refs.*, event.*, options.*, console.*, set, fire, destroy or bar). 'foo' exists on 'helpers', did you put it in the wrong place?",
 | 
				
			||||
	"pos": 18,
 | 
				
			||||
	"start": {
 | 
				
			||||
		"line": 1,
 | 
				
			||||
		"column": 18,
 | 
				
			||||
		"character": 18
 | 
				
			||||
[
 | 
				
			||||
	{
 | 
				
			||||
		"code": "invalid-callee",
 | 
				
			||||
		"message": "'foo' is an invalid callee (should be one of this.*, refs.*, event.*, options.*, console.*, set, fire, destroy or bar). 'foo' exists on 'helpers', did you put it in the wrong place?",
 | 
				
			||||
		"pos": 18,
 | 
				
			||||
		"start": {
 | 
				
			||||
			"line": 1,
 | 
				
			||||
			"column": 18,
 | 
				
			||||
			"character": 18
 | 
				
			||||
		},
 | 
				
			||||
		"end": {
 | 
				
			||||
			"line": 1,
 | 
				
			||||
			"column": 23,
 | 
				
			||||
			"character": 23
 | 
				
			||||
		}
 | 
				
			||||
	},
 | 
				
			||||
	"end": {
 | 
				
			||||
		"line": 1,
 | 
				
			||||
		"column": 23,
 | 
				
			||||
		"character": 23
 | 
				
			||||
	{
 | 
				
			||||
		"code": "unused-helper",
 | 
				
			||||
		"message": "The 'foo' helper is unused",
 | 
				
			||||
		"start": {
 | 
				
			||||
			"line": 12,
 | 
				
			||||
			"column": 3,
 | 
				
			||||
			"character": 126
 | 
				
			||||
		},
 | 
				
			||||
		"end": {
 | 
				
			||||
			"line": 14,
 | 
				
			||||
			"column": 4,
 | 
				
			||||
			"character": 156
 | 
				
			||||
		},
 | 
				
			||||
		"pos": 126
 | 
				
			||||
	}
 | 
				
			||||
}]
 | 
				
			||||
]
 | 
				
			||||
 | 
				
			||||
@ -1,8 +0,0 @@
 | 
				
			||||
[{
 | 
				
			||||
	"message": "The 'uppercase' helper is unused",
 | 
				
			||||
	"start": {
 | 
				
			||||
		"line": 4,
 | 
				
			||||
		"column": 3
 | 
				
			||||
	},
 | 
				
			||||
	"pos": 43
 | 
				
			||||
}]
 | 
				
			||||
@ -0,0 +1,15 @@
 | 
				
			||||
[{
 | 
				
			||||
	"code": "unused-helper",
 | 
				
			||||
	"message": "The 'uppercase' helper is unused",
 | 
				
			||||
	"start": {
 | 
				
			||||
		"line": 4,
 | 
				
			||||
		"column": 3,
 | 
				
			||||
		"character": 43
 | 
				
			||||
	},
 | 
				
			||||
	"end": {
 | 
				
			||||
		"line": 4,
 | 
				
			||||
		"column": 34,
 | 
				
			||||
		"character": 74
 | 
				
			||||
	},
 | 
				
			||||
	"pos": 43
 | 
				
			||||
}]
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue