f59b852f946876b6e92b8c56b98eb7a9e8c21136
[platform/framework/web/crosswalk-tizen.git] /
1 /**
2  * @fileoverview Defines environment settings and globals.
3  * @author Elan Shanker
4  * @copyright 2014 Elan Shanker. All rights reserved.
5  */
6 "use strict";
7
8 var globals = require("globals");
9
10 module.exports = {
11     builtin: globals.builtin,
12     browser: {
13         globals: globals.browser
14     },
15     node: {
16         globals: globals.node,
17         ecmaFeatures: {
18             globalReturn: true
19         },
20         rules: {
21             "no-catch-shadow": 0,
22             "no-console": 0,
23             "no-mixed-requires": 2,
24             "no-new-require": 2,
25             "no-path-concat": 2,
26             "no-process-exit": 2,
27             "global-strict": [0, "always"],
28             "handle-callback-err": [2, "err"]
29         }
30     },
31     amd: {
32         globals: globals.amd
33     },
34     mocha: {
35         globals: globals.mocha
36     },
37     jasmine: {
38         globals: globals.jasmine
39     },
40     phantomjs: {
41         globals: globals.phantom
42     },
43     jquery: {
44         globals: globals.jquery
45     },
46     prototypejs: {
47         globals: globals.prototypejs
48     },
49     shelljs: {
50         globals: globals.shelljs
51     },
52     meteor: {
53         globals: globals.meteor
54     },
55     es6: {
56         ecmaFeatures: {
57             arrowFunctions: true,
58             blockBindings: true,
59             regexUFlag: true,
60             regexYFlag: true,
61             templateStrings: true,
62             binaryLiterals: true,
63             octalLiterals: true,
64             unicodeCodePointEscapes: true,
65             superInFunctions: true,
66             defaultParams: true,
67             restParams: true,
68             forOf: true,
69             objectLiteralComputedProperties: true,
70             objectLiteralShorthandMethods: true,
71             objectLiteralShorthandProperties: true,
72             objectLiteralDuplicateProperties: true,
73             generators: true,
74             destructuring: true,
75             classes: true
76         }
77     }
78 };