{"id":19700,"library":"eslint-plugin-behance","title":"eslint-plugin-behance","description":"Behance's custom ESLint plugin (v3.0.1) providing two rules: no-jasmine-arrow disallows arrow functions in Jasmine test callbacks, and header-comment enforces a header block comment at file top. Released as maintenance-only; peer dependency on ESLint >=4.19.1. Simple and focused, no active development since 2018.","status":"maintenance","version":"3.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-behance","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-behance","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-behance","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for plugin to work","package":"eslint","optional":false}],"imports":[{"note":"CommonJS require works but ESM import is valid since package exports rules object.","wrong":"const rules = require('eslint-plugin-behance').rules","symbol":"rules","correct":"import { rules } from 'eslint-plugin-behance'"},{"note":"configs may be empty; plugin provides no preset configs.","wrong":"const configs = require('eslint-plugin-behance').configs","symbol":"configs","correct":"import { configs } from 'eslint-plugin-behance'"},{"note":"Default import yields the full plugin object with rules and configs.","wrong":"const plugin = require('eslint-plugin-behance')","symbol":"Plugin","correct":"import plugin from 'eslint-plugin-behance'"}],"quickstart":{"code":"// Install: npm install --save-dev eslint eslint-plugin-behance\n// .eslintrc.json\n{\n  \"plugins\": [\"behance\"],\n  \"rules\": {\n    \"behance/no-jasmine-arrow\": \"error\",\n    \"behance/header-comment\": [\"warn\", \"/* Copyright Behance */\"]\n  }\n}","lang":"javascript","description":"Shows configuration to enable both rules with ESLint, including header-comment option."},"warnings":[{"fix":"Consider migrating to modern ESLint flat config or use maintained alternatives.","message":"Plugin has not been updated since 2018; may not work with ESLint >7.","severity":"deprecated","affected_versions":"<=3.0.1"},{"fix":"Always provide the comment text as the second option in the rule configuration.","message":"header-comment rule requires a string argument; missing argument leads to runtime error.","severity":"gotcha","affected_versions":"*"},{"fix":"Upgrade ESLint to at least 4.19.1.","message":"ESLint >=4.19.1 required; older versions may fail to load plugin.","severity":"breaking","affected_versions":"<4.19.1"},{"fix":"Manually add rules to your ESLint config.","message":"Plugin does not export any configs; cannot use 'extends: plugin:behance/recommended'.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install locally: npm install --save-dev eslint-plugin-behance; ensure ESLint is also local.","cause":"Plugin not installed or ESLint cannot resolve it (global vs local mismatch).","error":"ESLint couldn't find the plugin \"eslint-plugin-behance\"."},{"fix":"Add \"behance\" to the plugins section: { \"plugins\": [\"behance\"] }","cause":"Plugin not added to plugins array in ESLint config.","error":"Definition for rule 'behance/no-jasmine-arrow' was not found."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}