UNPKG

2.29 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: {
19 globals: globals.es5
20 },
21 browser: {
22 globals: globals.browser
23 },
24 node: {
25 globals: globals.node,
26 parserOptions: {
27 ecmaFeatures: {
28 globalReturn: true
29 }
30 }
31 },
32 commonjs: {
33 globals: globals.commonjs,
34 parserOptions: {
35 ecmaFeatures: {
36 globalReturn: true
37 }
38 }
39 },
40 "shared-node-browser": {
41 globals: globals["shared-node-browser"]
42 },
43 worker: {
44 globals: globals.worker
45 },
46 amd: {
47 globals: globals.amd
48 },
49 mocha: {
50 globals: globals.mocha
51 },
52 jasmine: {
53 globals: globals.jasmine
54 },
55 jest: {
56 globals: globals.jest
57 },
58 phantomjs: {
59 globals: globals.phantomjs
60 },
61 jquery: {
62 globals: globals.jquery
63 },
64 qunit: {
65 globals: globals.qunit
66 },
67 prototypejs: {
68 globals: globals.prototypejs
69 },
70 shelljs: {
71 globals: globals.shelljs
72 },
73 meteor: {
74 globals: globals.meteor
75 },
76 mongo: {
77 globals: globals.mongo
78 },
79 protractor: {
80 globals: globals.protractor
81 },
82 applescript: {
83 globals: globals.applescript
84 },
85 nashorn: {
86 globals: globals.nashorn
87 },
88 serviceworker: {
89 globals: globals.serviceworker
90 },
91 atomtest: {
92 globals: globals.atomtest
93 },
94 embertest: {
95 globals: globals.embertest
96 },
97 webextensions: {
98 globals: globals.webextensions
99 },
100 es6: {
101 globals: globals.es2015,
102 parserOptions: {
103 ecmaVersion: 6
104 }
105 },
106 greasemonkey: {
107 globals: globals.greasemonkey
108 }
109};