def is_dependency(self):

        is_dep = False

        pkg = self.get_manifest()

        # also return true if the name is the same so linters can lint their
        # own code (e.g. eslint can lint the eslint project)
        is_dep = 'name' in pkg and self.npm_name == pkg['name']

        if not is_dep:
            is_dep = True if (
                'dependencies' in pkg and
                self.npm_name in pkg['dependencies']
            ) else False

        if not is_dep:
            is_dep = True if (
                'devDependencies' in pkg and
                self.npm_name in pkg['devDependencies']
            ) else False

        return is_dep
Return `eventname` when the function name is `on_<eventname>()`.
dataset/ETHPy150Open SublimeLinter/SublimeLinter3/lint/node_linter.py/NodeLinter.is_dependency--crossover with--dataset/ETHPy150Open kwikteam/phy/phy/utils/event.py/EventEmitter._get_on_name