Skip to content

Commit fdbb222

Browse files
committed
find and replace airbnb with pebblecode, thanks airbnb :)
1 parent 584bd06 commit fdbb222

29 files changed

+116
-113
lines changed

README.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Airbnb JavaScript Style Guide() {
1+
# pebblecode JavaScript Style Guide() {
22

33
*A mostly reasonable approach to JavaScript*
44

5-
[![Downloads](https://img.shields.io/npm/dm/eslint-config-airbnb.svg)](https://www.npmjs.com/package/eslint-config-airbnb)
6-
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/airbnb/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
5+
[![Downloads](https://img.shields.io/npm/dm/eslint-config-pebblecode.svg)](https://www.npmjs.com/package/eslint-config-pebblecode)
6+
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/pebblecode/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
77

88
Other Style Guides
99
- [ES5](es5/)
1010
- [React](react/)
11-
- [CSS & Sass](https://github.com/airbnb/css)
12-
- [Ruby](https://github.com/airbnb/ruby)
11+
- [CSS & Sass](https://github.com/pebblecode/css)
12+
- [Ruby](https://github.com/pebblecode/ruby)
1313

1414
## Table of Contents
1515

@@ -145,7 +145,7 @@ Other Style Guides
145145
const item = {};
146146
```
147147
148-
- [3.2](#3.2) <a name='3.2'></a> If your code will be executed in browsers in script context, don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61). It’s OK to use them in ES6 modules and server-side code.
148+
- [3.2](#3.2) <a name='3.2'></a> If your code will be executed in browsers in script context, don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/pebblecode/javascript/issues/61). It’s OK to use them in ES6 modules and server-side code.
149149

150150
```javascript
151151
// bad
@@ -408,7 +408,7 @@ Other Style Guides
408408
```
409409
410410
- [6.2](#6.2) <a name='6.2'></a> Strings longer than 100 characters should be written across multiple lines using string concatenation.
411-
- [6.3](#6.3) <a name='6.3'></a> Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/airbnb/javascript/issues/40).
411+
- [6.3](#6.3) <a name='6.3'></a> Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/pebblecode/javascript/issues/40).
412412
413413
```javascript
414414
// bad
@@ -799,15 +799,15 @@ Other Style Guides
799799
800800
```javascript
801801
// bad
802-
const AirbnbStyleGuide = require('./AirbnbStyleGuide');
803-
module.exports = AirbnbStyleGuide.es6;
802+
const pebblecodeStyleGuide = require('./pebblecodeStyleGuide');
803+
module.exports = pebblecodeStyleGuide.es6;
804804

805805
// ok
806-
import AirbnbStyleGuide from './AirbnbStyleGuide';
807-
export default AirbnbStyleGuide.es6;
806+
import pebblecodeStyleGuide from './pebblecodeStyleGuide';
807+
export default pebblecodeStyleGuide.es6;
808808

809809
// best
810-
import { es6 } from './AirbnbStyleGuide';
810+
import { es6 } from './pebblecodeStyleGuide';
811811
export default es6;
812812
```
813813
@@ -817,10 +817,10 @@ Other Style Guides
817817
818818
```javascript
819819
// bad
820-
import * as AirbnbStyleGuide from './AirbnbStyleGuide';
820+
import * as pebblecodeStyleGuide from './pebblecodeStyleGuide';
821821

822822
// good
823-
import AirbnbStyleGuide from './AirbnbStyleGuide';
823+
import pebblecodeStyleGuide from './pebblecodeStyleGuide';
824824
```
825825
826826
- [10.3](#10.3) <a name='10.3'></a>And do not export directly from an import.
@@ -830,11 +830,11 @@ Other Style Guides
830830
```javascript
831831
// bad
832832
// filename es6.js
833-
export { es6 as default } from './airbnbStyleGuide';
833+
export { es6 as default } from './pebblecodeStyleGuide';
834834

835835
// good
836836
// filename es6.js
837-
import { es6 } from './AirbnbStyleGuide';
837+
import { es6 } from './pebblecodeStyleGuide';
838838
export default es6;
839839
```
840840
@@ -1716,7 +1716,7 @@ Other Style Guides
17161716
const val = inputValue >> 0;
17171717
```
17181718
1719-
- [21.5](#21.5) <a name='21.5'></a> **Note:** Be careful when using bitshift operations. Numbers are represented as [64-bit values](http://es5.github.io/#x4.3.19), but Bitshift operations always return a 32-bit integer ([source](http://es5.github.io/#x11.7)). Bitshift can lead to unexpected behavior for integer values larger than 32 bits. [Discussion](https://github.com/airbnb/javascript/issues/109). Largest signed 32-bit Int is 2,147,483,647:
1719+
- [21.5](#21.5) <a name='21.5'></a> **Note:** Be careful when using bitshift operations. Numbers are represented as [64-bit values](http://es5.github.io/#x4.3.19), but Bitshift operations always return a 32-bit integer ([source](http://es5.github.io/#x11.7)). Bitshift can lead to unexpected behavior for integer values larger than 32 bits. [Discussion](https://github.com/pebblecode/javascript/issues/109). Largest signed 32-bit Int is 2,147,483,647:
17201720
17211721
```javascript
17221722
2147483647 >> 0 //=> 2147483647
@@ -1864,12 +1864,12 @@ Other Style Guides
18641864
- [22.8](#22.8) <a name='22.8'></a> Use PascalCase when you export a singleton / function library / bare object.
18651865
18661866
```javascript
1867-
const AirbnbStyleGuide = {
1867+
const pebblecodeStyleGuide = {
18681868
es6: {
18691869
}
18701870
};
18711871

1872-
export default AirbnbStyleGuide;
1872+
export default pebblecodeStyleGuide;
18731873
```
18741874
18751875
@@ -2067,7 +2067,7 @@ Other Style Guides
20672067
- Whichever testing framework you use, you should be writing tests!
20682068
- Strive to write many small pure functions, and minimize where mutations occur.
20692069
- Be cautious about stubs and mocks - they can make your tests more brittle.
2070-
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) at Airbnb. [`tape`](https://www.npmjs.com/package/tape) is also used occasionally for small, separate modules.
2070+
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) at pebblecode. [`tape`](https://www.npmjs.com/package/tape) is also used occasionally for small, separate modules.
20712071
- 100% test coverage is a good goal to strive for, even if it's not always practical to reach it.
20722072
- 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.
20732073
@@ -2104,9 +2104,9 @@ Other Style Guides
21042104
**Tools**
21052105
21062106
- Code Style Linters
2107-
+ [ESlint](http://eslint.org/) - [Airbnb Style .eslintrc](https://github.com/airbnb/javascript/blob/master/linters/.eslintrc)
2108-
+ [JSHint](http://jshint.com/) - [Airbnb Style .jshintrc](https://github.com/airbnb/javascript/blob/master/linters/jshintrc)
2109-
+ [JSCS](https://github.com/jscs-dev/node-jscs) - [Airbnb Style Preset](https://github.com/jscs-dev/node-jscs/blob/master/presets/airbnb.json)
2107+
+ [ESlint](http://eslint.org/) - [pebblecode Style .eslintrc](https://github.com/pebblecode/javascript/blob/master/linters/.eslintrc)
2108+
+ [JSHint](http://jshint.com/) - [pebblecode Style .jshintrc](https://github.com/pebblecode/javascript/blob/master/linters/jshintrc)
2109+
+ [JSCS](https://github.com/jscs-dev/node-jscs) - [pebblecode Style Preset](https://github.com/jscs-dev/node-jscs/blob/master/presets/pebblecode.json)
21102110
21112111
**Other Style Guides**
21122112
@@ -2117,7 +2117,7 @@ Other Style Guides
21172117
**Other Styles**
21182118
21192119
- [Naming this in nested functions](https://gist.github.com/cjohansen/4135065) - Christian Johansen
2120-
- [Conditional Callbacks](https://github.com/airbnb/javascript/issues/52) - Ross Allen
2120+
- [Conditional Callbacks](https://github.com/pebblecode/javascript/issues/52) - Ross Allen
21212121
- [Popular JavaScript Coding Conventions on Github](http://sideeffect.kr/popularconvention/#javascript) - JeongHoon Byun
21222122
- [Multiple var statements in JavaScript, not superfluous](http://benalman.com/news/2012/05/multiple-var-statements-javascript/) - Ben Alman
21232123
@@ -2175,7 +2175,7 @@ Other Style Guides
21752175
21762176
- **Aan Zee**: [AanZee/javascript](https://github.com/AanZee/javascript)
21772177
- **Adult Swim**: [adult-swim/javascript](https://github.com/adult-swim/javascript)
2178-
- **Airbnb**: [airbnb/javascript](https://github.com/airbnb/javascript)
2178+
- **pebblecode**: [pebblecode/javascript](https://github.com/pebblecode/javascript)
21792179
- **Apartmint**: [apartmint/javascript](https://github.com/apartmint/javascript)
21802180
- **Avalara**: [avalara/javascript](https://github.com/avalara/javascript)
21812181
- **Billabong**: [billabong/javascript](https://github.com/billabong/javascript)
@@ -2252,22 +2252,22 @@ Other Style Guides
22522252
22532253
## The JavaScript Style Guide Guide
22542254
2255-
- [Reference](https://github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide)
2255+
- [Reference](https://github.com/pebblecode/javascript/wiki/The-JavaScript-Style-Guide-Guide)
22562256
22572257
## Chat With Us About JavaScript
22582258
2259-
- Find us on [gitter](https://gitter.im/airbnb/javascript).
2259+
- Find us on [gitter](https://gitter.im/pebblecode/javascript).
22602260
22612261
## Contributors
22622262
2263-
- [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
2263+
- [View Contributors](https://github.com/pebblecode/javascript/graphs/contributors)
22642264
22652265
22662266
## License
22672267
22682268
(The MIT License)
22692269
2270-
Copyright (c) 2014 Airbnb
2270+
Copyright (c) 2014 pebblecode
22712271
22722272
Permission is hereby granted, free of charge, to any person obtaining
22732273
a copy of this software and associated documentation files (the

es5/README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/airbnb/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
1+
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/pebblecode/javascript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
22

3-
# Airbnb JavaScript Style Guide() {
3+
# pebblecode JavaScript Style Guide() {
44

55
*A mostly reasonable approach to JavaScript*
66

@@ -86,7 +86,7 @@
8686
var item = {};
8787
```
8888

89-
- Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61).
89+
- Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/pebblecode/javascript/issues/61).
9090

9191
```javascript
9292
// bad
@@ -195,7 +195,7 @@
195195
```
196196

197197
- Strings longer than 100 characters should be written across multiple lines using string concatenation.
198-
- Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/airbnb/javascript/issues/40).
198+
- Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/pebblecode/javascript/issues/40).
199199

200200
```javascript
201201
// bad
@@ -1100,7 +1100,7 @@
11001100
var val = inputValue >> 0;
11011101
```
11021102
1103-
- **Note:** Be careful when using bitshift operations. Numbers are represented as [64-bit values](http://es5.github.io/#x4.3.19), but Bitshift operations always return a 32-bit integer ([source](http://es5.github.io/#x11.7)). Bitshift can lead to unexpected behavior for integer values larger than 32 bits. [Discussion](https://github.com/airbnb/javascript/issues/109). Largest signed 32-bit Int is 2,147,483,647:
1103+
- **Note:** Be careful when using bitshift operations. Numbers are represented as [64-bit values](http://es5.github.io/#x4.3.19), but Bitshift operations always return a 32-bit integer ([source](http://es5.github.io/#x11.7)). Bitshift can lead to unexpected behavior for integer values larger than 32 bits. [Discussion](https://github.com/pebblecode/javascript/issues/109). Largest signed 32-bit Int is 2,147,483,647:
11041104
11051105
```javascript
11061106
2147483647 >> 0 //=> 2147483647
@@ -1427,7 +1427,7 @@
14271427
14281428
## Modules
14291429
1430-
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated. [Explanation](https://github.com/airbnb/javascript/issues/44#issuecomment-13063933)
1430+
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated. [Explanation](https://github.com/pebblecode/javascript/issues/44#issuecomment-13063933)
14311431
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
14321432
- Add a method called `noConflict()` that sets the exported module to the previous version and returns this one.
14331433
- Always declare `'use strict';` at the top of the module.
@@ -1562,8 +1562,8 @@
15621562
**Tools**
15631563
15641564
- Code Style Linters
1565-
+ [JSHint](http://www.jshint.com/) - [Airbnb Style .jshintrc](https://github.com/airbnb/javascript/blob/master/linters/jshintrc)
1566-
+ [JSCS](https://github.com/jscs-dev/node-jscs) - [Airbnb Style Preset](https://github.com/jscs-dev/node-jscs/blob/master/presets/airbnb.json)
1565+
+ [JSHint](http://www.jshint.com/) - [pebblecode Style .jshintrc](https://github.com/pebblecode/javascript/blob/master/linters/jshintrc)
1566+
+ [JSCS](https://github.com/jscs-dev/node-jscs) - [pebblecode Style Preset](https://github.com/jscs-dev/node-jscs/blob/master/presets/pebblecode.json)
15671567
15681568
**Other Style Guides**
15691569
@@ -1575,7 +1575,7 @@
15751575
**Other Styles**
15761576
15771577
- [Naming this in nested functions](https://gist.github.com/4135065) - Christian Johansen
1578-
- [Conditional Callbacks](https://github.com/airbnb/javascript/issues/52) - Ross Allen
1578+
- [Conditional Callbacks](https://github.com/pebblecode/javascript/issues/52) - Ross Allen
15791579
- [Popular JavaScript Coding Conventions on Github](http://sideeffect.kr/popularconvention/#javascript) - JeongHoon Byun
15801580
- [Multiple var statements in JavaScript, not superfluous](http://benalman.com/news/2012/05/multiple-var-statements-javascript/) - Ben Alman
15811581
@@ -1633,7 +1633,7 @@
16331633
16341634
- **Aan Zee**: [AanZee/javascript](https://github.com/AanZee/javascript)
16351635
- **Adult Swim**: [adult-swim/javascript](https://github.com/adult-swim/javascript)
1636-
- **Airbnb**: [airbnb/javascript](https://github.com/airbnb/javascript)
1636+
- **pebblecode**: [pebblecode/javascript](https://github.com/pebblecode/javascript)
16371637
- **Apartmint**: [apartmint/javascript](https://github.com/apartmint/javascript)
16381638
- **Avalara**: [avalara/javascript](https://github.com/avalara/javascript)
16391639
- **Billabong**: [billabong/javascript](https://github.com/billabong/javascript)
@@ -1701,22 +1701,22 @@
17011701
17021702
## The JavaScript Style Guide Guide
17031703
1704-
- [Reference](https://github.com/airbnb/javascript/wiki/The-JavaScript-Style-Guide-Guide)
1704+
- [Reference](https://github.com/pebblecode/javascript/wiki/The-JavaScript-Style-Guide-Guide)
17051705
17061706
## Chat With Us About JavaScript
17071707
1708-
- Find us on [gitter](https://gitter.im/airbnb/javascript).
1708+
- Find us on [gitter](https://gitter.im/pebblecode/javascript).
17091709
17101710
## Contributors
17111711
1712-
- [View Contributors](https://github.com/airbnb/javascript/graphs/contributors)
1712+
- [View Contributors](https://github.com/pebblecode/javascript/graphs/contributors)
17131713
17141714
17151715
## License
17161716
17171717
(The MIT License)
17181718
1719-
Copyright (c) 2014 Airbnb
1719+
Copyright (c) 2014 pebblecode
17201720
17211721
Permission is hereby granted, free of charge, to any person obtaining
17221722
a copy of this software and associated documentation files (the

linters/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Use this file as a starting point for your project's .eslintrc.
22
// Copy this file, and add rule overrides as needed.
33
{
4-
"extends": "airbnb"
4+
"extends": "pebblecode"
55
}

linters/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Our `.eslintrc` requires the following NPM packages:
44

55
```
66
npm install --save-dev \
7-
eslint-config-airbnb \
7+
eslint-config-pebblecode \
88
eslint \
99
babel-eslint \
1010
eslint-plugin-react

linters/SublimeLinter/SublimeLinter.sublime-settings

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Airbnb JSHint settings for use with SublimeLinter and Sublime Text 2.
2+
* pebblecode JSHint settings for use with SublimeLinter and Sublime Text 2.
33
*
44
* 1. Install SublimeLinter at https://github.com/SublimeLinter/SublimeLinter
55
* 2. Open user preferences for the SublimeLinter package in Sublime Text 2

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"name": "airbnb-style",
2+
"name": "pebblecode-style",
33
"version": "2.0.0",
44
"description": "A mostly reasonable approach to JavaScript.",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1",
7-
"publish-all": "npm publish && cd ./packages/eslint-config-airbnb && npm publish"
7+
"publish-all": "npm publish && cd ./packages/eslint-config-pebblecode && npm publish"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/airbnb/javascript.git"
11+
"url": "https://github.com/pebblecode/javascript.git"
1212
},
1313
"keywords": [
1414
"style guide",
1515
"lint",
16-
"airbnb",
16+
"pebblecode",
1717
"es6",
1818
"es2015",
1919
"react",
@@ -22,7 +22,7 @@
2222
"author": "Harrison Shoff <[email protected]> (https://twitter.com/hshoff)",
2323
"license": "MIT",
2424
"bugs": {
25-
"url": "https://github.com/airbnb/javascript/issues"
25+
"url": "https://github.com/pebblecode/javascript/issues"
2626
},
27-
"homepage": "https://github.com/airbnb/javascript"
27+
"homepage": "https://github.com/pebblecode/javascript"
2828
}

packages/eslint-config-airbnb/base.js

-7
This file was deleted.

packages/eslint-config-airbnb/index.js

-7
This file was deleted.

packages/eslint-config-airbnb/legacy.js

-21
This file was deleted.

packages/eslint-config-airbnb/node_modules/eslint-config-airbnb

-1
This file was deleted.

packages/eslint-config-airbnb/.eslintrc renamed to packages/eslint-config-pebblecode/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "airbnb",
2+
"extends": "pebblecode",
33
"rules": {
44
// disable requiring trailing commas because it might be nice to revert to
55
// being JSON at some point, and I don't want to make big changes now.

0 commit comments

Comments
 (0)