https://github.com/s14k51/eslint-plugin-strict-case
Enforce case for variable names.
https://github.com/s14k51/eslint-plugin-strict-case
eslint eslint-plugin eslintplugin
Last synced: 6 months ago
JSON representation
Enforce case for variable names.
- Host: GitHub
- URL: https://github.com/s14k51/eslint-plugin-strict-case
- Owner: s14k51
- License: mit
- Created: 2020-03-30T04:31:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-13T05:56:40.000Z (over 4 years ago)
- Last Synced: 2025-12-07T22:21:57.896Z (7 months ago)
- Topics: eslint, eslint-plugin, eslintplugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-strict-case
- Size: 534 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-strict-case
Enforce case for variable names.
## Installation
```
$ npm i -D eslint eslint-plugin-strict-case
```
or
```
$ yarn add -D eslint eslint-plugin-strict-case
```
**Note:** If you installed ESLint globally then you must also install `eslint-plugin-strict-case` globally.
## Usage
In your `.eslintrc`, set the `es6` environment configuration, add `strict-case` to the plugins section, and configure the rules you want to use under the `rules` section.
```json
{
"env": {
"es6": true,
},
"plugins": [
"strict-case"
],
"rules": {
"strict-case/class": "error"
}
}
```
Or you can use the recommended configuration instead.
```json
{
"extends": [
"plugin:strict-case/recommended"
]
}
```
## Supported Rules
1. `strict-case/class`: Checks if the name of a class starts with an uppercase letter.