ESLint plugin for create-universal-package (cup), providing a custom no-undef rule that allows environment-specific globals (e.g., window, process) only when guarded by __BROWSER__ or __NODE__ checks. Current stable version 2.0.4, last release likely in 2019. Designed for universal code that runs in both browser and Node.js, enforcing that environment-sensitive globals are used only within appropriate conditional blocks. Requires ESLint 5.x or 6.x. Not actively maintained.
npm install eslint-plugin-cupVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to use the cup/no-undef rule instead of the default no-undef.
Disable the default 'no-undef' rule when using 'cup/no-undef'.
Consider migrating to a custom rule or alternative solution.
npm install eslint-plugin-cup --save-dev
Use ESLint 5.x or 6.x, or check that the plugin is properly loaded.