Ignacio Bona Piedrabuena 89c78551cc
1604086049622-ui-sync (#1981)
Co-authored-by: Ignacio Bona <ibonapiedrabuena@linkedin.com>
2020-11-09 12:17:51 -08:00

30 lines
734 B
JavaScript

/**
* @fileoverview
*/
'use strict';
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
docs: {
description: 'Open source modules should not import from @linkedin',
category: 'Open source modules should not import from @linkedin',
recommended: true
},
fixable: null,
schema: []
},
create: function(context) {
return {
ImportDeclaration(node) {
if (node.source.value.indexOf('@linkedin') >= 0) {
context.report(node, 'Open source modules should not import from @linkedin');
}
}
};
}
};