Skip to content

Update 2016#1

Merged
a-rmz merged 1058 commits intowizeline:masterfrom
airbnb:master
Dec 13, 2016
Merged

Update 2016#1
a-rmz merged 1058 commits intowizeline:masterfrom
airbnb:master

Conversation

@a-rmz
Copy link
Copy Markdown

@a-rmz a-rmz commented Dec 13, 2016

No description provided.

pietraszekl and others added 30 commits June 11, 2016 09:39
Adding link to polish translation
Adds disabled rules: `max-lines`, `no-mixed-operators`, `rest-spread-spacing`, `object-curly-newline`
Parens around a single argument aren't in line with the js guide:

    If your function takes a single argument and doesn’t use braces,
    omit the parentheses.

https://github.com/airbnb/javascript/blob/0814be638f22b01a8e49efd77094be24055a3d48/README.md#arrows--one-arg-parens

Another rule violation:

    Wrap JSX tags in parentheses when they span more than one line.

https://github.com/airbnb/javascript/blob/0814be638f22b01a8e49efd77094be24055a3d48/react/README.md#parentheses
 - `no-named-as-default`
 - `no-named-as-default-member`
 - `no-extraneous-dependencies`
 - `extensions`
Specifically, this is to require parens to avoid cognitive overhead about precedence.
The "bad" and "good" diffs in section 19.2 had different text; making them the same to avoid confusion about what the difference is.
According to the official React documentation string refs are considered legacy and will be deprecated in the future.
[eslint config] [react] [breaking] Prevent using string refs.
- It follows [ES6 styleguide](https://github.com/airbnb/javascript#naming--leading-underscore)
- eslint plugin is configured this way : `'no-underscore-dangle': [2, { allowAfterThis: false }],`
This rule was added by 1.10.0. I am setting it to be disabled because it
is very project-specific, so it doesn't make sense to enable it here.

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md

I found the sections of this file a little confusing, so I didn't know
where to put it. I think it would be better to simply alphabetize the
rules but I'll leave that for another time.
…imit to 4.

Specifically, this is to allow this frequent pattern:
```js
$.ajax({
  …
}).done(() => {
  …
}).fail(() => {
  …
}).always(() => {
  …
});
```
ljharb and others added 29 commits November 6, 2016 16:02
… `eslint`, `eslint-plugin-import`, `eslint-plugin-react`
The example showed a template string being used with no interpolation as "good". While it met the rule being described, it violated another rule for no reason.
This style guide recommends using `i += 1` over `i++`. Even though this
appears in a "bad" example, the example will be clearest if it is "bad"
in fewer ways.
As is, actual «good» usage fires the arrow-parens rule.
Parenthesis are needed to follow the current style guide.
…d by `import/no-duplicates`.

Closes #1188. Closes #1195. Closes #1054.
@a-rmz a-rmz merged commit ccf32b9 into wizeline:master Dec 13, 2016
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.