Requires identifiers to be camelCased or UPPERCASE_WITH_UNDERSCORES
Types: Boolean
or String
or Object
Values:
true
"ignoreProperties"
allows an exception for object property names. Deprecated, Please use the Object
valueObject
:ignoreProperties
: boolean that allows an exception for object property namesstrict
: boolean that forces the first character to not be capitalizedallowedPrefixes
: array of String, RegExp, or ESTree RegExpLiteral values permitted as prefixesallowedSuffixes
: array of String, RegExp, or ESTree RegExpLiteral values permitted as suffixesallExcept
: array of String, RegExp, or ESTree RegExpLiteral values permitted as exceptionsJSHint: camelcase
"requireCamelCaseOrUpperCaseIdentifiers": true
"requireCamelCaseOrUpperCaseIdentifiers": {"ignoreProperties": true, "strict": true}
"requireCamelCaseOrUpperCaseIdentifiers": {"allowedPrefixes": ["opt_", /pfx\d+_/]}
"requireCamelCaseOrUpperCaseIdentifiers": {"allowedSuffixes": ["_dCel", {regex: {pattern: "_[kMG]?Hz"}}]}
"requireCamelCaseOrUpperCaseIdentifiers": {"allExcept": ["var_args", {regex: {pattern: "^ignore", flags: "i"}}]}
true
var camelCase = 0;
var CamelCase = 1;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
true
var lower_case = 1;
var Mixed_case = 2;
var mixed_Case = 3;
ignoreProperties
var camelCase = 0;
var CamelCase = 1;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
var obj.snake_case = 5;
var camelCase = { snake_case: 6 };
ignoreProperties
var lower_case = 1;
var Mixed_case = 2;
var mixed_Case = 3;
var snake_case = { snake_case: 6 };
strict
var camelCase = 0;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
var obj.snake_case = 5;
var camelCase = { snake_case: 6 };
strict
var Mixed_case = 2;
var Snake_case = { snake_case: 6 };
var snake_case = { SnakeCase: 6 };
{ allowedPrefix: ["opt_", /pfx\d+_/] }
var camelCase = 0;
var CamelCase = 1;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
var opt_camelCase = 5;
var pfx32_camelCase = 6;
{ allowedPrefix: ["opt_", /pfx\d+/] }
var lower_case = 1;
var Mixed_case = 2;
var mixed_Case = 3;
var req_camelCase = 4;
var pfx_CamelCase = 5;
{ allowedSuffixes: ["_dCel", {regex:{pattern:"_[kMG]?Hz"}}] }
var camelCase = 0;
var CamelCase = 1;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
var camelCase_dCel = 5;
var _camelCase_MHz = 6;
{ allowedSuffixes: ["_dCel", {regex:{pattern:"_[kMG]?Hz"}}] }
var lower_case = 1;
var Mixed_case = 2;
var mixed_Case = 3;
var camelCase_cCel = 4;
var CamelCase_THz = 5;
{ allExcept: ["var_args", {regex:{pattern:"^ignore",flags:"i"}}] }
var camelCase = 0;
var CamelCase = 1;
var _camelCase = 2;
var camelCase_ = 3;
var UPPER_CASE = 4;
var var_args = 5;
var ignoreThis_Please = 6;
var iGnOrEeThis_Too = 7;
{ allExcept: ["var_args", {regex:{pattern:"^ignore",flags:"i"}}] }
var lower_case = 1;
var Mixed_case = 2;
var mixed_Case = 3;
var var_arg = 4;
var signore_per_favore = 5;