Skip to content

Commit e075bd3

Browse files
author
David Sorrentino
committed
Merge pull request #1 from airbnb/master
Update from original
2 parents 2c9833f + 02e1b4e commit e075bd3

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ Other Style Guides
20032003
const val = inputValue >> 0;
20042004
```
20052005

2006-
- [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:
2006+
- [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:
20072007

20082008
```javascript
20092009
2147483647 >> 0 //=> 2147483647

packages/eslint-config-airbnb/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
4.0.0 / 2016-01-22
2+
==================
3+
- [breaking] require outer IIFE wrapping; flesh out guide section
4+
- [minor] Add missing `arrow-body-style`, `prefer-template` rules (#678)
5+
- [minor] Add `prefer-arrow-callback` to ES6 rules (to match the guide) (#677)
6+
- [Tests] run `npm run lint` as part of tests; fix errors
7+
- [Tests] use `parallelshell` to parallelize npm run-scripts
8+
19
3.1.0 / 2016-01-07
210
==================
311
- [minor] Allow multiple stateless components in a single file

packages/eslint-config-airbnb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-airbnb",
3-
"version": "3.1.0",
3+
"version": "4.0.0",
44
"description": "Airbnb's ESLint config, following our styleguide",
55
"main": "index.js",
66
"scripts": {

packages/eslint-config-airbnb/rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
'rules': {
3-
// Enforces getter/setter pairs in objects
3+
// enforces getter/setter pairs in objects
44
'accessor-pairs': 0,
55
// treat var statements as if they were block scoped
66
'block-scoped-var': 2,

0 commit comments

Comments
 (0)