eslint-plugin-oev

raw JSON →
2.1.0 verified Fri May 01 auth: no javascript

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.

error Error: Failed to load plugin 'eslint-plugin-oev': Cannot find module 'eslint-plugin-oev'
cause ESLint cannot resolve the plugin because it's not installed or not in node_modules.
fix
Run npm install eslint-plugin-oev --save-dev.
error TypeError: configs.recommended is not iterable
cause Using legacy config array with flat config; configs.recommended is a flat config array.
fix
Spread the config array: ...plugin.configs.recommended.
error Error: Could not find config 'recommended' in plugin 'eslint-plugin-oev'
cause Trying to use legacy rc format with `extends: ['plugin:oev/recommended']`.
fix
Use flat config and import the plugin as shown in quickstart.
breaking Version 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.
breaking Dropped support for TypeScript < 5 in version 2.0.0.
fix Upgrade TypeScript to version 5 or higher.
deprecated The '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.
gotcha This plugin only provides rules; you must install and configure `typescript-eslint` separately for full TypeScript linting.
fix Add `typescript-eslint` to your config.
npm install eslint-plugin-oev
yarn add eslint-plugin-oev
pnpm add eslint-plugin-oev

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,
];