Registry / testing / eslint-plugin-oev

eslint-plugin-oev

JSON →
library2.1.0jsnpmunverified

A shared ESLint plugin providing common lint and formatting rules for OEV Berlin projects. Current stable version is 2.1.0, released with regular updates for ESLint and TypeScript compatibility. It enforces consistent code style and best practices across projects. Differentiates by being tailored specifically to OEV Berlin conventions rather than generic rule sets. Requires ESLint >= 9 and TypeScript >= 5, leveraging modern flat config and type-aware rules.

npm install eslint-plugin-oev
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-OEV
E
eslint-plugin-oev
testingjavascriptv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import plugin from 'eslint-plugin-oev'
const plugin = require('eslint-plugin-oev')
ESM-only package; use import syntax. Requires ESLint flat config.
configs
import { configs } from 'eslint-plugin-oev'
const { configs } = require('eslint-plugin-oev')
Named export for accessing predefined configs like recommended.
rules
import { rules } from 'eslint-plugin-oev'
import rules from 'eslint-plugin-oev'
Named export for custom rule definitions.

Setup ESLint flat config with OEV recommended rules and TypeScript support.

// eslint.config.js import plugin from 'eslint-plugin-oev'; import tseslint from 'typescript-eslint'; export default [ plugin.configs.recommended, ...tseslint.configs.recommended, ];
Debug
Known issues
breakingVersion 2.x requires ESLint >= 9 and flat config; does not support legacy .eslintrc format.
fix
Migrate to ESLint flat config and ensure ESLint version >= 9.
affects: >=2.0.0
breakingDropped support for TypeScript < 5 in version 2.0.0.
fix
Upgrade TypeScript to version 5 or higher.
affects: >=2.0.0
deprecatedThe 'configs.recommended' now uses flat config structure; old 'recommended' as a single object is deprecated.
fix
Use array-based flat config with spread as shown in quickstart.
affects: >=2.0.0
gotchaThis plugin only provides rules; you must install and configure `typescript-eslint` separately for full TypeScript linting.
fix
Add `typescript-eslint` to your config.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'eslint-plugin-oev': Cannot find module 'eslint-plugin-oev'
ESLint cannot resolve the plugin because it's not installed or not in node_modules.
fix
Run `npm install eslint-plugin-oev --save-dev`.
TypeError: configs.recommended is not iterable
Using legacy config array with flat config; configs.recommended is a flat config array.
fix
Spread the config array: `...plugin.configs.recommended`.
Error: Could not find config 'recommended' in plugin 'eslint-plugin-oev'
Trying to use legacy rc format with `extends: ['plugin:oev/recommended']`.
fix
Use flat config and import the plugin as shown in quickstart.
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: provides the core linting framework
typescriptrequiredPeer dependency: needed for type-aware rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-oev — npm install eslint-plugin-oev · libregistry