1b889dc5f457a989f88cc982be383736e3ca7a06
[platform/framework/web/crosswalk-tizen.git] /
1 /**
2  * @fileoverview Rule to flag use of with statement
3  * @author Nicholas C. Zakas
4  */
5
6 "use strict";
7
8 //------------------------------------------------------------------------------
9 // Rule Definition
10 //------------------------------------------------------------------------------
11
12 module.exports = function(context) {
13
14     return {
15         "WithStatement": function(node) {
16             context.report(node, "Unexpected use of 'with' statement.");
17         }
18     };
19
20 };