# eslint-plugin-no-node-env

> Prevent usage of NODE_ENV

Latest version **1.0.1** (published 2023-05-16) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2023-05-16 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sawyer Hollenshead |
| Maintainers | sawyerh |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-node-env
- Repository: https://github.com/sawyerh/eslint-plugin-no-node-env
- Homepage: https://github.com/sawyerh/eslint-plugin-no-node-env#readme
- Issues: https://github.com/sawyerh/eslint-plugin-no-node-env/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-node-env

## 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.1 (latest) — 2023-05-16
- 1.0.0 — 2023-05-16

## README

# eslint-plugin-no-node-env

Prevent usage of `process.env.NODE_ENV`, which is probably not what you think it is. [Read more context here](/docs/rules/no-node-env.md).

## Installation

```sh
npm install eslint-plugin-no-node-env --save-dev
```

## Usage

Add `no-node-env` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix. Then include the rule in the rules section:

```json
{
    "plugins": ["no-node-env"],
    "rules": {
        "no-node-env/no-node-env": "error"
    }
}
```

To only apply this rule to a subdirectory, like `src`, you can use the `overrides` section of your ESLint configuration file.

```json
{
    "overrides": [
        {
            "plugins": ["no-node-env"],
            "files": ["src/**"],
            "rules": {
                "no-node-env/no-node-env": "error"
            }
        }
    ]
}
```

## Rules

<!-- begin auto-generated rules list -->

| Name                                     |
| :--------------------------------------- |
| [no-node-env](docs/rules/no-node-env.md) |

<!-- end auto-generated rules list -->

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