eslint-plugin-behance
raw JSON → 3.0.1 verified Sat Apr 25 auth: no javascript maintenance
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.
Common errors
error ESLint couldn't find the plugin "eslint-plugin-behance". ↓
cause Plugin not installed or ESLint cannot resolve it (global vs local mismatch).
fix
Install locally: npm install --save-dev eslint-plugin-behance; ensure ESLint is also local.
error Definition for rule 'behance/no-jasmine-arrow' was not found. ↓
cause Plugin not added to plugins array in ESLint config.
fix
Add "behance" to the plugins section: { "plugins": ["behance"] }
Warnings
deprecated Plugin has not been updated since 2018; may not work with ESLint >7. ↓
fix Consider migrating to modern ESLint flat config or use maintained alternatives.
gotcha header-comment rule requires a string argument; missing argument leads to runtime error. ↓
fix Always provide the comment text as the second option in the rule configuration.
breaking ESLint >=4.19.1 required; older versions may fail to load plugin. ↓
fix Upgrade ESLint to at least 4.19.1.
gotcha Plugin does not export any configs; cannot use 'extends: plugin:behance/recommended'. ↓
fix Manually add rules to your ESLint config.
Install
npm install eslint-plugin-behance yarn add eslint-plugin-behance pnpm add eslint-plugin-behance Imports
- rules wrong
const rules = require('eslint-plugin-behance').rulescorrectimport { rules } from 'eslint-plugin-behance' - configs wrong
const configs = require('eslint-plugin-behance').configscorrectimport { configs } from 'eslint-plugin-behance' - Plugin wrong
const plugin = require('eslint-plugin-behance')correctimport plugin from 'eslint-plugin-behance'
Quickstart
// Install: npm install --save-dev eslint eslint-plugin-behance
// .eslintrc.json
{
"plugins": ["behance"],
"rules": {
"behance/no-jasmine-arrow": "error",
"behance/header-comment": ["warn", "/* Copyright Behance */"]
}
}