# eslint-plugin-caps-on

> Make sure all consts and keys are uppercase

Latest version **1.0.0** (published 2018-08-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-caps-on
pnpm add eslint-plugin-caps-on
yarn add eslint-plugin-caps-on
bun add eslint-plugin-caps-on
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-08-10 |
| First published | 2018-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 127.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Or Manzur |
| Maintainers | mantz |
| Keywords | eslint, eslint-plugin-caps-on |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-caps-on
- Repository: https://github.com/or109/eslint-plugin-caps-on
- Homepage: https://github.com/or109/eslint-plugin-caps-on#readme
- Issues: https://github.com/or109/eslint-plugin-caps-on/issues
- npm.io page: https://npm.io/package/eslint-plugin-caps-on

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [req-all](https://npm.io/package/req-all.md) ^1.0.0

## 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

- 1.0.0 (latest) — 2018-08-10

## README

## Installation

```
$ npm i eslint eslint-plugin-caps-on --save-dev
```

## Usage

Add `caps-on` to the `.eslintrc` configuration file.

```js
{
    'plugins': [
        'caps-on'
    ],
    'rules': {
        'caps-on/uppercase': 'error'
    }
}
```

## Rule Details


Examples of correct code for this rule with global declaration:
```js
const FOO = 'bar';
const FOO = 42;
const FOO = { BAR: 42, BAZ: 'qux' };
```

Examples of incorrect code for this rule:
```js
const foo = ['bar', 42];
const foo = { bar: 42, baz: 'qux' };
const foo = { BAR: 42, baz: 'qux' };
const foo = 1000 * 60 * 10;
const foo = `42 ${bar}`;
const foo = bar();
const foo = bar ? baz : 42;
const foo = bar.baz();
const foo = bar => baz;
const foo = { bar: baz };
const FOO = { bar: baz };
const foo = [bar, baz, 42];
```

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