bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/jsdoc.js
function getEnvsListForTemplate(){
		var envsList = [];
		var keys = Object.keys(allEnvs).sort();
		for(var j = 0; j < keys.length; j++) {
			var key = keys[j];
			if(key !== 'builtin'){
				envsList.push(key);
			}
		}
		var templateList = {
			type: "link", //$NON-NLS-0$
			values: envsList,
			title: 'ESLint Environments',
			style: 'no_emphasis' //$NON-NLS-1$
		};
		return JSON.stringify(templateList).replace("}", "\\}");
	}
function getEnvsListForTemplate(){
		var envsList = [];
		var keys = Object.keys(allEnvs).sort();
		for(var j = 0; j < keys.length; j++) {
			var key = keys[j];
			if(key !== 'builtin'){
				envsList.push(key);
			}
		}
		var templateList = {
			type: "link", //$NON-NLS-0$
			values: envsList,
			title: 'ESLint Environments',
			style: 'no_emphasis' //$NON-NLS-1$
		};
		return JSON.stringify(templateList).replace("}", "\\}");
	}
function getEnvsListForTemplate ( ) { var envsList = [ ] ; var keys = Object . keys ( allEnvs ) . sort ( ) ; for ( var j = 0 ; j < keys . length ; j ++ ) { var key = keys [ j ] ; if ( key !== 'builtin' ) { envsList . push ( key ) ; } } var templateList = { type : "link" , //$NON-NLS-0$
 values : envsList , title : 'ESLint Environments' , style : 'no_emphasis' //$NON-NLS-1$
 } ; return JSON . stringify ( templateList ) . replace ( "}" , "\\}" ) ; }
Takes the allEnvs object, extracts the envs list and formats it into a JSON string that the template
computer will accept.
@returns {String} A string list of eslint environment directives that the template computer will accept
Takes the allEnvs object extracts the envs list and formats it into a JSON string that the template computer will accept .