Sha256: 5542f7b6794144b48a254fd8eeaf3da01bace895352eadc2f11109edef9dd9f4
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
/** * @fileoverview Disallow the use of process.env() * @author Vignesh Anand * @copyright 2014 Vignesh Anand. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = function(context) { return { "MemberExpression": function(node) { var objectName = node.object.name, propertyName = node.property.name; if (objectName === "process" && !node.computed && propertyName && propertyName === "env") { context.report(node, "Unexpected use of process.env."); } } }; }; module.exports.schema = [];
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eslint_node_modules-1.6.0.1 | vendor/node_modules/eslint/lib/rules/no-process-env.js |
eslint_node_modules-1.6.0 | vendor/node_modules/eslint/lib/rules/no-process-env.js |