Skip to content

Commit

Permalink
fix: allow for CONSTANT_NAMES for identifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed May 20, 2016
1 parent e9f3388 commit cd75438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ module.exports = {
// require identifiers to match the provided regular expression
'id-match': [
2,
// identifiers must always be camel cased.
'^[A-Za-z]*$',
// identifiers must always be camelCased or CONSTANT_NAMED.
'^([A-Za-z]*|[A-Z][A-Z_]*[A-Z])$',
{
// identifiers in properties are also checked
'properties': true,
Expand Down

0 comments on commit cd75438

Please sign in to comment.