# eslint-plugin-belgradian

> Eslint plugin for extending the camel case rule by allowing hungarian style variable names

Latest version **2.4.6** (published 2026-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-belgradian
pnpm add eslint-plugin-belgradian
yarn add eslint-plugin-belgradian
bun add eslint-plugin-belgradian
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.4.6 |
| Published | 2026-09-17 |
| First published | 2021-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Proctorio |
| Maintainers | artfulhacker |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-belgradian
- Repository: https://github.com/proctorio/eslint-plugin-belgradian.js
- Homepage: https://github.com/proctorio/eslint-plugin-belgradian.js#readme
- Issues: https://github.com/proctorio/eslint-plugin-belgradian.js/issues
- npm.io page: https://npm.io/package/eslint-plugin-belgradian

## Recent versions

- 2.4.6 (latest) — 2026-09-17
- 2.4.3 — 2021-10-01
- 2.4.2 — 2021-10-01
- 2.4.1 — 2021-10-01

## README

# eslint-plugin-belgradian

An ESLint plugin that enforces camelCase variable naming with scope prefixes:

- `m_` for field members
- `g_` for global variables (outside of the module or class)

## Installation

```
npm install eslint eslint-plugin-belgradian --save-dev
```

## Usage

### ESLint flat config (eslint.config.js — ESLint 9+)

```js
import belgradian from "eslint-plugin-belgradian";

export default [
  {
    plugins: { belgradian },
    rules: {
      "belgradian/member-prefix-rule": "error"
    }
  }
];
```

### Legacy config (.eslintrc — ESLint 8 and below)

Add `belgradian` to the plugins section of your `.eslintrc` configuration file:

```json
{
  "plugins": ["belgradian"],
  "rules": {
    "belgradian/member-prefix-rule": "error"
  }
}
```

## Options

The rule accepts an options object with:

- **`include`** — additional prefixes to allow (e.g. `["g_"]`)
- **`exceptions`** — variable names to ignore

```json
{
  "rules": {
    "belgradian/member-prefix-rule": [
      "error",
      { "include": ["g_"], "exceptions": ["reservedVariable"] }
    ]
  }
}
```

## Development

```bash
npm test        # run tests with coverage
npm run lint    # lint source and test files
```

## License

[MIT](LICENCE)

---

Inspired by Sander Verweij's [budapestian](https://github.com/sverweij/eslint-plugin-budapestian).

---
_Source: https://npm.io/package/eslint-plugin-belgradian · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
