Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zignis/eslint-plugin-prefer-snakecase
- Owner: zignis
- License: mit
- Created: 2023-09-26T14:38:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-29T19:30:30.000Z (about 1 year ago)
- Last Synced: 2024-09-29T01:05:09.088Z (about 1 month ago)
- Topics: eslint, eslint-plugin, eslintplugin, snake-case
- Language: TypeScript
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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