Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 318 commits into
base: master
Choose a base branch
from

Conversation

ahtee
Copy link

@ahtee ahtee commented Sep 8, 2019

Also added Vue style guide for those using vue.

frenzzy and 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.

Fixes airbnb#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)
ljharb and 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 free to 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.