1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | var globals = require("globals");
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | module.exports = {
|
19 | builtin: globals.builtin,
|
20 | browser: {
|
21 | globals: globals.browser
|
22 | },
|
23 | node: {
|
24 | globals: globals.node,
|
25 | ecmaFeatures: {
|
26 | globalReturn: true
|
27 | }
|
28 | },
|
29 | commonjs: {
|
30 | globals: globals.commonjs,
|
31 | ecmaFeatures: {
|
32 | globalReturn: true
|
33 | }
|
34 | },
|
35 | worker: {
|
36 | globals: globals.worker
|
37 | },
|
38 | amd: {
|
39 | globals: globals.amd
|
40 | },
|
41 | mocha: {
|
42 | globals: globals.mocha
|
43 | },
|
44 | jasmine: {
|
45 | globals: globals.jasmine
|
46 | },
|
47 | jest: {
|
48 | globals: globals.jest
|
49 | },
|
50 | phantomjs: {
|
51 | globals: globals.phantomjs
|
52 | },
|
53 | jquery: {
|
54 | globals: globals.jquery
|
55 | },
|
56 | qunit: {
|
57 | globals: globals.qunit
|
58 | },
|
59 | prototypejs: {
|
60 | globals: globals.prototypejs
|
61 | },
|
62 | shelljs: {
|
63 | globals: globals.shelljs
|
64 | },
|
65 | meteor: {
|
66 | globals: globals.meteor
|
67 | },
|
68 | mongo: {
|
69 | globals: globals.mongo
|
70 | },
|
71 | protractor: {
|
72 | globals: globals.protractor
|
73 | },
|
74 | applescript: {
|
75 | globals: globals.applescript
|
76 | },
|
77 | serviceworker: {
|
78 | globals: globals.serviceworker
|
79 | },
|
80 | embertest: {
|
81 | globals: globals.embertest
|
82 | },
|
83 | es6: {
|
84 | ecmaFeatures: {
|
85 | arrowFunctions: true,
|
86 | blockBindings: true,
|
87 | regexUFlag: true,
|
88 | regexYFlag: true,
|
89 | templateStrings: true,
|
90 | binaryLiterals: true,
|
91 | octalLiterals: true,
|
92 | unicodeCodePointEscapes: true,
|
93 | superInFunctions: true,
|
94 | defaultParams: true,
|
95 | restParams: true,
|
96 | forOf: true,
|
97 | objectLiteralComputedProperties: true,
|
98 | objectLiteralShorthandMethods: true,
|
99 | objectLiteralShorthandProperties: true,
|
100 | objectLiteralDuplicateProperties: true,
|
101 | generators: true,
|
102 | destructuring: true,
|
103 | classes: true,
|
104 | spread: true,
|
105 | newTarget: true
|
106 | }
|
107 | }
|
108 | };
|