Skip to content

Commit a6e906a

Browse files
kzshAndrew Hunt
authored andcommitted
Clarifying what rule is being enforced.
Capitalization of constructors is not the rule in question here. It makes it more clear what the offending difference is between `//bad` and `//good` to have consistent constructor capitalization.
1 parent 92d9cbd commit a6e906a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,17 +1147,12 @@
11471147
// bad
11481148
var OBJEcttsssss = {};
11491149
var this_is_my_object = {};
1150+
var o = {};
11501151
function c() {}
1151-
var u = new user({
1152-
name: 'Bob Parr'
1153-
});
11541152

11551153
// good
11561154
var thisIsMyObject = {};
11571155
function thisIsMyFunction() {}
1158-
var user = new User({
1159-
name: 'Bob Parr'
1160-
});
11611156
```
11621157
11631158
- Use PascalCase when naming constructors or classes.

0 commit comments

Comments
 (0)