UNPKG

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