Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zignis/eslint-plugin-prefer-snakecase

🐍 Enforce snake_case naming for identifiers
https://github.com/zignis/eslint-plugin-prefer-snakecase

eslint eslint-plugin eslintplugin snake-case

Last synced: 27 days ago
JSON representation

🐍 Enforce snake_case naming for identifiers

Awesome Lists containing this project

README

        

# eslint-plugin-prefer-snakecase

![GitHub Workflow Status](https://github.com/zignis/eslint-plugin-prefer-snakecase/actions/workflows/main.yaml/badge.svg)
![npm](https://img.shields.io/npm/v/eslint-plugin-prefer-snakecase?style=plastic)

Enforces `snake_case` naming convention for identifiers. Inspired by [ptkdev/eslint-plugin-snakecasejs](https://github.com/ptkdev/eslint-plugin-snakecasejs)

## Installation

### Yarn

```bash
yarn add -D eslint-plugin-prefer-snakecase
```

## Usage

Add `prefer-snakecase` to your list of plugins and extend the
recommended configuration.

```json
{
"extends": "plugin:prefer-snakecase/recommended",
"plugins": ["prefer-snakecase"]
}
```

## Rules

Available rules: https://github.com/zignis/eslint-plugin-prefer-snakecase/blob/main/docs/rules/prefer-snakecase.md