mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
19 lines
461 B
JavaScript
19 lines
461 B
JavaScript
/**
|
|
* @fileoverview Prevent usage of Session
|
|
* @author Dominik Ferber
|
|
*/
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Rule Definition
|
|
// -----------------------------------------------------------------------------
|
|
|
|
export default context => ({
|
|
MemberExpression: (node) => {
|
|
if (node.object.name === 'Session') {
|
|
context.report(node, 'Unexpected Session statement')
|
|
}
|
|
},
|
|
})
|
|
|
|
export const schema = []
|