UNPKG

2.27 kBJavaScriptView Raw
1/**
2 * @fileoverview Defines environment settings and globals.
3 * @author Elan Shanker
4 */
5"use strict";
6
7//------------------------------------------------------------------------------
8// Requirements
9//------------------------------------------------------------------------------
10
11const globals = require("globals");
12
13//------------------------------------------------------------------------------
14// Public Interface
15//------------------------------------------------------------------------------
16
17module.exports = {
18 builtin: globals.es5,
19 browser: {
20 globals: globals.browser
21 },
22 node: {
23 globals: globals.node,
24 parserOptions: {
25 ecmaFeatures: {
26 globalReturn: true
27 }
28 }
29 },
30 commonjs: {
31 globals: globals.commonjs,
32 parserOptions: {
33 ecmaFeatures: {
34 globalReturn: true
35 }
36 }
37 },
38 "shared-node-browser": {
39 globals: globals["shared-node-browser"]
40 },
41 worker: {
42 globals: globals.worker
43 },
44 amd: {
45 globals: globals.amd
46 },
47 mocha: {
48 globals: globals.mocha
49 },
50 jasmine: {
51 globals: globals.jasmine
52 },
53 jest: {
54 globals: globals.jest
55 },
56 phantomjs: {
57 globals: globals.phantomjs
58 },
59 jquery: {
60 globals: globals.jquery
61 },
62 qunit: {
63 globals: globals.qunit
64 },
65 prototypejs: {
66 globals: globals.prototypejs
67 },
68 shelljs: {
69 globals: globals.shelljs
70 },
71 meteor: {
72 globals: globals.meteor
73 },
74 mongo: {
75 globals: globals.mongo
76 },
77 protractor: {
78 globals: globals.protractor
79 },
80 applescript: {
81 globals: globals.applescript
82 },
83 nashorn: {
84 globals: globals.nashorn
85 },
86 serviceworker: {
87 globals: globals.serviceworker
88 },
89 atomtest: {
90 globals: globals.atomtest
91 },
92 embertest: {
93 globals: globals.embertest
94 },
95 webextensions: {
96 globals: globals.webextensions
97 },
98 es6: {
99 globals: globals.es6,
100 parserOptions: {
101 ecmaVersion: 6
102 }
103 },
104 greasemonkey: {
105 globals: globals.greasemonkey
106 }
107};