Skip to content

Commit b2ad2ca

Browse files
committed
feat: s/airbnb/zillow/gi
1 parent 9da1089 commit b2ad2ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+160
-196
lines changed

.eslintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
root: true
33
extends:
4-
- airbnb-base
4+
- zillow-base
55
- plugin:jest/recommended
66
plugins:
77
- jest

LICENSE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

33
Copyright (c) 2012 Airbnb
4+
Copyright (c) 2018 Zillow
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Airbnb JavaScript Style Guide() {
1+
# Zillow JavaScript Style Guide() {
22

33
*A mostly reasonable approach to JavaScript*
44

55
> **Note**: this guide assumes you are using [Babel](https://babeljs.io), and requires that you use [babel-preset-airbnb](https://npmjs.com/babel-preset-airbnb) or the equivalent. It also assumes you are installing shims/polyfills in your app, with [airbnb-browser-shims](https://npmjs.com/airbnb-browser-shims) or the equivalent.
66
7-
[![Downloads](https://img.shields.io/npm/dm/eslint-config-airbnb.svg)](https://www.npmjs.com/package/eslint-config-airbnb)
8-
[![Downloads](https://img.shields.io/npm/dm/eslint-config-airbnb-base.svg)](https://www.npmjs.com/package/eslint-config-airbnb-base)
7+
[![Downloads](https://img.shields.io/npm/dm/eslint-config-zillow.svg)](https://www.npmjs.com/package/eslint-config-zillow)
8+
[![Downloads](https://img.shields.io/npm/dm/eslint-config-zillow-base.svg)](https://www.npmjs.com/package/eslint-config-zillow-base)
99
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/airbnb/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
1010

1111
This guide is available in other languages too. See [Translation](#translation)
@@ -1229,15 +1229,15 @@ Other Style Guides
12291229

12301230
```javascript
12311231
// bad
1232-
const AirbnbStyleGuide = require('./AirbnbStyleGuide');
1233-
module.exports = AirbnbStyleGuide.es6;
1232+
const ZillowStyleGuide = require('./ZillowStyleGuide');
1233+
module.exports = ZillowStyleGuide.es6;
12341234
12351235
// ok
1236-
import AirbnbStyleGuide from './AirbnbStyleGuide';
1237-
export default AirbnbStyleGuide.es6;
1236+
import ZillowStyleGuide from './ZillowStyleGuide';
1237+
export default ZillowStyleGuide.es6;
12381238
12391239
// best
1240-
import { es6 } from './AirbnbStyleGuide';
1240+
import { es6 } from './ZillowStyleGuide';
12411241
export default es6;
12421242
```
12431243

@@ -1248,10 +1248,10 @@ Other Style Guides
12481248

12491249
```javascript
12501250
// bad
1251-
import * as AirbnbStyleGuide from './AirbnbStyleGuide';
1251+
import * as ZillowStyleGuide from './ZillowStyleGuide';
12521252
12531253
// good
1254-
import AirbnbStyleGuide from './AirbnbStyleGuide';
1254+
import ZillowStyleGuide from './ZillowStyleGuide';
12551255
```
12561256

12571257
<a name="modules--no-export-from-import"></a><a name="10.3"></a>
@@ -1262,11 +1262,11 @@ Other Style Guides
12621262
```javascript
12631263
// bad
12641264
// filename es6.js
1265-
export { es6 as default } from './AirbnbStyleGuide';
1265+
export { es6 as default } from './ZillowStyleGuide';
12661266
12671267
// good
12681268
// filename es6.js
1269-
import { es6 } from './AirbnbStyleGuide';
1269+
import { es6 } from './ZillowStyleGuide';
12701270
export default es6;
12711271
```
12721272

@@ -2422,22 +2422,22 @@ Other Style Guides
24222422

24232423
```javascript
24242424
// bad
2425-
import { es6 } from './AirbnbStyleGuide';
2425+
import { es6 } from './ZillowStyleGuide';
24262426
// ...
24272427
export default es6;
24282428
```
24292429

24302430
```javascript
24312431
// bad
2432-
import { es6 } from './AirbnbStyleGuide';
2432+
import { es6 } from './ZillowStyleGuide';
24332433
// ...
24342434
export default es6;↵
24352435
24362436
```
24372437

24382438
```javascript
24392439
// good
2440-
import { es6 } from './AirbnbStyleGuide';
2440+
import { es6 } from './ZillowStyleGuide';
24412441
// ...
24422442
export default es6;↵
24432443
```
@@ -2644,7 +2644,7 @@ Other Style Guides
26442644
const foo = jsonData && jsonData.foo && jsonData.foo.bar && jsonData.foo.bar.baz && jsonData.foo.bar.baz.quux && jsonData.foo.bar.baz.quux.xyzzy;
26452645
26462646
// bad
2647-
$.ajax({ method: 'POST', url: 'https://airbnb.com/', data: { name: 'John' } }).done(() => console.log('Congratulations!')).fail(() => console.log('You have failed this city.'));
2647+
$.ajax({ method: 'POST', url: 'https://zillow.com/', data: { name: 'John' } }).done(() => console.log('Congratulations!')).fail(() => console.log('You have failed this city.'));
26482648
26492649
// good
26502650
const foo = jsonData
@@ -2657,7 +2657,7 @@ Other Style Guides
26572657
// good
26582658
$.ajax({
26592659
method: 'POST',
2660-
url: 'https://airbnb.com/',
2660+
url: 'https://zillow.com/',
26612661
data: { name: 'John' },
26622662
})
26632663
.done(() => console.log('Congratulations!'))
@@ -3095,12 +3095,12 @@ Other Style Guides
30953095
- [23.8](#naming--PascalCase-singleton) Use PascalCase when you export a constructor / class / singleton / function library / bare object.
30963096
30973097
```javascript
3098-
const AirbnbStyleGuide = {
3098+
const ZillowStyleGuide = {
30993099
es6: {
31003100
},
31013101
};
31023102

3103-
export default AirbnbStyleGuide;
3103+
export default ZillowStyleGuide;
31043104
```
31053105
31063106
<a name="naming--Acronyms-and-Initialisms"></a>
@@ -3439,7 +3439,7 @@ Other Style Guides
34393439
- Whichever testing framework you use, you should be writing tests!
34403440
- Strive to write many small pure functions, and minimize where mutations occur.
34413441
- Be cautious about stubs and mocks - they can make your tests more brittle.
3442-
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) and [`jest`](https://www.npmjs.com/package/jest) at Airbnb. [`tape`](https://www.npmjs.com/package/tape) is also used occasionally for small, separate modules.
3442+
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) and [`jest`](https://www.npmjs.com/package/jest) at Zillow.
34433443
- 100% test coverage is a good goal to strive for, even if it’s not always practical to reach it.
34443444
- Whenever you fix a bug, _write a regression test_. A bug fixed without a regression test is almost certainly going to break again in the future.
34453445

@@ -3667,13 +3667,14 @@ Other Style Guides
36673667

36683668
## Contributors
36693669

3670-
- [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
3670+
- [View Contributors](https://github.com/zillow/javascript/graphs/contributors)
36713671

36723672
## License
36733673

36743674
(The MIT License)
36753675

36763676
Copyright (c) 2012 Airbnb
3677+
Copyright (c) 2018 Zillow
36773678

36783679
Permission is hereby granted, free of charge, to any person obtaining
36793680
a copy of this software and associated documentation files (the

css-in-javascript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Airbnb CSS-in-JavaScript Style Guide
1+
# Zillow CSS-in-JavaScript Style Guide
22

33
*A mostly reasonable approach to CSS-in-JavaScript*
44

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "airbnb-style",
2+
"name": "zillow-style",
33
"version": "0.0.0-monorepo",
44
"private": true,
55
"description": "A mostly reasonable approach to JavaScript.",
@@ -16,23 +16,19 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/airbnb/javascript.git"
19+
"url": "https://github.com/zillow/javascript.git"
2020
},
2121
"keywords": [
2222
"style guide",
2323
"lint",
24-
"airbnb",
24+
"zillow",
2525
"es6",
2626
"es2015",
2727
"react",
2828
"jsx"
2929
],
30-
"author": "Harrison Shoff <[email protected]> (https://twitter.com/hshoff)",
3130
"license": "MIT",
32-
"bugs": {
33-
"url": "https://github.com/airbnb/javascript/issues"
34-
},
35-
"homepage": "https://github.com/airbnb/javascript",
31+
"homepage": "https://github.com/zillow/javascript",
3632
"engines": {
3733
"node": ">= 8.9.0"
3834
},
@@ -69,7 +65,7 @@
6965
"react": ">= 0.13.0"
7066
},
7167
"dependencies": {
72-
"eslint-config-airbnb": "file:packages/eslint-config-airbnb",
73-
"eslint-config-airbnb-base": "file:packages/eslint-config-airbnb-base"
68+
"eslint-config-zillow": "file:packages/eslint-config-zillow",
69+
"eslint-config-zillow-base": "file:packages/eslint-config-zillow-base"
7470
}
7571
}

packages/eslint-config-airbnb-base/package.json

-52
This file was deleted.

packages/eslint-config-airbnb/base.js

-4
This file was deleted.

packages/eslint-config-airbnb/legacy.js

-4
This file was deleted.

packages/eslint-config-airbnb/package.json

-54
This file was deleted.

packages/eslint-config-airbnb-base/LICENSE.md packages/eslint-config-zillow-base/LICENSE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

33
Copyright (c) 2012 Airbnb
4+
Copyright (c) 2018 Zillow
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)