# eslint-plugin-config-value-repeat

> Check if the value of the js configuration file is duplicated

Latest version **0.0.1** (published 2023-03-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-config-value-repeat
pnpm add eslint-plugin-config-value-repeat
yarn add eslint-plugin-config-value-repeat
bun add eslint-plugin-config-value-repeat
```

## 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.0.1 |
| Published | 2023-03-13 |
| First published | 2022-05-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | coolnuanfeng |
| Maintainers | coolnuanfeng |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-config-value-repeat
- npm.io page: https://npm.io/package/eslint-plugin-config-value-repeat

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-03-13
- 0.0.0 — 2022-05-20

## README

# eslint-plugin-config-value-repeat

Check if the value of the js configuration file is duplicated

[中文](./README_CN.md)

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-config-value-repeat`:

```
$ npm install eslint-plugin-config-value-repeat --save-dev
```


## Usage

Add `config-value-repeat` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "config-value-repeat"
    ]
}
```


Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "config-value-repeat/repeat": 2
    }
}
```

## Supported Rules

config-value-repeat/repeat




## Demo

```

module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/essential',
    'eslint:recommended',
  ],
  plugins: ['config-value-repeat'],
  overrides: [
    {
      "files": ["./src/config/index.js"],
      "rules": {
        'config-value-repeat/repeat': 'error',
      }
    },
  ],
  parserOptions: {
    parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
  }
}

```

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