# eslint-plugin-no-underscore

> Eslint rules for underscores

Latest version **0.2.1** (published 2017-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-no-underscore
pnpm add eslint-plugin-no-underscore
yarn add eslint-plugin-no-underscore
bun add eslint-plugin-no-underscore
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-05-09 |
| First published | 2017-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Krisztian Nagy |
| Maintainers | chrisakakay |
| Keywords | eslint, eslint-plugin, eslintplugin, underscore |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-underscore
- Repository: https://github.com/chrisakakay/eslint-plugin-no-underscore
- Issues: https://github.com/chrisakakay/eslint-plugin-no-underscore/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-underscore

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2017-05-09
- 0.2.0 — 2017-05-04
- 0.1.0 — 2017-05-04

## README

eslint-plugin-no-underscure
===================


Underscore (the character, not the library) specific linting rules



# Installation

```sh
$ npm install eslint --save-dev
$ npm install eslint-plugin-no-underscore --save-dev
```



# Configuration

Add `plugins` section and specify `no-underscore` as a plugin>

```json
{
  "plugins": [
    "no-underscore"
  ]
}
```

Enable the rule:

```json
  "rules": {
    "no-underscore/no-underscore": "warn"
  }
```


# Options

* allowConstants [bool], (ex.: API_URL)
* allowLeadingUnderscores [bool], (ex.: _myFancyLocalVariable)



Example:

```json
  "rules": {
    "no-underscore/no-underscore": ["warn", {
      "allowConstants": true
    }]
  }
```

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