Skip to content

Updating to recent style guide version from upstream airbnb repo - #2

Open
ahtee wants to merge 318 commits into
GeneralElectric:masterfrom
ahtee:master
Open

Updating to recent style guide version from upstream airbnb repo#2
ahtee wants to merge 318 commits into
GeneralElectric:masterfrom
ahtee:master

Conversation

@ahtee

@ahteeahtee commented Sep 8, 2019

Copy link
Copy Markdown

Also added Vue style guide for those using vue.

frenzzyand others added 30 commits October 10, 2017 18:21
… assignment expression
```js
let param = 'default value';
if (object)
param = object.param; // <= prefer-destructuring
}
// ...
```
I think that `param = object.param;` is better than `({ param } = object);` because it is easier to read and tedious to write brackets by hand.
MDN: [Destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)
For convenience, added brief explanations that are given in the linked discussion (mostly eliminating the need to scroll through the comments).
As "foo" is still meaningless, but with "short", we can see that, we are intend to use a short alias name to make our coding happily.
It came from the special characters "M-BM-":
```
diff README.md README.md.new | cat -A
651c651$
< const foo = function uniqueMoreDescriptiveLexicalFoo() {$
---$
> M-BM- M-BM- const short = function longUniqueMoreDescriptiveLexicalFoo() {$
```
…`**` and `%` mixed with arithmetic operators; removes violation against mixing common math operators.
Fixesairbnb#1071.
 - also remove legacy numbered link
- Also add note that symbols cannot by polyfilled and should not be used in environments that don't support them
[guide] [react] Added anti-pattern example for Props Naming rule, changed className props in examples
The result of a `s_http://eslint\.org_https://eslint\.org_g`.
Avoids the HTTP 302s of the non-HTTPs URLs.
…’t break old node; pin included builds to LTS.
Also update code samples to highlight ways in which ES6
currently mishandles code when relying on Automatic Semicolon
Insertion
Revise hyperlink and example
- Use more up-to-date TC39 reference page on github.io
- wrap returnless function with side-effects in curly braces
also, clean up punctuation on a long comment line
Always use single-quoted strings
Except for when the string needs to be double-quoted because the string contains apostrophes
Update second example to incorporate IIFE
An IIFE is a more realistic example of code that developers may encounter which would raise an exception when relying completely upon ASI
…alid' a11y rule
Support React Router's `<Link to="...">` attribute out of the box.
(preserve old link for back-compat)
ljharband others added 30 commits August 9, 2019 14:20
It took me too long to realize that `"extends": "airbnb/hooks"` won't cut it, and that you need to include both `"extends": ["airbnb", "airbnb/hooks"]`. I think the docs should be explicit about this.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

20 participants

@ahtee@frenzzy@jabacchetta@ljharb@liuchong@sharmilajesupaul@vsemozhetbyt@leonidlebedev@lasota-piotr@1pete@edmorley@maggielove@thepeoplesbourgeois@olistic@kripod@tbroadley@him2him2@m1guelpf@alioguzhan@itaditya