mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.2 KiB
107 lines
2.2 KiB
/**
|
|
* @fileoverview Defines environment settings and globals.
|
|
* @author Elan Shanker
|
|
*/
|
|
"use strict";
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Requirements
|
|
//------------------------------------------------------------------------------
|
|
|
|
const globals = require("globals");
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Public Interface
|
|
//------------------------------------------------------------------------------
|
|
|
|
module.exports = {
|
|
builtin: globals.es5,
|
|
browser: {
|
|
globals: globals.browser
|
|
},
|
|
node: {
|
|
globals: globals.node,
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
globalReturn: true
|
|
}
|
|
}
|
|
},
|
|
commonjs: {
|
|
globals: globals.commonjs,
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
globalReturn: true
|
|
}
|
|
}
|
|
},
|
|
"shared-node-browser": {
|
|
globals: globals["shared-node-browser"]
|
|
},
|
|
worker: {
|
|
globals: globals.worker
|
|
},
|
|
amd: {
|
|
globals: globals.amd
|
|
},
|
|
mocha: {
|
|
globals: globals.mocha
|
|
},
|
|
jasmine: {
|
|
globals: globals.jasmine
|
|
},
|
|
jest: {
|
|
globals: globals.jest
|
|
},
|
|
phantomjs: {
|
|
globals: globals.phantomjs
|
|
},
|
|
jquery: {
|
|
globals: globals.jquery
|
|
},
|
|
qunit: {
|
|
globals: globals.qunit
|
|
},
|
|
prototypejs: {
|
|
globals: globals.prototypejs
|
|
},
|
|
shelljs: {
|
|
globals: globals.shelljs
|
|
},
|
|
meteor: {
|
|
globals: globals.meteor
|
|
},
|
|
mongo: {
|
|
globals: globals.mongo
|
|
},
|
|
protractor: {
|
|
globals: globals.protractor
|
|
},
|
|
applescript: {
|
|
globals: globals.applescript
|
|
},
|
|
nashorn: {
|
|
globals: globals.nashorn
|
|
},
|
|
serviceworker: {
|
|
globals: globals.serviceworker
|
|
},
|
|
atomtest: {
|
|
globals: globals.atomtest
|
|
},
|
|
embertest: {
|
|
globals: globals.embertest
|
|
},
|
|
webextensions: {
|
|
globals: globals.webextensions
|
|
},
|
|
es6: {
|
|
globals: globals.es6,
|
|
parserOptions: {
|
|
ecmaVersion: 6
|
|
}
|
|
},
|
|
greasemonkey: {
|
|
globals: globals.greasemonkey
|
|
}
|
|
};
|
|
|