Skip to content

Eslint Plugin to check if you use toUppercase instead ofLocaleUppercase

Notifications You must be signed in to change notification settings

DanielMSchmidt/eslint-plugin-no-touppercase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint Plugin against toUpperCase usage circle

Simple plugin only for one simple rule, don't use toUpperCase but use toLocaleUpperCase

Installation

Install ESLint either locally or globally.

$ npm install eslint
$ npm install eslint-plugin-no-touppercase

Configuration

Add plugins section and specify ESLint-plugin-React (optional) and ESLint-plugin-react-native as a plugin.

{
  "plugins": [
    "no-touppercase"
  ]
}

Enable all of the rules that you would like to use.

{
  "rules": {
    "no-touppercase/check-uppercase": 2,
  }
}

List of supported rules

About

Eslint Plugin to check if you use toUppercase instead ofLocaleUppercase

Resources

Stars

Watchers

Forks

Packages

No packages published