eslint-plugin-meteor
Version:
Meteor specific linting rules for ESLint
22 lines (19 loc) • 499 B
JavaScript
/**
* @fileoverview Prevent usage of Session
* @author Dominik Ferber
*/
// -----------------------------------------------------------------------------
// Rule Definition
// -----------------------------------------------------------------------------
module.exports = {
meta: {
schema: [],
},
create: (context) => ({
MemberExpression: (node) => {
if (node.object.name === 'Session') {
context.report(node, 'Unexpected Session statement');
}
},
}),
};