1
- # Zillow JavaScript Style Guide () {
1
+ # Zillow JavaScript Code Conventions () {
2
2
3
3
* A mostly reasonable approach to JavaScript*
4
4
7
7
[ ![ npm version] ( https://img.shields.io/npm/v/eslint-config-zillow.svg )] ( https://www.npmjs.com/package/eslint-config-zillow )
8
8
[ ![ Build Status] ( https://travis-ci.org/zillow/javascript.svg?branch=latest )] ( https://travis-ci.org/zillow/javascript )
9
9
10
- Other Style Guides
10
+ Other Code Conventions:
11
11
12
12
- [ React] ( react/ )
13
13
- [ CSS-in-JavaScript] ( css-in-javascript/ )
@@ -41,7 +41,7 @@ Other Style Guides
41
41
1 . [ Events] ( #events )
42
42
1 . [ jQuery] ( #jquery )
43
43
1 . [ ECMAScript 5 Compatibility] ( #ecmascript-5-compatibility )
44
- 1 . [ ECMAScript 6+ (ES 2015+) Styles ] ( #ecmascript-6-es-2015-styles )
44
+ 1 . [ ECMAScript 6+ (ES 2015+) Patterns ] ( #ecmascript-6-es-2015-patterns )
45
45
1 . [ Standard Library] ( #standard-library )
46
46
1 . [ Testing] ( #testing )
47
47
1 . [ Performance] ( #performance )
@@ -1219,15 +1219,15 @@ Other Style Guides
1219
1219
1220
1220
` ` ` javascript
1221
1221
// bad
1222
- const ZillowStyleGuide = require('./ZillowStyleGuide ');
1223
- module.exports = ZillowStyleGuide .es6;
1222
+ const ZillowCodeConventions = require('./ZillowCodeConventions ');
1223
+ module.exports = ZillowCodeConventions .es6;
1224
1224
1225
1225
// ok
1226
- import ZillowStyleGuide from './ZillowStyleGuide ';
1227
- export default ZillowStyleGuide .es6;
1226
+ import ZillowCodeConventions from './ZillowCodeConventions ';
1227
+ export default ZillowCodeConventions .es6;
1228
1228
1229
1229
// best
1230
- import { es6 } from './ZillowStyleGuide ';
1230
+ import { es6 } from './ZillowCodeConventions ';
1231
1231
export default es6;
1232
1232
` ` `
1233
1233
@@ -1238,10 +1238,10 @@ Other Style Guides
1238
1238
1239
1239
` ` ` javascript
1240
1240
// bad
1241
- import * as ZillowStyleGuide from './ZillowStyleGuide ';
1241
+ import * as ZillowCodeConventions from './ZillowCodeConventions ';
1242
1242
1243
1243
// good
1244
- import ZillowStyleGuide from './ZillowStyleGuide ';
1244
+ import ZillowCodeConventions from './ZillowCodeConventions ';
1245
1245
` ` `
1246
1246
1247
1247
< a name= " modules--no-export-from-import" >< / a>< a name= " 10.3" >< / a>
@@ -1252,11 +1252,11 @@ Other Style Guides
1252
1252
` ` ` javascript
1253
1253
// bad
1254
1254
// filename es6.js
1255
- export { es6 as default } from './ZillowStyleGuide ';
1255
+ export { es6 as default } from './ZillowCodeConventions ';
1256
1256
1257
1257
// good
1258
1258
// filename es6.js
1259
- import { es6 } from './ZillowStyleGuide ';
1259
+ import { es6 } from './ZillowCodeConventions ';
1260
1260
export default es6;
1261
1261
` ` `
1262
1262
@@ -2412,22 +2412,22 @@ Other Style Guides
2412
2412
2413
2413
` ` ` javascript
2414
2414
// bad
2415
- import { es6 } from './ZillowStyleGuide ';
2415
+ import { es6 } from './ZillowCodeConventions ';
2416
2416
// ...
2417
2417
export default es6;
2418
2418
` ` `
2419
2419
2420
2420
` ` ` javascript
2421
2421
// bad
2422
- import { es6 } from './ZillowStyleGuide ';
2422
+ import { es6 } from './ZillowCodeConventions ';
2423
2423
// ...
2424
2424
export default es6;↵
2425
2425
↵
2426
2426
` ` `
2427
2427
2428
2428
` ` ` javascript
2429
2429
// good
2430
- import { es6 } from './ZillowStyleGuide ';
2430
+ import { es6 } from './ZillowCodeConventions ';
2431
2431
// ...
2432
2432
export default es6;↵
2433
2433
` ` `
@@ -3085,12 +3085,12 @@ Other Style Guides
3085
3085
- [23.8](#naming--PascalCase-singleton) Use PascalCase when you export a constructor / class / singleton / function library / bare object.
3086
3086
3087
3087
` ` ` javascript
3088
- const ZillowStyleGuide = {
3088
+ const ZillowCodeConventions = {
3089
3089
es6: {
3090
3090
},
3091
3091
};
3092
3092
3093
- export default ZillowStyleGuide ;
3093
+ export default ZillowCodeConventions ;
3094
3094
` ` `
3095
3095
3096
3096
<a name="naming--Acronyms-and-Initialisms"></a>
@@ -3345,11 +3345,11 @@ Other Style Guides
3345
3345
3346
3346
** [⬆ back to top](#table- of - contents)**
3347
3347
3348
- < a name= " ecmascript-6-styles " >< / a>
3349
- ## ECMAScript 6 + (ES 2015 + ) Styles
3348
+ < a name= " ecmascript-6-patterns " >< / a>
3349
+ ## ECMAScript 6 + (ES 2015 + ) Patterns
3350
3350
3351
- < a name= " es6-styles " >< / a>< a name= " 27.1" >< / a>
3352
- - [28.1 ](#es6- styles ) This is a collection of links to the various ES6 + features.
3351
+ < a name= " es6-patterns " >< / a>< a name= " 27.1" >< / a>
3352
+ - [28.1 ](#es6- patterns ) This is a collection of links to the various ES6 + features.
3353
3353
3354
3354
1. [Arrow Functions](#arrow- functions)
3355
3355
1. [Classes](#classes-- constructors)
@@ -3468,13 +3468,13 @@ Other Style Guides
3468
3468
- [Prettier](https: // prettier.io/)
3469
3469
- [Jest](https: // facebook.github.io/jest/)
3470
3470
3471
- ** Other Style Guides **
3471
+ ** Other Code Conventions **
3472
3472
3473
3473
- [Google JavaScript Style Guide](https: // google.github.io/styleguide/javascriptguide.xml)
3474
3474
- [jQuery Core Style Guidelines](https: // contribute.jquery.org/style-guide/js/)
3475
3475
- [Principles of Writing Consistent, Idiomatic JavaScript](https: // github.com/rwaldron/idiomatic.js)
3476
3476
3477
- ** Other Styles **
3477
+ ** Other Patterns **
3478
3478
3479
3479
- [Naming this in nested functions](https: // gist.github.com/cjohansen/4135065) - Christian Johansen
3480
3480
- [Conditional Callbacks](https: // github.com/airbnb/javascript/issues/52) - Ross Allen
0 commit comments