1.0.0 • Published 3 years ago
eslint-plugin-sentence-case-exclude v1.0.0
eslint-plugin-sentence-case-exclude
Enforce that string literals are in sentence case, allowing for exclusions.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-sentence-case-exclude:
npm install eslint-plugin-sentence-case-exclude --save-devUsage
Add sentence-case-exclude to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"sentence-case-exclude"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"sentence-case-exclude/rule-name": 2
}
}Rules
| Name | Description |
|---|---|
| sentence-case | Enforce that string literals are in sentence case, allowing for exclusions |