function main( context ) {
	/**
	* Reports the error message.
	*
	* @private
	* @param {ASTNode} node - node to report
	*/
	function report( node ) {
		context.report({
			'node': node,
			'message': 'require() calls should only use string literals'
		});
	}

	/**
	* Checks whether require path is a string literal.
	*
	* @private
	* @param {ASTNode} node - node to examine
	*/
	function validate( node ) {
		if (
			node.callee.name === 'require' &&
			!isLiteral( node.arguments[ 0 ] )
		) {
			report( node );
		}
	}

	return {
		'CallExpression': validate
	};
}
Rule for validating that `require()` calls have only string literals as arguments.

@param {Object} context - ESLint context
@returns {Object} validators