bundles/org.eclipse.orion.client.javascript/web/eslint/lib/config/config-ops.js
function(env) {

			var envConfig = this.createEmptyConfig();

			if (env) {

				envConfig.env = env;

				Object.keys(env).filter(function(name) {
					return env[name];
				}).forEach(function(name) {
					var environment = Environments.name;

					if (environment) {
						if (environment.globals) {
							assign(envConfig.globals, environment.globals);
						}

						if (environment.parserOptions) {
							assign(envConfig.parserOptions, environment.parserOptions);
						}
					}
				});
			}

			return envConfig;
		}
function(env) {

			var envConfig = this.createEmptyConfig();

			if (env) {

				envConfig.env = env;

				Object.keys(env).filter(function(name) {
					return env[name];
				}).forEach(function(name) {
					var environment = Environments.name;

					if (environment) {
						if (environment.globals) {
							assign(envConfig.globals, environment.globals);
						}

						if (environment.parserOptions) {
							assign(envConfig.parserOptions, environment.parserOptions);
						}
					}
				});
			}

			return envConfig;
		}
function ( env ) { var envConfig = this . createEmptyConfig ( ) ; if ( env ) { envConfig . env = env ; Object . keys ( env ) . filter ( function ( name ) { return env [ name ] ; } ) . forEach ( function ( name ) { var environment = Environments . name ; if ( environment ) { if ( environment . globals ) { assign ( envConfig . globals , environment . globals ) ; } if ( environment . parserOptions ) { assign ( envConfig . parserOptions , environment . parserOptions ) ; } } } ) ; } return envConfig ; }
Creates an environment config based on the specified environments.
@param {Object<string,boolean>} env The environment settings.
@returns {Object} A configuration object with the appropriate rules and globals
set.
Creates an environment config based on the specified environments .